Add variants - #137

Add build script methods: variant, variant_group, with_variants
This commit is contained in:
josh committed 2022-02-16 12:23:30 -05:00
1 parent 5b6353395d
commit 19dee2b2a5
11 files changed
+223 -2

No files matched your search

+13
View File
@@ -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