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.
6 lines
141 B
Ruby
6 lines
141 B
Ruby
env do |env|
|
|
env["CXXSUFFIX"] = %w[.cccc .cc]
|
|
env["CXXFLAGS"] += %w[-x c++]
|
|
env.Program("simple.exe", Dir["*.cc"] + Dir["*.cccc"])
|
|
end
|