Add env() method to create environments. Process all environments created at build script top level before executing any autoconf-enabled tasks, or if no tasks are specified by the user.
12 lines
348 B
Ruby
12 lines
348 B
Ruby
env do |env|
|
|
env.Command("inc.c",
|
|
[],
|
|
"CMD" => %w[ruby gen.rb ${_TARGET}],
|
|
"CMD_DESC" => "Generating")
|
|
env["build_root"] = env.build_root
|
|
env["inc_c"] = "inc.c"
|
|
env.Object("program.o", "program.c")
|
|
env.build_after("program.o", "${inc_c}")
|
|
env.Program("program.exe", ["program.o", "inc.c"])
|
|
end
|