summaryrefslogtreecommitdiff
path: root/site_scons/site_tools/jsheader.py
diff options
context:
space:
mode:
Diffstat (limited to 'site_scons/site_tools/jsheader.py')
-rw-r--r--site_scons/site_tools/jsheader.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/site_scons/site_tools/jsheader.py b/site_scons/site_tools/jsheader.py
index cb418506200..4c2765b7108 100644
--- a/site_scons/site_tools/jsheader.py
+++ b/site_scons/site_tools/jsheader.py
@@ -1,13 +1,14 @@
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:]}'))
+ 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