0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/site_scons/site_tools/jsheader.py
Mark Benvenuto 4a97f4cff3 SERVER-13759: vcxproj generator improvements
1. VCXProj now builds all .cpp files itself
2. Moved obj files to Build/ to keep repo clean
3. Split jstoh so that it can be called by vcxproj file
4. Make_Vcxproj - fixed to handle cl temp files, fixes now that vcxproj builds
generated files, and fix _TARGET_ search and replace

Note: Depends on python installation
2014-06-12 16:03:38 -04:00

16 lines
299 B
Python

import os
from jstoh import jsToHeader
from SCons.Builder import Builder
def jsToH(target, source, env):
jsToHeader(str(target[0]), source)
jshBuilder = Builder( action=jsToH )
def generate(env, **kw):
env.Append( BUILDERS=dict( JSHeader=jshBuilder ) )
def exists(env):
return True