-
Notifications
You must be signed in to change notification settings - Fork 5
/
dub.sdl
221 lines (202 loc) · 11.4 KB
/
dub.sdl
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
209
210
211
212
213
214
215
216
217
218
219
220
221
name "sokol-d"
version "0.1.6"
description "D bindings for sokol"
authors "Matheus Catarino França" "Andre Weissflog"
copyright "Copyright 2023-2024 - Matheus Catarino França"
license "Zlib"
buildType "debug" {
buildOptions "debugMode" "debugInfo"
}
buildType "unittest" {
buildOptions "debugMode" "debugInfo" "unittests"
}
buildType "release" {
buildOptions "releaseMode" "inline" "optimize"
}
buildType "release-nobounds" {
buildOptions "releaseMode" "inline" "noBoundsCheck" "optimize"
}
buildType "release-debug" {
buildOptions "releaseMode" "debugInfo" "inline" "optimize"
}
toolchainRequirements dmd=">=2.105.0" ldc=">=1.35.0" gdc=">=9.3.0"
configuration "default" {
targetType "sourceLibrary"
sourcePaths "src"
}
configuration "unittest" {
targetType "library"
sourcePaths "src/handmade"
}
subPackage {
name "clear"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/clear.d"
libs "sokol"
dflags "-preview=all" "-i"
libs "X11" "Xcursor" "Xi" "GL" "asound" platform="linux"
lflags "-w" "-lObjC" "-all_load" "-framework" "Cocoa" "-framework" "QuartzCore" "-framework" "Foundation" "-framework" "MetalKit" "-framework" "Metal" "-framework" "AudioToolbox" platform="osx"
libs "user32" "gdi32" "kernel32" "dxgi" "d3d11" "ole32" platform="windows"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/mrt.d" "src/examples/user_data.d" "src/examples/cube.d" "src/examples/blend.d" "src/examples/imgui.d" "src/examples/droptest.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Doptimize=ReleaseFast -Dartifact"
}
subPackage {
name "sgl_context"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/sgl_context.d"
libs "sokol"
dflags "-preview=all" "-i"
libs "X11" "Xcursor" "Xi" "GL" "asound" platform="linux"
lflags "-w" "-lObjC" "-all_load" "-framework" "Cocoa" "-framework" "QuartzCore" "-framework" "Foundation" "-framework" "MetalKit" "-framework" "Metal" "-framework" "AudioToolbox" platform="osx"
libs "user32" "gdi32" "kernel32" "dxgi" "d3d11" "ole32" platform="windows"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/clear.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/mrt.d" "src/examples/user_data.d" "src/examples/cube.d" "src/examples/blend.d" "src/examples/imgui.d" "src/examples/droptest.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Doptimize=ReleaseFast -Dartifact"
}
subPackage {
name "sgl_points"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/sgl_points.d"
libs "sokol"
dflags "-preview=all" "-i"
libs "X11" "Xcursor" "Xi" "GL" "asound" platform="linux"
lflags "-w" "-lObjC" "-all_load" "-framework" "Cocoa" "-framework" "QuartzCore" "-framework" "Foundation" "-framework" "MetalKit" "-framework" "Metal" "-framework" "AudioToolbox" platform="osx"
libs "user32" "gdi32" "kernel32" "dxgi" "d3d11" "ole32" platform="windows"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/clear.d" "src/examples/triangle.d" "src/examples/sgl_context.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/mrt.d" "src/examples/user_data.d" "src/examples/cube.d" "src/examples/blend.d" "src/examples/imgui.d" "src/examples/droptest.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Doptimize=ReleaseFast -Dartifact"
}
subPackage {
name "debugtext"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/debugtext.d"
libs "sokol"
dflags "-preview=all" "-i"
libs "X11" "Xcursor" "Xi" "GL" "asound" platform="linux"
lflags "-w" "-lObjC" "-all_load" "-framework" "Cocoa" "-framework" "QuartzCore" "-framework" "Foundation" "-framework" "MetalKit" "-framework" "Metal" "-framework" "AudioToolbox" platform="osx"
libs "user32" "gdi32" "kernel32" "dxgi" "d3d11" "ole32" platform="windows"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/saudio.d" "src/examples/clear.d" "src/examples/mrt.d" "src/examples/user_data.d" "src/examples/cube.d" "src/examples/blend.d" "src/examples/imgui.d" "src/examples/droptest.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Doptimize=ReleaseFast -Dartifact"
}
subPackage {
name "triangle"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/triangle.d"
libs "sokol"
dflags "-preview=all" "-i"
libs "X11" "Xcursor" "Xi" "GL" "asound" platform="linux"
lflags "-w" "-lObjC" "-all_load" "-framework" "Cocoa" "-framework" "QuartzCore" "-framework" "Foundation" "-framework" "MetalKit" "-framework" "Metal" "-framework" "AudioToolbox" platform="osx"
libs "user32" "gdi32" "kernel32" "dxgi" "d3d11" "ole32" platform="windows"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/sgl_points.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/mrt.d" "src/examples/user_data.d" "src/examples/cube.d" "src/examples/blend.d" "src/examples/imgui.d" "src/examples/droptest.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Doptimize=ReleaseFast -Dartifact"
}
subPackage {
name "blend"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/blend.d"
libs "sokol"
dflags "-preview=all" "-i"
libs "X11" "Xcursor" "Xi" "GL" "asound" platform="linux"
lflags "-w" "-lObjC" "-all_load" "-framework" "Cocoa" "-framework" "QuartzCore" "-framework" "Foundation" "-framework" "MetalKit" "-framework" "Metal" "-framework" "AudioToolbox" platform="osx"
libs "user32" "gdi32" "kernel32" "dxgi" "d3d11" "ole32" platform="windows"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/mrt.d" "src/examples/user_data.d" "src/examples/cube.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/imgui.d" "src/examples/droptest.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Doptimize=ReleaseFast -Dartifact"
}
subPackage {
name "saudio"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/saudio.d"
libs "sokol"
dflags "-preview=all" "-i"
libs "X11" "Xcursor" "Xi" "GL" "asound" platform="linux"
lflags "-w" "-lObjC" "-all_load" "-framework" "Cocoa" "-framework" "QuartzCore" "-framework" "Foundation" "-framework" "MetalKit" "-framework" "Metal" "-framework" "AudioToolbox" platform="osx"
libs "user32" "gdi32" "kernel32" "dxgi" "d3d11" "ole32" platform="windows"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/debugtext.d" "src/examples/mrt.d" "src/examples/user_data.d" "src/examples/cube.d" "src/examples/blend.d" "src/examples/imgui.d" "src/examples/droptest.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Doptimize=ReleaseFast -Dartifact"
}
subPackage {
name "mrt"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/mrt.d"
libs "sokol"
dflags "-preview=all" "-i"
libs "X11" "Xcursor" "Xi" "GL" "asound" platform="linux"
lflags "-w" "-lObjC" "-all_load" "-framework" "Cocoa" "-framework" "QuartzCore" "-framework" "Foundation" "-framework" "MetalKit" "-framework" "Metal" "-framework" "AudioToolbox" platform="osx"
libs "user32" "gdi32" "kernel32" "dxgi" "d3d11" "ole32" platform="windows"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/user_data.d" "src/examples/cube.d" "src/examples/blend.d" "src/examples/imgui.d" "src/examples/droptest.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Doptimize=ReleaseFast -Dartifact"
}
subPackage {
name "cube"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/cube.d"
libs "sokol"
dflags "-preview=all" "-i"
libs "X11" "Xcursor" "Xi" "GL" "asound" platform="linux"
lflags "-w" "-lObjC" "-all_load" "-framework" "Cocoa" "-framework" "QuartzCore" "-framework" "Foundation" "-framework" "MetalKit" "-framework" "Metal" "-framework" "AudioToolbox" platform="osx"
libs "user32" "gdi32" "kernel32" "dxgi" "d3d11" "ole32" platform="windows"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/user_data.d" "src/examples/mrt.d" "src/examples/blend.d" "src/examples/imgui.d" "src/examples/droptest.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Doptimize=ReleaseFast -Dartifact"
}
subPackage {
name "user_data"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/user_data.d"
libs "sokol"
dflags "-preview=all" "-i"
libs "X11" "Xcursor" "Xi" "GL" "asound" platform="linux"
lflags "-w" "-lObjC" "-all_load" "-framework" "Cocoa" "-framework" "QuartzCore" "-framework" "Foundation" "-framework" "MetalKit" "-framework" "Metal" "-framework" "AudioToolbox" platform="osx"
libs "user32" "gdi32" "kernel32" "dxgi" "d3d11" "ole32" platform="windows"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/cube.d" "src/examples/mrt.d" "src/examples/blend.d" "src/examples/imgui.d" "src/examples/droptest.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Doptimize=ReleaseFast -Dartifact"
}
subPackage {
name "imgui"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/imgui.d"
libs "sokol"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/cube.d" "src/examples/mrt.d" "src/examples/blend.d" "src/examples/user_data.d" "src/examples/droptest.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Dshared -Doptimize=ReleaseFast -Dimgui -Dartifact"
}
subPackage {
name "droptest"
targetType "executable"
targetPath "build"
sourceFiles "src/examples/droptest.d"
libs "sokol"
lflags "-Lzig-out/lib" platform="posix"
lflags "/LIBPATH:zig-out/lib" platform="windows"
excludedSourceFiles "src/examples/sgl_context.d" "src/examples/clear.d" "src/examples/saudio.d" "src/examples/debugtext.d" "src/examples/triangle.d" "src/examples/sgl_points.d" "src/examples/cube.d" "src/examples/mrt.d" "src/examples/blend.d" "src/examples/user_data.d" "src/examples/imgui.d" "src/examples/shaders/*.d"
preBuildCommands "zig build -Dshared -Doptimize=ReleaseFast -Dimgui -Dartifact"
}