File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Skip initializing any tools in the DefaultEnvironment
2+ # as we're not using it.
3+ DefaultEnvironment (tools = [])
4+
15# Create a new method to generate assembly files.
26env = Environment ()
37
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ env.SharedLibrary(
99 target = libname ,
1010 source = 'lib.c' )
1111
12- # We list the library by it's base name 'a ' and not a .dll, or liba .a because SCons
12+ # We list the library by it's base name 'xyz ' and not xyz .dll, or libxyz .a because SCons
1313# will expand this to the appropriate platform/compiler dependent file name
14- # and use the correct arguments to the linker to link against the shared library 'a '
15- # NOTE: We use LIBS here instead of env['LIBS']=['a '] as we're also building the
14+ # and use the correct arguments to the linker to link against the shared library 'xyz '
15+ # NOTE: We use LIBS here instead of env['LIBS']=['xyz '] as we're also building the
1616# shared library above with the same Environment().
17- # Having env.Prepend(LIBS=['a ']) would cause the SharedLibrary() above to ALSO
18- # try to link against shared library a . (Or on win32 file 'a .lib') and fail.
17+ # Having env.Prepend(LIBS=['xyz ']) would cause the SharedLibrary() above to ALSO
18+ # try to link against shared library xyz . (Or on win32 file 'xyz .lib') and fail.
1919env .Program (
2020 target = 'app' ,
2121 source = 'app.c' ,
Original file line number Diff line number Diff line change 1+ # Skip initializing any tools in the DefaultEnvironment
2+ # as we're not using it.
3+ DefaultEnvironment (tools = [])
4+
15env = Environment ()
26
37conf = Configure (env , config_h = 'config.h' )
Original file line number Diff line number Diff line change 1+ # Skip initializing any tools in the DefaultEnvironment
2+ # as we're not using it.
3+ DefaultEnvironment (tools = [])
4+
15env = Environment ()
26
37env ['CPPPATH' ] = ['#/src/liba' ]
Original file line number Diff line number Diff line change 1+ # Skip initializing any tools in the DefaultEnvironment
2+ # as we're not using it.
3+ DefaultEnvironment (tools = [])
4+
15env = Environment ()
26env .Program ('hello.c' )
You can’t perform that action at this time.
0 commit comments