[cig-commits] commit: Add SConscript to muparserx
Mercurial
hg at geodynamics.org
Wed Nov 9 00:47:52 PST 2011
changeset: 390:ca079735b744
user: Walter Landry <wlandry at caltech.edu>
date: Tue Nov 08 10:44:35 2011 -0800
files: muparserx/SConscript
description:
Add SConscript to muparserx
diff -r 8ecf53e02278 -r ca079735b744 muparserx/SConscript
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/muparserx/SConscript Tue Nov 08 10:44:35 2011 -0800
@@ -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/muparserx')
+
+hdrs = env.Install('include/muparserx/', Glob('parser/*.h'))
+
+srcs = Glob('parser/*.cpp')
+objs = env.SharedObject(srcs)
+
+l=env.StaticLibrary(env['build_dir'] + '/lib/muparserx', objs)
+env.Install(env['prefix'] + '/lib', l)
More information about the CIG-COMMITS
mailing list