mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-29 16:47:28 +01:00
18 lines
350 B
Python
18 lines
350 B
Python
from SCons.Script import Action
|
|
|
|
|
|
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:]}"),
|
|
)
|
|
|
|
|
|
def generate(env, **kw):
|
|
env.AddMethod(jsToH, "JSHeader")
|
|
|
|
|
|
def exists(env):
|
|
return True
|