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

18 lines
350 B
Python
Raw Normal View History

from SCons.Script import Action
2019-02-19 16:50:57 +01:00
def jsToH(env, target, source):
return env.Command(
target=target,
source=["#site_scons/site_tools/jstoh.py"] + source,
action=Action("$PYTHON ${SOURCES[0]} $TARGET ${SOURCES[1:]}"),
)
2019-02-19 16:50:57 +01:00
def generate(env, **kw):
env.AddMethod(jsToH, "JSHeader")
2019-02-19 16:50:57 +01:00
def exists(env):
return True