-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDesktopDuplicator.qbs
More file actions
208 lines (198 loc) · 6.92 KB
/
Copy pathDesktopDuplicator.qbs
File metadata and controls
208 lines (198 loc) · 6.92 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
Project {
qbsSearchPaths: [ "qbs/" ]
CppApplication {
name: "Desktop Duplicator"
targetName: "deskdupl"
consoleApplication: false
Depends { name: "cpp" }
cpp.cxxLanguageVersion: "c++23"
cpp.treatWarningsAsErrors: true
cpp.enableRtti: false // disable runtime type information for faster build and smaller object files and executable
cpp.minimumWindowsVersion: "10.0"
cpp.dynamicLibraries: ["d3d11", "User32", "Gdi32", "Shell32", "Ole32", "Comctl32"]
cpp.includePaths: ["src"]
Properties {
condition: qbs.toolchainType == "msvc"
cpp.generateManifestFile: false
cpp.defines: ["NOMINMAX"]
cpp.cxxFlags: [
"/analyze", "/Zc:char8_t-",
"/permissive-", "/Zc:__cplusplus", // best C++ compatibilty
"/Zc:inline", // do not include inline code in object files
"/Zc:throwingNew", // avoid redundant null checks after new
"/diagnostics:caret", // better error postions
"/W4", // enable all warnings
"/experimental:external", "/external:anglebrackets", "/external:W0" // ignore warnings from external headers
]
}
Properties {
condition: qbs.toolchainType == "clang-cl"
cpp.generateManifestFile: false
cpp.defines: ["NOMINMAX"]
cpp.cxxFlags: [
"/permissive-", "/Zc:__cplusplus", // best C++ compatibilty
"/Zc:inline", // do not include inline code in object files
"/diagnostics:caret", // better error postions
"/W4", // enable all warnings
]
}
Properties {
condition: qbs.toolchain.contains("clang")
// note: would require "--target=x86_64-pc-windows-msvc19.43.34808" to work
// useful: to run third party clang based tools
cpp.defines: [
"_M_X64=100",
"_M_AMD64=100",
"_WIN64=1",
"NOMINMAX"
]
cpp.cxxFlags: [
"-fms-volatile",
"-fms-extensions",
"-fms-compatibility-version=19.43.34808",
"-fms-compatibility",
// "-###" // print cc1 subcommand arguments
]
cpp.systemIncludePaths: [
// note: actually needs msvc include & windows kit includes
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.43.34808/include",
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.43.34808/atlmfc/include",
"C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/VS/include",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/shared",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/um",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/winrt",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.26100.0/ucrt"
]
}
Depends { name: "hlsl" }
hlsl.shaderModel: "4_0_level_9_3"
Group {
name: "PCH"
prefix: "src/"
files: ["stable.h"]
fileTags: ["cpp_pch_src"]
}
Group {
name: "Meta"
prefix: "src/meta/"
files: [
"callback_adapter.h",
"comptr.h",
"flags.h",
"fromByteSpan.h",
"member_method.h",
"scope_guard.h",
]
}
Group {
name: "Win32"
prefix: "src/win32/"
files: [
"DisplayMonitor.cpp",
"DisplayMonitor.h",
"Dpi.h",
"Geometry.h",
"Geometry.ostream.h",
"Handle.h",
"PowerRequest.cpp",
"PowerRequest.h",
"Process.cpp",
"Process.h",
"TaskbarList.cpp",
"TaskbarList.h",
"Thread.cpp",
"Thread.h",
"ThreadLoop.cpp",
"ThreadLoop.h",
"WaitableTimer.cpp",
"WaitableTimer.h",
"Window.cpp",
"Window.h",
"Window.ostream.h",
"WindowMessageHandler.h",
]
}
Group {
name: "Main"
prefix: "src/"
Group {
name: "Pixelshaders"
hlsl.shaderType: "ps"
files: ["MaskedPixelShader.hlsl", "PlainPixelShader.hlsl"]
}
Group {
name: "Vertexshaders"
hlsl.shaderType: "vs"
files: ["VertexShader.hlsl"]
}
Group {
name: "Capture"
files: [
"CaptureThread.cpp",
"CaptureThread.h",
"CapturedUpdate.h",
"FrameContext.h",
]
}
Group {
name: "Output"
files: [
"BaseRenderer.cpp",
"BaseRenderer.h",
"FrameUpdater.cpp",
"FrameUpdater.h",
"PointerUpdater.cpp",
"PointerUpdater.h",
"WindowRenderer.cpp",
"WindowRenderer.h",
"renderer.cpp",
"renderer.h",
]
}
Group {
name: "Application"
files: [
"CaptureAreaWindow.cpp",
"CaptureAreaWindow.h",
"DuplicationController.cpp",
"DuplicationController.h",
"MainApplication.cpp",
"MainApplication.h",
"MainController.h",
"MainThread.cpp",
"MainThread.h",
"Model.cpp",
"Model.h",
"OutputWindow.cpp",
"OutputWindow.h",
"RenderThread.cpp",
"RenderThread.h",
"TaskbarButtons.cpp",
"TaskbarButtons.h",
]
}
files: [
"main.cpp",
"main.ico",
"main.manifest",
"main.rc",
]
}
Group {
name: "install"
fileTagsFilter: "application"
qbs.install: true
}
}
Product {
name: "Extra Files"
builtByDefault: false
files: [
".clang-format",
".editorconfig",
".gitignore",
"LICENSE",
"README.adoc",
]
}
}