215 |
('cc_flags_debug', 'C compiler flags to use (Debug build)', cc_flags_debug_default), |
('cc_flags_debug', 'C compiler flags to use (Debug build)', cc_flags_debug_default), |
216 |
('cxx_flags', 'C++ compiler flags to use (Release build)', cxx_flags_default), |
('cxx_flags', 'C++ compiler flags to use (Release build)', cxx_flags_default), |
217 |
('cxx_flags_debug', 'C++ compiler flags to use (Debug build)', cxx_flags_debug_default), |
('cxx_flags_debug', 'C++ compiler flags to use (Debug build)', cxx_flags_debug_default), |
218 |
|
('link_flags', 'Linker flags to use (Release build)', None), |
219 |
|
('link_flags_debug', 'Linker flags to use (Debug build)', None), |
220 |
|
|
221 |
('omp_flags', 'OpenMP compiler flags to use (Release build)', ''), |
('omp_flags', 'OpenMP compiler flags to use (Release build)', ''), |
222 |
('omp_flags_debug', 'OpenMP compiler flags to use (Debug build)', ''), |
('omp_flags_debug', 'OpenMP compiler flags to use (Debug build)', ''), |
223 |
('ar_flags', 'Static library archiver flags to use', None), |
('ar_flags', 'Static library archiver flags to use', None), |
489 |
if env['CC'] == 'gcc': env.Append(CCFLAGS = "-pedantic-errors -Wno-long-long") |
if env['CC'] == 'gcc': env.Append(CCFLAGS = "-pedantic-errors -Wno-long-long") |
490 |
except: |
except: |
491 |
pass |
pass |
492 |
|
if dodebug: |
493 |
|
try: |
494 |
|
flags = env['link_flags_debug'] |
495 |
|
env.Append(LINKFLAGS = flags) |
496 |
|
except KeyError: |
497 |
|
pass |
498 |
|
else: |
499 |
|
try: |
500 |
|
flags = env['link_flags'] |
501 |
|
env.Append(LINKFLAGS = flags) |
502 |
|
except KeyError: |
503 |
|
pass |
504 |
|
|
505 |
# ============= Remember what options were used in the compile ===================================== |
# ============= Remember what options were used in the compile ===================================== |
506 |
if not IS_WINDOWS_PLATFORM: |
if not IS_WINDOWS_PLATFORM: |
942 |
# Third Party libraries |
# Third Party libraries |
943 |
env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='build/$PLATFORM/tools/CppUnitTest', duplicate=0) |
env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='build/$PLATFORM/tools/CppUnitTest', duplicate=0) |
944 |
# C/C++ Libraries |
# C/C++ Libraries |
945 |
|
env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0) |
946 |
|
env.SConscript(dirs = ['escript/src'], build_dir='build/$PLATFORM/escript', duplicate=0) |
947 |
env.SConscript(dirs = ['paso/src'], build_dir='build/$PLATFORM/paso', duplicate=0) |
env.SConscript(dirs = ['paso/src'], build_dir='build/$PLATFORM/paso', duplicate=0) |
948 |
# bruce is removed for now as it doesn't really do anything |
# bruce is removed for now as it doesn't really do anything |
949 |
# env.SConscript(dirs = ['bruce/src'], build_dir='build/$PLATFORM/bruce', duplicate=0) |
# env.SConscript(dirs = ['bruce/src'], build_dir='build/$PLATFORM/bruce', duplicate=0) |
|
env.SConscript(dirs = ['escript/src'], build_dir='build/$PLATFORM/escript', duplicate=0) |
|
|
env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0) |
|
950 |
env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0) |
env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0) |
951 |
env.SConscript(dirs = ['modellib/py_src'], build_dir='build/$PLATFORM/modellib', duplicate=0) |
env.SConscript(dirs = ['modellib/py_src'], build_dir='build/$PLATFORM/modellib', duplicate=0) |
952 |
env.SConscript(dirs = ['doc'], build_dir='build/$PLATFORM/doc', duplicate=0) |
env.SConscript(dirs = ['doc'], build_dir='build/$PLATFORM/doc', duplicate=0) |