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.
9 lines
313 B
Ruby
9 lines
313 B
Ruby
env(echo: :command) do |env|
|
|
env.append("CPPPATH" => glob("src/**"))
|
|
FileUtils.mkdir_p(env.build_root)
|
|
FileUtils.mv("src/one/one.c", env.build_root)
|
|
FileUtils.mv("src/two/two.c", Rscons.application.build_dir)
|
|
env.Object("^/one.o", "^/one.c")
|
|
env.Program("^^/program.exe", ["^/one.o", "^^/two.c"])
|
|
end
|