summaryrefslogtreecommitdiff
path: root/third_party/sm.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/sm.py')
-rw-r--r--third_party/sm.py22
1 files changed, 18 insertions, 4 deletions
diff --git a/third_party/sm.py b/third_party/sm.py
index 53e7984..9927be8 100644
--- a/third_party/sm.py
+++ b/third_party/sm.py
@@ -42,15 +42,20 @@ root = "third_party/js-1.7"
def r(x):
return "%s/%s" % ( root , x )
-def configure( env , fileLists , options ):
- if not options["usesm"]:
- return
-
+def configureBasics( env , fileLists , options ):
if options["windows"]:
env.Append( CPPDEFINES=[ "XP_WIN" ] )
else:
env.Append( CPPDEFINES=[ "XP_UNIX" ] )
+
+
+def configure( env , fileLists , options ):
+ if not options["usesm"]:
+ return
+
+ configureBasics( env , fileLists , options )
+
env.Prepend( CPPPATH=[root] )
myenv = env.Clone()
@@ -98,3 +103,12 @@ def configure( env , fileLists , options ):
myenv.Auto( r("jsautocfg.h") , [ jscpucfg ] )
myenv.Depends( r("jsscan.c") , r("jsautokw.h") )
+
+
+def configureSystem( env , fileLists , options ):
+ if not options["usesm"]:
+ return
+
+ configureBasics( env , fileLists , options )
+
+ env.Append( LIBS=[ "js" ] )