diff options
author | 2014-06-28 16:12:44 +0200 | |
---|---|---|
committer | 2014-06-28 20:23:59 +0200 | |
commit | 2c797aba90ec32fa979dce8c89789309f936ddce (patch) | |
tree | fd08def9e9e9cd9892e8b5743fa91be4ad45b26c /module/lib/thrift/TSCons.py | |
parent | [Lib] Update simplejson to version 3.5.3 (diff) | |
download | pyload-2c797aba90ec32fa979dce8c89789309f936ddce.tar.xz |
[Lib] Update thrift to version 0.9.1
Diffstat (limited to 'module/lib/thrift/TSCons.py')
-rw-r--r-- | module/lib/thrift/TSCons.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/module/lib/thrift/TSCons.py b/module/lib/thrift/TSCons.py index 24046256c..da8d2833b 100644 --- a/module/lib/thrift/TSCons.py +++ b/module/lib/thrift/TSCons.py @@ -20,14 +20,16 @@ from os import path from SCons.Builder import Builder + def scons_env(env, add=''): opath = path.dirname(path.abspath('$TARGET')) lstr = 'thrift --gen cpp -o ' + opath + ' ' + add + ' $SOURCE' - cppbuild = Builder(action = lstr) - env.Append(BUILDERS = {'ThriftCpp' : cppbuild}) + cppbuild = Builder(action=lstr) + env.Append(BUILDERS={'ThriftCpp': cppbuild}) + def gen_cpp(env, dir, file): scons_env(env) suffixes = ['_types.h', '_types.cpp'] targets = map(lambda s: 'gen-cpp/' + file + s, suffixes) - return env.ThriftCpp(targets, dir+file+'.thrift') + return env.ThriftCpp(targets, dir + file + '.thrift') |