blob: 8ea8a6d2dffc98ab55bc0ea347c40257a2d38ca8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
import qbs 1.0
import qbs.FileInfo
import QtcFunctions
QtcProduct {
type: ["dynamiclibrary", "dynamiclibrary_symlink", "qtc.dev-module"]
installDir: qtc.ide_library_path
installTags: ["dynamiclibrary", "dynamiclibrary_symlink", "debuginfo_dll"]
useNonGuiPchFile: true
Depends {
condition: qtc.testsEnabled
name: "Qt.testlib"
}
targetName: QtcFunctions.qtLibraryName(qbs, name)
destinationDirectory: FileInfo.joinPaths(project.buildDirectory, qtc.ide_library_path)
cpp.linkerFlags: {
var flags = base;
if (qbs.buildVariant == "debug" && qbs.toolchain.contains("msvc"))
flags.push("/INCREMENTAL:NO"); // Speed up startup time when debugging with cdb
if (qbs.targetOS.contains("macos"))
flags.push("-compatibility_version", qtc.qtcreator_compat_version);
return flags;
}
cpp.sonamePrefix: qbs.targetOS.contains("macos")
? "@rpath"
: undefined
cpp.rpaths: qbs.targetOS.contains("macos")
? ["@loader_path/../Frameworks"]
: ["$ORIGIN", "$ORIGIN/.."]
property string libIncludeBase: ".." // #include <lib/header.h>
cpp.includePaths: [libIncludeBase]
Export {
Depends { name: "cpp" }
cpp.includePaths: [product.libIncludeBase]
}
}
|