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.
7 lines
200 B
Ruby
7 lines
200 B
Ruby
env do |env|
|
|
env["OBJSUFFIX"] = %w[.oooo .ooo]
|
|
env.Object("one.oooo", "one.c", "CPPFLAGS" => ["-DONE"])
|
|
env.Object("two.ooo", "two.c")
|
|
env.Program("two_sources.exe", %w[one.oooo two.ooo])
|
|
end
|