« Prev 3 Command-Line Operation | Table of Contents | Next » 4.1 Tasks |
Rscons looks for instructions for what to build by reading a build script file
called Rsconscript
(or Rsconscript.rb
).
Here is a simple example Rsconscript
file:
env do |env| env.Program("myprog.exe", glob("src/**/*.c")) end
This Rsconscript
file would instruct Rscons to produce a Program target
called myprog.exe
which is to be built from all C source files found
(recursively) under the src
directory.
The Rsconscript
file is a Ruby script.
« Prev 3 Command-Line Operation | Table of Contents | Next » 4.1 Tasks |