Add 'build' DSL method.

Disallow processing Environments until configuration is performed.
This commit is contained in:
josh committed 2018-12-17 22:14:35 -05:00
1 parent 5720662b7c
commit f8e6666a2c
90 files changed
+637 -434

No files matched your search

+12 -10
View File
@@ -1,11 +1,13 @@
Rscons::Environment.new do |env|
env["CPPPATH"] << "src/lib"
libmine = env.SharedLibrary("mine", Rscons.glob("src/lib/*.c"))
env.Program("test-shared.exe",
Rscons.glob("src/*.c"),
"LIBPATH" => %w[.],
"LIBS" => %w[mine])
env.build_after("test-shared.exe", libmine.to_s)
env.Program("test-static.exe",
Rscons.glob("src/**/*.c"))
build do
Rscons::Environment.new do |env|
env["CPPPATH"] << "src/lib"
libmine = env.SharedLibrary("mine", Rscons.glob("src/lib/*.c"))
env.Program("test-shared.exe",
Rscons.glob("src/*.c"),
"LIBPATH" => %w[.],
"LIBS" => %w[mine])
env.build_after("test-shared.exe", libmine.to_s)
env.Program("test-static.exe",
Rscons.glob("src/**/*.c"))
end
end