Revision 6df7a255c3ade022f4da4f165e48778db09f2e7e authored by Haneef Mubarak on 25 February 2014, 07:41:42 UTC, committed by Alon Zakai on 06 March 2014, 23:39:23 UTC
1 parent 82c7264
closure.py
import os.path
from SCons.Builder import Builder
def generate(env):
def depend_on_closure_compiler(target, source, env):
env.Depends(target, env['CLOSURE_COMPILER'])
return target, source
ClosureCompiler = Builder(
action='$JAVA $JAVAFLAGS -jar $CLOSURE_COMPILER $CLOSURE_FLAGS --js_output_file $TARGET $SOURCES',
emitter=depend_on_closure_compiler
)
closure = os.path.join(
os.path.dirname(__file__),
'..',
'third_party',
'closure-compiler',
'compiler.jar')
closure = env.File(closure)
env['JAVA'] = 'java'
env['CLOSURE_COMPILER'] = closure
env.Append(
BUILDERS={'ClosureCompiler':ClosureCompiler})
def exists(_env):
return True
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...