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.
5 # This file should be deprecated in favor of js_compile_checked.gypi or
6 # eventually third_party/closure_compiler/compile_js.gypi as iOS JS code
7 # becomes error free. See http://crbug.com/487804
10 'closure_compiler_path': '<(DEPTH)/third_party/closure_compiler/compiler/compiler.jar',
11 'compile_javascript%': 1,
14 ['compile_javascript==1', {
17 'rule_name': 'jscompilation',
20 '<(closure_compiler_path)',
23 '<(SHARED_INTERMEDIATE_DIR)/<(RULE_INPUT_NAME)',
28 '<(closure_compiler_path)',
29 '--compilation_level',
30 'SIMPLE_OPTIMIZATIONS',
36 'message': 'Running closure compiler on <(RULE_INPUT_NAME)',
37 } # rule_name: jscompilation
42 'rule_name': 'jscompilation',
45 '<(SHARED_INTERMEDIATE_DIR)/<(RULE_INPUT_NAME)',
53 ]} # rule_name: jscompilation
54 ] # condition: compile_javascript