Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/closure_compiler/compile_js2.gypi

Issue 2117653002: Add the ability to pass arguments to runner.jar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enable-chrome-pass
Patch Set: merge Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 { 4 {
5 'type': 'none', 5 'type': 'none',
6 6
7 'variables': { 7 'variables': {
8 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler', 8 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler',
9 'EXTERNS_GYP': '<(CLOSURE_DIR)/externs/compiled_resources2.gyp', 9 'EXTERNS_GYP': '<(CLOSURE_DIR)/externs/compiled_resources2.gyp',
10 'INTERFACES_GYP': '<(CLOSURE_DIR)/interfaces/compiled_resources2.gyp', 10 'INTERFACES_GYP': '<(CLOSURE_DIR)/interfaces/compiled_resources2.gyp',
(...skipping 21 matching lines...) Expand all
32 # - out_file: a file where the compiled output is written to. The default 32 # - out_file: a file where the compiled output is written to. The default
33 # is gen/closure/<path to |target_name|>/|target_name|.js. 33 # is gen/closure/<path to |target_name|>/|target_name|.js.
34 # - script_args: additional arguments to pass to compile.py. 34 # - script_args: additional arguments to pass to compile.py.
35 # - closure_args: additional arguments to pass to the Closure compiler. 35 # - closure_args: additional arguments to pass to the Closure compiler.
36 # - disabled_closure_args: additional arguments dealing with the 36 # - disabled_closure_args: additional arguments dealing with the
37 # strictness of compilation; Non-strict 37 # strictness of compilation; Non-strict
38 # defaults are provided that can be overriden. 38 # defaults are provided that can be overriden.
39 'variables': { 39 'variables': {
40 'target_path': '<!(python <(CLOSURE_DIR)/build/outputs.py <(default_sour ce_file))', 40 'target_path': '<!(python <(CLOSURE_DIR)/build/outputs.py <(default_sour ce_file))',
41 'out_file%': '<(SHARED_INTERMEDIATE_DIR)/closure/<(target_path)', 41 'out_file%': '<(SHARED_INTERMEDIATE_DIR)/closure/<(target_path)',
42 # TODO(dbeam): add --custom_sources when 'source_files' is set? 42 'runner_args%': ['enable-chrome-pass'],
43 # TODO(dbeam): remove when no longer used from remoting/.
43 'script_args%': [], 44 'script_args%': [],
45 'closure_args%': '<(default_closure_args)',
44 'disabled_closure_args%': '<(default_disabled_closure_args)', 46 'disabled_closure_args%': '<(default_disabled_closure_args)',
45 }, 47 },
46 48
47 'inputs': [ 49 'inputs': [
48 '<(CLOSURE_DIR)/compile_js2.gypi', 50 '<(CLOSURE_DIR)/compile_js2.gypi',
49 '<(CLOSURE_DIR)/compile2.py', 51 '<(CLOSURE_DIR)/compile2.py',
50 '<(CLOSURE_DIR)/include_js.gypi', 52 '<(CLOSURE_DIR)/include_js.gypi',
51 '<(CLOSURE_DIR)/processor.py', 53 '<(CLOSURE_DIR)/processor.py',
52 '<(CLOSURE_DIR)/build/outputs.py', 54 '<(CLOSURE_DIR)/build/outputs.py',
53 '<(CLOSURE_DIR)/compiler/compiler.jar', 55 '<(CLOSURE_DIR)/compiler/compiler.jar',
54 '<(CLOSURE_DIR)/runner/runner.jar', 56 '<(CLOSURE_DIR)/runner/runner.jar',
55 '>@(_sources)', 57 '>@(_sources)',
56 ], 58 ],
57 59
58 'outputs': ['<(out_file)'], 60 'outputs': ['<(out_file)'],
59 61
60 'action': [ 62 'action': [
61 'python', 63 'python',
62 '<(CLOSURE_DIR)/compile2.py', 64 '<(CLOSURE_DIR)/compile2.py',
63 '<@(script_args)', 65 '<@(script_args)',
64 '>@(_sources)', 66 '>@(_sources)',
65 '--out_file', '<(out_file)', 67 '--out_file', '<(out_file)',
68 '--runner_args', '<@(runner_args)',
66 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)', 69 '--closure_args', '<@(closure_args)', '<@(disabled_closure_args)',
67 # '--verbose' # for make glorious log spam of Closure compiler. 70 # '--verbose' # for make glorious log spam of Closure compiler.
68 ], 71 ],
69 72
70 'message': 'Compiling <(target_path)', 73 'message': 'Compiling <(target_path)',
71 }, 74 },
72 ], 75 ],
73 } 76 }
OLDNEW
« no previous file with comments | « third_party/closure_compiler/compile_js.gypi ('k') | third_party/closure_compiler/compiler_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698