Support naming environments - close #140
This commit is contained in:
1 parent
97dbaeb82d
commit
a316c4f922
6 files changed
+65
-9
No files matched your search
@@ -0,0 +1,6 @@
|
||||
build do
|
||||
Environment.new(name: "typical") do |env|
|
||||
env["CPPPATH"] += glob("src/**")
|
||||
env.Program("^/typical.exe", glob("src/**/*.c"))
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
build do
|
||||
base_env = Environment.new do |env|
|
||||
env["CPPPATH"] += glob("src/**")
|
||||
end
|
||||
|
||||
base_env.clone(name: "typical") do |env|
|
||||
env.Program("^/typical.exe", glob("src/**/*.c"))
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user