use Rsconscript instead of Rsconsfile - close #62

This commit is contained in:
josh committed 2018-11-25 15:42:53 -05:00
1 parent 9975eec165
commit 1eb07e9a22
15 files changed
+164 -164

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
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