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
196 B
Ruby
9 lines
196 B
Ruby
configure do
|
|
check_c_header "math.h", set_define: "HAVE_MATH_H"
|
|
check_c_header "stdio.h", set_define: "HAVE_STDIO_H"
|
|
end
|
|
|
|
env(echo: :command) do |env|
|
|
env.Object("simple.o", "simple.c")
|
|
end
|