-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathBaseDefines.qbs
34 lines (31 loc) · 1.02 KB
/
BaseDefines.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
import qbs
import qbs.Process
import qbs.Environment
Product{
cpp.debugInformation: true
cpp.cxxLanguageVersion: "c++17"
// I literally can't do anything about deprecated copy warning within sleepy-discord
// have to shitcode here to see actual relevant warnings in my code
// and not a shitton of deprecations warnings I can do nothing about
cpp.cxxFlags:{
if(!qbs.toolchain.contains("msvc"))
return ["-Wno-unused-function", "-Wno-deprecated-copy"]
return []
}
destinationDirectory: {
var path = project.rootFolder
path += qbs.buildVariant == "release" ? "/release" : "/debug"
return path
}
cpp.libraryPaths: {
env = Environment.getEnv("LD_LIBRARY_PATH").split(':')
console.error(env);
return env
}
cpp.compilerWrapper: {
if(!qbs.toolchain.contains("msvc"))
return ["ccache"]
return []
}
cpp.defines: ["MAJOR_PROTOCOL_VERSION=2", "MINOR_PROTOCOL_VERSION=0","NONEXISTENT_OPUS"]
}