|
|
@@ -9,6 +9,10 @@ def ParseOptions():
|
|
|
|
|
|
ParseOptions()
|
|
|
|
|
|
+env.Append(LIBPATH=[
|
|
|
+ '/usr/local/lib'
|
|
|
+])
|
|
|
+
|
|
|
env.Append(LIBS=[
|
|
|
'gflags',
|
|
|
'glog',
|
|
|
@@ -18,16 +22,17 @@ env.Append(LIBS=[
|
|
|
|
|
|
if GetOption('opt') == True:
|
|
|
env['root'] = 'opt'
|
|
|
- env.Append(CCFLAGS='-g')
|
|
|
- env.Append(LIBS='tcmalloc_debug')
|
|
|
-else:
|
|
|
- env['root'] = 'dbg'
|
|
|
env.Append(CCFLAGS='-O2 -g')
|
|
|
env.Append(LIBS='tcmalloc')
|
|
|
+else:
|
|
|
+ env['root'] = 'dbg'
|
|
|
+ env.Append(CCFLAGS='-g')
|
|
|
+ env.Append(LIBS='tcmalloc_debug')
|
|
|
|
|
|
env.Append(CPPPATH=Dir(env['root']).abspath)
|
|
|
|
|
|
+
|
|
|
Export('env')
|
|
|
|
|
|
-SConscript('src/SConscript', build_dir=env['root'])
|
|
|
+SConscript('src/SConscript', variant_dir=env['root'])
|
|
|
|