Here is one example of a Sconscript file
env=Environment(CPPPATH='/usr/include/glib-2.0/:/usr/lib/glib-2.0/include:inc',
CPPDEFINES=[],
LIBS=['glib-2.0'])
env.Program('runme', Glob('src/*.c'))
(In this example, the environment string is not needed, but I need to include the non-standard glib header path and leave it there so that you can understand how to add additional attachments and defines)
The source files are in the src directory and the header files in the inc directory. You start scons from the base directory, and the output file is also created in the same directory.
source
share