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

Side by Side Diff: remoting/remoting_webapp_compile.gypi

Issue 1152583011: Refactor compile_js.gypi to support script_args and closure_args (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inputs.py Created 5 years, 6 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 # File in charge of Closure compiling remoting's webapp. 5 # File in charge of Closure compiling remoting's webapp.
6 6
7 { 7 {
8 'variables': { 8 'targets': [
9 'success_stamp': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp',
10 'success_stamp_bt': '<(PRODUCT_DIR)/<(_target_name)_bt_jscompile.stamp',
11 'success_stamp_ut': '<(PRODUCT_DIR)/<(_target_name)_ut_jscompile.stamp',
12 'compiler_flags': [
13 '--strict',
14 '--no-single-file',
15 '--externs',
16 '<(DEPTH)/third_party/closure_compiler/externs/chrome_extensions.js',
17 ],
18 },
19 'actions': [
20 { 9 {
21 'action_name': 'Verify remoting webapp', 10 'target_name': 'verify_remoting_webapp',
22 'inputs': [ 11 'inputs': [
23 'remoting_webapp_compile.gypi', 12 'remoting_webapp_compile.gypi',
24 'remoting_webapp_files.gypi', 13 'remoting_webapp_files.gypi',
25 '<@(remoting_webapp_crd_js_files)',
26 '<@(remoting_webapp_js_proto_files)',
27 ], 14 ],
28 'outputs': [ 15 'variables': {
29 '<(success_stamp)', 16 'source_files': [
30 ], 17 '<@(remoting_webapp_crd_js_files)',
31 'action': [ 18 '<@(remoting_webapp_js_proto_files)',
32 'python', '<(DEPTH)/third_party/closure_compiler/compile.py', 19 ],
33 '<@(compiler_flags)', 20 'out_file': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp',
34 '--success-stamp', '<(success_stamp)', 21 },
35 '<@(remoting_webapp_crd_js_files)', 22 'includes': ['compile_js.gypi'],
36 '<@(remoting_webapp_js_proto_files)',
37 ],
38 }, 23 },
39 { 24 {
40 'action_name': 'Verify remoting webapp with browsertests', 25 'target_name': 'verify_remoting_webapp_with_browsertests',
41 'inputs': [ 26 'inputs': [
42 'remoting_webapp_compile.gypi', 27 'remoting_webapp_compile.gypi',
43 'remoting_webapp_files.gypi', 28 'remoting_webapp_files.gypi',
44 '<@(remoting_webapp_crd_js_files)',
45 '<@(remoting_webapp_browsertest_all_js_files)',
46 '<@(remoting_webapp_browsertest_js_proto_files)',
47 ], 29 ],
48 'outputs': [ 30 'variables': {
49 '<(success_stamp_bt)', 31 'source_files': [
50 ], 32 '<@(remoting_webapp_crd_js_files)',
51 'action': [ 33 '<@(remoting_webapp_browsertest_all_js_files)',
52 'python', '<(DEPTH)/third_party/closure_compiler/compile.py', 34 '<@(remoting_webapp_browsertest_js_proto_files)',
53 '<@(compiler_flags)', 35 ],
54 '--success-stamp', '<(success_stamp_bt)', 36 'out_file': '<(PRODUCT_DIR)/<(_target_name)_bt_jscompile.stamp',
55 '<@(remoting_webapp_crd_js_files)', 37 },
56 '<@(remoting_webapp_browsertest_all_js_files)', 38 'includes': ['compile_js.gypi'],
57 '<@(remoting_webapp_browsertest_js_proto_files)',
58 ],
59 }, 39 },
60 { 40 {
61 'action_name': 'Verify remoting webapp unittests', 41 'target_name': 'verify_remoting_webapp_unittests',
62 'inputs': [ 42 'inputs': [
63 'remoting_webapp_compile.gypi', 43 'remoting_webapp_compile.gypi',
64 'remoting_webapp_files.gypi', 44 'remoting_webapp_files.gypi',
65 '<@(remoting_webapp_crd_js_files)',
66 '<@(remoting_webapp_unittests_all_js_files)',
67 '<@(remoting_webapp_unittests_js_proto_files)',
68 ], 45 ],
69 'outputs': [ 46 'variables': {
70 '<(success_stamp_ut)', 47 'source_files': [
71 ], 48 '<@(remoting_webapp_crd_js_files)',
72 'action': [ 49 '<@(remoting_webapp_unittests_all_js_files)',
73 'python', '<(DEPTH)/third_party/closure_compiler/compile.py', 50 '<@(remoting_webapp_unittests_js_proto_files)',
74 '<@(compiler_flags)', 51 ],
75 '--success-stamp', '<(success_stamp_ut)', 52 'out_file': '<(PRODUCT_DIR)/<(_target_name)_ut_jscompile.stamp',
76 '<@(remoting_webapp_crd_js_files)', 53 },
77 '<@(remoting_webapp_unittests_all_js_files)', 54 'includes': ['compile_js.gypi'],
78 '<@(remoting_webapp_unittests_js_proto_files)',
79 ],
80 }, 55 },
81 ], 56 ],
82 'includes': ['remoting_webapp_files.gypi'], 57 'includes': ['remoting_webapp_files.gypi'],
83 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698