Add variants - #137
Add build script methods: variant, variant_group, with_variants
This commit is contained in:
1 parent
5b6353395d
commit
19dee2b2a5
11 files changed
+223
-2
No files matched your search
@@ -0,0 +1,13 @@
|
||||
variant "debug"
|
||||
variant "release"
|
||||
|
||||
with_variants do
|
||||
env "prog" do |env|
|
||||
if variant("debug")
|
||||
env["CPPDEFINES"] << "DEBUG"
|
||||
else
|
||||
env["CPPDEFINES"] << "NDEBUG"
|
||||
end
|
||||
env.Program("^/prog.exe", "prog.c")
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user