Parent Directory
|
Revision Log
Beginning of a fully cross-platform (win32+intelc, linux+g++, altix+intelc) scons build system WORK IN PROGRESS NOT COMPLETE +Incorporates ideas from trunks scons build system and the RW_WIN32 branch +New Header layout as include/<modulename>, hence the changes to the headers +Not all modules or features from trunk build system are fully implemented -Removes need for intermediary SConstruct files - the top SConstruct is more complex but handle cross-platform better AND the SConscript are a LOT simpler and only differ slightly. It should be simpler to maintain -Options are now handled via either a: config file supplied on command line, a config file in the scons/hostname_options.py, or as individual command line arguments -Need help with options: scons -h will give you a list of options and their current settings
1 | Import('*') |
2 | |
3 | local_env=env.Copy() |
4 | |
5 | src_dir = local_env.Dir('.').srcnode().abspath |
6 | |
7 | import os |
8 | filenames = os.listdir(src_dir) |
9 | sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']] |
10 | headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']] |
11 | # Filter out sources that should not be in the list automatically |
12 | |
13 | lib_name = 'escriptcpp' |
14 | |
15 | local_env.Append(LIBS = [boost_lib, 'esysUtils', ]) |
16 | |
17 | lib = local_env.SharedLibrary(lib_name, sources) |
18 | |
19 | include_path = Dir(lib_name, incinstall) |
20 | |
21 | local_env.Install(include_path, headers ) |
22 | local_env.Install(libinstall, lib) |
23 | |
24 | |
25 | |
26 | # FIXME: OLD STUFF |
27 | |
28 | #Depends(escript_lib, esysUtils_lib) |
ViewVC Help | |
Powered by ViewVC 1.1.26 |