Updating TSCons.py to provide capability of passing additional flags to thrift beside...
authormvaradachari <dev-null@apache.org>
Mon, 17 Sep 2007 20:40:16 +0000 (20:40 +0000)
committermvaradachari <dev-null@apache.org>
Mon, 17 Sep 2007 20:40:16 +0000 (20:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665266 13f79535-47bb-0310-9956-ffa450edef68

lib/py/src/TSCons.py

index bb0295f..2049033 100644 (file)
@@ -8,8 +8,9 @@
 
 from SCons.Builder import Builder
 
-def scons_env(env):
-  cppbuild = Builder(action = 'thrift --cpp $SOURCE')
+def scons_env(env, add=''):
+  lstr = 'thrift --cpp ' + add + ' $SOURCE'
+  cppbuild = Builder(action = lstr)
   env.Append(BUILDERS = {'ThriftCpp' : cppbuild})
 
 def gen_cpp(env, dir, file):