speed up handling of registered side-effect files - #92

This commit is contained in:
josh committed 2019-05-08 22:15:44 -04:00
1 parent d0cd0a14a4
commit b02a7573b9
9 files changed
+102 -33

No files matched your search

+5 -5
View File
@@ -7,10 +7,10 @@ build do
env.depends("${build_root}/program.o", "${inc_h}")
env.Program("program.exe", ["program.c", "inc.c"])
env.Command("inc.c",
[],
"CMD" => %w[ruby gen.rb ${_TARGET}],
"CMD_DESC" => "Generating")
env.produces("inc.c", "inc.h")
inc_c = env.Command("inc.c",
[],
"CMD" => %w[ruby gen.rb ${_TARGET}],
"CMD_DESC" => "Generating")
inc_c.produces("inc.h")
end
end
@@ -0,0 +1,16 @@
build do
Environment.new do |env|
env["build_root"] = env.build_root
env["inc_h"] = "inc.h"
env.Copy("copy_inc.h", "${inc_h}")
env.depends("${build_root}/program.o", "${inc_h}")
env.Program("program.exe", ["program.c", "inc.c"])
env.Command("inc.c",
[],
"CMD" => %w[ruby gen.rb ${_TARGET}],
"CMD_DESC" => "Generating")
env.produces("inc.c", "inc.h")
end
end
@@ -0,0 +1,5 @@
build do
Environment.new do |env|
env.produces("foo", "bar")
end
end