diff options
author | Antonin Kral <a.kral@bobek.cz> | 2011-12-15 10:02:19 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2011-12-15 10:02:46 +0100 |
commit | 0b48f8ada2acb0de830b23f8cefc8e3fea28d915 (patch) | |
tree | f7c2811269b6b53199412be2dd5ec02eea15d55d /third_party/sm.py | |
parent | 85f1cd56145b90a32b7ccdc750000deeed54fe22 (diff) | |
parent | f0d9a01bccdaeb466c12c92057914bbfef59526c (diff) | |
download | mongodb-0b48f8ada2acb0de830b23f8cefc8e3fea28d915.tar.gz |
Merge branch 'upstream/2.0.2'
Diffstat (limited to 'third_party/sm.py')
-rw-r--r-- | third_party/sm.py | 22 |
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" ] ) |