代码拉取完成,页面将自动刷新
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"]
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。