1 Star 0 Fork 1

MorningLight/Log4Qt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
log4qtlib.qbs 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
Andreas Bacher 提交于 2020-10-06 15:46 . Qt6 support (#46)
import qbs
Product {
type: "dynamiclibrary"
destinationDirectory: "../bin"
Depends { name: 'cpp' }
Depends { name: "Qt"; submodules: ["core", "xml"]; versionAtLeast: "5.12.0" }
Depends { name: "Qt.sql"; required: false }
Depends { name: "Qt.network"; required: false }
cpp.cxxLanguageVersion: "c++17"
cpp.visibility: "hidden"
Properties {
condition: qbs.toolchain.contains('gcc')
cpp.cFlags: [ "-Wno-long-long", "-ansi" ]
cpp.cxxFlags: [ "-Wnon-virtual-dtor", "-Wundef", "-Wcast-align",
"-Wchar-subscripts", "-Wpointer-arith",
"-Wwrite-strings", "-Wpacked", "-Wformat-security",
"-Wmissing-format-attribute", "-Woverloaded-virtual",
"-pedantic", "-Wold-style-cast",
"-Wunreachable-code"]
}
Properties {
condition: qbs.toolchain.contains('msvc')
cpp.cFlags: [ "-W4" ]
cpp.cxxFlags: [ "-W4",
"-wd4127", "-wd4512", "-wd4267", "-we4265", "-wd4913"]
//disable common warnings in Qt/stdlib
//disable 4127: conditional expression is constant
// 4512: assignment operator could not be generated
// 4267: conversion from 'size_t' to 'type', possible loss of data
// /WX ... treat all warnings as errors
// /we<n> ... Treat warning <n> as error
}
Properties {
condition: qbs.targetOS.contains("macos")
cpp.sonamePrefix: "@rpath"
cpp.useRPaths: true
cpp.rpaths: ["@loader_path", "@executable_path"]
}
Properties {
condition: qbs.targetOS.contains("linux")
cpp.useRPaths: true
cpp.rpaths: ["$ORIGIN"]
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/MorningLight/Log4Qt.git
git@gitee.com:MorningLight/Log4Qt.git
MorningLight
Log4Qt
Log4Qt
master

搜索帮助