1 import os
2 env = Environment()
3
4 # Default build options
5 # Multi-core parallel build
6 SetOption('num_jobs', 4)
7
8 # to create only link (not copy) of source code into the build dir.
9 SetOption('duplicate','soft-hard-copy')
10
11 env.Decider('MD5-timestamp')
12 env.MergeFlags('-g2')
13 Export('env')
14
15 buildDir = '#build'
16
17
18 # The directory structure of the project
19 dirs = ['.','common/test'
20 ]
21 for dir in dirs:
22 SConscript(
23 dir + os.sep + 'SConscript',
24 build_dir = buildDir + os.sep + dir,
25 duplicate = 0
26 )
1 # -*- mode: python -*-
2
3 # Inherit the environment from my parent.
4 Import('env')
5
6 # Make a copy of the environment, so my changes are limited in this directory and sub-directories.
7 env = env.Clone()
8
9
10 env.Program('first','main.cpp',LIBS='test',LIBPATH=['.','build/common/test'],CPPPATH='#common/test/include')
1 # -*- mode: python -*-
2
3 # Inherit the environment from my parent.
4 Import('env')
5
6 # Make a copy of the environment, so my changes are limited in this directory and sub-directories.
7 env = env.Clone()
8 env.Library(target="test",
9 source=["test.cpp"])
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
2 env = Environment()
3
4 # Default build options
5 # Multi-core parallel build
6 SetOption('num_jobs', 4)
7
8 # to create only link (not copy) of source code into the build dir.
9 SetOption('duplicate','soft-hard-copy')
10
11 env.Decider('MD5-timestamp')
12 env.MergeFlags('-g2')
13 Export('env')
14
15 buildDir = '#build'
16
17
18 # The directory structure of the project
19 dirs = ['.','common/test'
20 ]
21 for dir in dirs:
22 SConscript(
23 dir + os.sep + 'SConscript',
24 build_dir = buildDir + os.sep + dir,
25 duplicate = 0
26 )
1 # -*- mode: python -*-
2
3 # Inherit the environment from my parent.
4 Import('env')
5
6 # Make a copy of the environment, so my changes are limited in this directory and sub-directories.
7 env = env.Clone()
8
9
10 env.Program('first','main.cpp',LIBS='test',LIBPATH=['.','build/common/test'],CPPPATH='#common/test/include')
1 # -*- mode: python -*-
2
3 # Inherit the environment from my parent.
4 Import('env')
5
6 # Make a copy of the environment, so my changes are limited in this directory and sub-directories.
7 env = env.Clone()
8 env.Library(target="test",
9 source=["test.cpp"])
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH