Lines 1-6
Link Here
|
1 |
--- SConstruct |
1 |
--- SConstruct.orig 2016-05-09 23:15:49 UTC |
2 |
+++ SConstruct |
2 |
+++ SConstruct |
3 |
@@ -26,7 +26,7 @@ |
3 |
@@ -26,7 +26,7 @@ try: |
4 |
if platform == 'linux-gcc': |
4 |
if platform == 'linux-gcc': |
5 |
CXX = 'g++' # not quite right, but env is not yet available. |
5 |
CXX = 'g++' # not quite right, but env is not yet available. |
6 |
import commands |
6 |
import commands |
Lines 9-15
Link Here
|
9 |
platform = 'linux-gcc-%s' %version |
9 |
platform = 'linux-gcc-%s' %version |
10 |
print "Using platform '%s'" %platform |
10 |
print "Using platform '%s'" %platform |
11 |
LD_LIBRARY_PATH = os.environ.get('LD_LIBRARY_PATH', '') |
11 |
LD_LIBRARY_PATH = os.environ.get('LD_LIBRARY_PATH', '') |
12 |
@@ -65,7 +65,7 @@ |
12 |
@@ -65,7 +65,7 @@ def make_environ_vars(): |
13 |
return vars |
13 |
return vars |
14 |
|
14 |
|
15 |
|
15 |
|
Lines 18-32
Link Here
|
18 |
toolpath = ['scons-tools'], |
18 |
toolpath = ['scons-tools'], |
19 |
tools=[] ) #, tools=['default'] ) |
19 |
tools=[] ) #, tools=['default'] ) |
20 |
|
20 |
|
21 |
@@ -121,6 +121,7 @@ |
21 |
@@ -121,6 +121,7 @@ elif platform.startswith('linux-gcc'): |
22 |
env.Tool( 'default' ) |
22 |
env.Tool( 'default' ) |
23 |
env.Append( LIBS = ['pthread'], CCFLAGS = "-Wall" ) |
23 |
env.Append( LIBS = ['pthread'], CCFLAGS = os.environ.get("CXXFLAGS", "-Wall"), LINKFLAGS=os.environ.get("LDFLAGS", "") ) |
24 |
env['SHARED_LIB_ENABLED'] = True |
24 |
env['SHARED_LIB_ENABLED'] = True |
25 |
+ env['CXX'] = os.environ['CXX'] |
25 |
+ env['CXX'] = os.environ['CXX'] |
26 |
else: |
26 |
else: |
27 |
print "UNSUPPORTED PLATFORM." |
27 |
print "UNSUPPORTED PLATFORM." |
28 |
env.Exit(1) |
28 |
env.Exit(1) |
29 |
@@ -147,6 +148,11 @@ |
29 |
@@ -147,6 +148,11 @@ env['JSONCPP_VERSION'] = JSONCPP_VERSION |
30 |
env['BUILD_DIR'] = env.Dir(build_dir) |
30 |
env['BUILD_DIR'] = env.Dir(build_dir) |
31 |
env['ROOTBUILD_DIR'] = env.Dir(rootbuild_dir) |
31 |
env['ROOTBUILD_DIR'] = env.Dir(rootbuild_dir) |
32 |
env['DIST_DIR'] = DIST_DIR |
32 |
env['DIST_DIR'] = DIST_DIR |
Lines 38-44
Link Here
|
38 |
if 'TarGz' in env['BUILDERS']: |
38 |
if 'TarGz' in env['BUILDERS']: |
39 |
class SrcDistAdder: |
39 |
class SrcDistAdder: |
40 |
def __init__( self, env ): |
40 |
def __init__( self, env ): |
41 |
@@ -164,7 +170,7 @@ |
41 |
@@ -164,7 +170,7 @@ env['SRCDIST_ADD'] = SrcDistAdder( env ) |
42 |
env['SRCDIST_TARGET'] = os.path.join( DIST_DIR, 'jsoncpp-src-%s.tar.gz' % env['JSONCPP_VERSION'] ) |
42 |
env['SRCDIST_TARGET'] = os.path.join( DIST_DIR, 'jsoncpp-src-%s.tar.gz' % env['JSONCPP_VERSION'] ) |
43 |
|
43 |
|
44 |
env_testing = env.Clone( ) |
44 |
env_testing = env.Clone( ) |
Lines 47-53
Link Here
|
47 |
|
47 |
|
48 |
def buildJSONExample( env, target_sources, target_name ): |
48 |
def buildJSONExample( env, target_sources, target_name ): |
49 |
env = env.Clone() |
49 |
env = env.Clone() |
50 |
@@ -187,14 +193,14 @@ |
50 |
@@ -187,14 +193,14 @@ def buildUnitTests( env, target_sources, |
51 |
env.AlwaysBuild( check_alias_target ) |
51 |
env.AlwaysBuild( check_alias_target ) |
52 |
|
52 |
|
53 |
def buildLibrary( env, target_sources, target_name ): |
53 |
def buildLibrary( env, target_sources, target_name ): |