[cig-commits] commit: Add mising SConscript

Mercurial hg at geodynamics.org
Wed Nov 2 16:59:32 PDT 2011


changeset:   387:458e51062300
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Wed Nov 02 16:59:24 2011 -0700
files:       json_spirit/SConscript
description:
Add mising SConscript


diff -r 3afc99692b95 -r 458e51062300 json_spirit/SConscript
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/json_spirit/SConscript	Wed Nov 02 16:59:24 2011 -0700
@@ -0,0 +1,26 @@
+import os
+Import('env')
+
+#
+# Need to make a copy because SCons uses the environment.
+# at it's final state, so StGermain ends up depending on
+# StgDomain, etc.
+#
+
+env = env.Clone()
+
+#
+# Inside each project we will be accessing headers without the
+# project name as a build_dir, so we need to let SCons know how to
+# find those headers.
+#
+
+env.Append(CPPPATH=env['build_dir'] + '/include/json_spirit')
+
+hdrs = env.Install('include/json_spirit/', Glob('json_spirit/*.h'))
+
+srcs = Glob('json_spirit/*.cpp')
+objs = env.SharedObject(srcs)
+
+l=env.StaticLibrary(env['build_dir'] + '/lib/json_spirit', objs)
+env.Install(env['prefix'] + '/lib', l)



More information about the CIG-COMMITS mailing list