1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler',
11 # This action optionally takes these arguments:
12 # - depends: scripts that the source file depends on being included already
13 # - externs: files that describe globals used by |source|
14 'action_name': 'compile_js',
16 'source_file': '<(_target_name).js',
17 'out_file': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_DIR)/build/outputs.py <@(source_file))',
23 '<(CLOSURE_DIR)/checker.py',
24 '<(CLOSURE_DIR)/processor.py',
25 '<(CLOSURE_DIR)/build/inputs.py',
26 '<(CLOSURE_DIR)/build/outputs.py',
27 '<(CLOSURE_DIR)/compiler/compiler.jar',
28 '<(CLOSURE_DIR)/runner/runner.jar',
29 '<!@(python <(CLOSURE_DIR)/build/inputs.py <(source_file) -d <@(depends) -e <@(externs))',
36 '<(CLOSURE_DIR)/checker.py',
38 '--depends', '<@(depends)',
39 '--externs', '<@(externs)',
40 '--out_file', '<(out_file)',
41 # Add '--verbose' for make glorious log spam of Closure compiler.
43 'message': 'Compiling <(source_file)',