-
Notifications
You must be signed in to change notification settings - Fork 0
/
MpqSimpleIO.qbs
39 lines (32 loc) · 1.15 KB
/
MpqSimpleIO.qbs
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
Project {
minimumQbsVersion: "1.7.1"
CppApplication {
consoleApplication: true
files: "main.cpp"
cpp.cxxLanguageVersion: "c++11"
cpp.includePaths: "."
Properties {
condition: qbs.targetOS.contains("macos")
cpp.cxxStandardLibrary: "libc++"
cpp.dynamicLibraries: ["bz2", "z"]
cpp.minimumMacosVersion: "10.9"
cpp.libraryPaths: "StormLib/macos"
cpp.staticLibraries: "StormLib"
}
Properties {
condition: qbs.targetOS.contains("windows")
cpp.cxxFlags: {
var flags = ["/UUNICODE", "/U_UNICODE"] // ANSI build
flags.push(qbs.buildVariant == "debug" ? "/MTd" : "/MT") // fix LNK4098, StormLib uses MT for static libs
return flags
}
cpp.defines: "STORMLIB_NO_AUTO_LINK"
cpp.libraryPaths: "StormLib/windows"
cpp.staticLibraries: qbs.buildVariant == "debug" ? "StormLibDAS" : "StormLibRAS"
}
Group { // Properties for the produced executable
fileTagsFilter: "application"
}
}
}