add Rscons.glob - close #50
This commit is contained in:
1 parent
57de94a3fb
commit
c7f66694ab
17 files changed
+64
-35
No files matched your search
@@ -1,11 +1,11 @@
|
||||
Rscons::Environment.new do |env|
|
||||
env["CPPPATH"] << "src/lib"
|
||||
libmine = env.SharedLibrary("mine", Dir["src/lib/*.c"])
|
||||
libmine = env.SharedLibrary("mine", Rscons.glob("src/lib/*.c"))
|
||||
env.Program("test-shared.exe",
|
||||
Dir["src/*.c"],
|
||||
Rscons.glob("src/*.c"),
|
||||
"LIBPATH" => %w[.],
|
||||
"LIBS" => %w[mine])
|
||||
env.build_after("test-shared.exe", libmine.to_s)
|
||||
env.Program("test-static.exe",
|
||||
Dir["src/**/*.c"])
|
||||
Rscons.glob("src/**/*.c"))
|
||||
end
|
||||
@@ -1,11 +1,11 @@
|
||||
Rscons::Environment.new do |env|
|
||||
env["CPPPATH"] << "src/lib"
|
||||
libmine = env.SharedLibrary("mine", Dir["src/lib/*.cc"])
|
||||
libmine = env.SharedLibrary("mine", Rscons.glob("src/lib/*.cc"))
|
||||
env.Program("test-shared.exe",
|
||||
Dir["src/*.cc"],
|
||||
Rscons.glob("src/*.cc"),
|
||||
"LIBPATH" => %w[.],
|
||||
"LIBS" => %w[mine])
|
||||
env.build_after("test-shared.exe", libmine.to_s)
|
||||
env.Program("test-static.exe",
|
||||
Dir["src/**/*.cc"])
|
||||
Rscons.glob("src/**/*.cc"))
|
||||
end
|
||||
@@ -1,8 +1,8 @@
|
||||
Rscons::Environment.new do |env|
|
||||
env["CPPPATH"] << "src/lib"
|
||||
libmine = env.SharedLibrary("mine", Dir["src/lib/*.d"])
|
||||
libmine = env.SharedLibrary("mine", Rscons.glob("src/lib/*.d"))
|
||||
env.Program("test-shared.exe",
|
||||
Dir["src/*.c"],
|
||||
Rscons.glob("src/*.c"),
|
||||
"LIBPATH" => %w[.],
|
||||
"LIBS" => %w[mine])
|
||||
env.build_after("test-shared.exe", libmine.to_s)
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
Rscons::Environment.new do |env|
|
||||
env["CPPPATH"] << "src/lib"
|
||||
env["SHLD"] = "gcc"
|
||||
libmine = env.SharedLibrary("mine", Dir["src/lib/*.c"])
|
||||
libmine = env.SharedLibrary("mine", Rscons.glob("src/lib/*.c"))
|
||||
env.Program("test-shared.exe",
|
||||
Dir["src/*.c"],
|
||||
Rscons.glob("src/*.c"),
|
||||
"LIBPATH" => %w[.],
|
||||
"LIBS" => %w[mine])
|
||||
env.build_after("test-shared.exe", libmine.to_s)
|
||||
env.Program("test-static.exe",
|
||||
Dir["src/**/*.c"])
|
||||
Rscons.glob("src/**/*.c"))
|
||||
end
|
||||
Reference in new issue
Block a user