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

Unified Diff: third_party/closure_compiler/compile_js.gypi

Issue 436843006: Closure compile JS files with GYP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to compile_js.gypi Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/closure_compiler/checker_test.py ('k') | third_party/closure_compiler/processor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/compile_js.gypi
diff --git a/third_party/closure_compiler/compile_js.gypi b/third_party/closure_compiler/compile_js.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..6b191522d22d47dd567d3abee3391c546a47db47
--- /dev/null
+++ b/third_party/closure_compiler/compile_js.gypi
@@ -0,0 +1,44 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+{
+ 'type': 'none',
+ 'variables': {
+ 'CLOSURE_DIR': '<(DEPTH)/third_party/closure_compiler',
+ },
+ 'actions': [
+ {
+ # This action optionally takes these arguments:
+ # - depends: scripts that the source file depends on being included already
+ # - externs: files that describe globals used by |source|
+ 'action_name': 'compile_js',
+ 'variables': {
+ 'source_file': '<(_target_name).js',
+ 'out_file': '<(SHARED_INTERMEDIATE_DIR)/closure/<!(python <(CLOSURE_DIR)/build/outputs.py <@(source_file))',
+ 'externs%': [],
+ 'depends%': [],
+ },
+ 'inputs': [
+ '<(CLOSURE_DIR)/checker.py',
+ '<(CLOSURE_DIR)/processor.py',
+ '<(CLOSURE_DIR)/build/inputs.py',
+ '<(CLOSURE_DIR)/build/outputs.py',
+ '<(CLOSURE_DIR)/compiler/compiler.jar',
+ '<(CLOSURE_DIR)/runner/runner.jar',
+ '<!@(python <(CLOSURE_DIR)/build/inputs.py <(source_file) -d <@(depends) -e <@(externs))',
+ ],
+ 'outputs': [
+ '<(out_file)',
+ ],
+ 'action': [
+ 'python',
+ '<(CLOSURE_DIR)/checker.py',
+ '<(source_file)',
+ '--depends', '<@(depends)',
+ '--externs', '<@(externs)',
+ '--out_file', '<(out_file)',
+ ],
+ 'message': 'Compiling <(source_file)',
+ }
+ ],
+}
« no previous file with comments | « third_party/closure_compiler/checker_test.py ('k') | third_party/closure_compiler/processor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698