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

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 Android GN build 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 'variables': {
9 'success_stamp': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp', 9 'success_stamp': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp',
10 'success_stamp_bt': '<(PRODUCT_DIR)/<(_target_name)_bt_jscompile.stamp', 10 'success_stamp_bt': '<(PRODUCT_DIR)/<(_target_name)_bt_jscompile.stamp',
11 'success_stamp_ut': '<(PRODUCT_DIR)/<(_target_name)_ut_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 }, 12 },
19 'actions': [ 13 'actions': [
20 { 14 {
21 'action_name': 'Verify remoting webapp', 15 'action_name': 'Verify remoting webapp',
16 'includes': ['compile_js.gypi'],
22 'inputs': [ 17 'inputs': [
23 'remoting_webapp_compile.gypi', 18 'remoting_webapp_compile.gypi',
24 'remoting_webapp_files.gypi', 19 'remoting_webapp_files.gypi',
25 '<@(remoting_webapp_crd_js_files)',
26 '<@(remoting_webapp_js_proto_files)',
27 ], 20 ],
28 'outputs': [ 21 'variables': {
29 '<(success_stamp)', 22 'source_files': [
30 ], 23 '<@(remoting_webapp_crd_js_files)',
31 'action': [ 24 '<@(remoting_webapp_js_proto_files)',
32 'python', '<(DEPTH)/third_party/closure_compiler/compile.py', 25 ],
33 '<@(compiler_flags)', 26 'out_file': '<(success_stamp)',
34 '--success-stamp', '<(success_stamp)', 27 'script_args': [
35 '<@(remoting_webapp_crd_js_files)', 28 '--success-stamp', '<(success_stamp)',
Dan Beam 2015/06/03 23:39:11 i don't think we need --success-stamp now that we
Theresa 2015/06/04 17:44:05 I think you're right. Should I kill it in compile.
Dan Beam 2015/06/04 18:35:45 plz
Theresa 2015/06/04 19:21:30 Done.
36 '<@(remoting_webapp_js_proto_files)', 29 ],
37 ], 30 'externs': ['<(DEPTH)/third_party/closure_compiler/externs/chrome_extens ions.js'],
31 },
38 }, 32 },
39 { 33 {
40 'action_name': 'Verify remoting webapp with browsertests', 34 'action_name': 'Verify remoting webapp with browsertests',
35 'includes': ['compile_js.gypi'],
41 'inputs': [ 36 'inputs': [
42 'remoting_webapp_compile.gypi', 37 'remoting_webapp_compile.gypi',
43 'remoting_webapp_files.gypi', 38 '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 ], 39 ],
48 'outputs': [ 40 'variables': {
49 '<(success_stamp_bt)', 41 'source_files': [
50 ], 42 '<@(remoting_webapp_crd_js_files)',
51 'action': [ 43 '<@(remoting_webapp_browsertest_all_js_files)',
52 'python', '<(DEPTH)/third_party/closure_compiler/compile.py', 44 '<@(remoting_webapp_browsertest_js_proto_files)',
53 '<@(compiler_flags)', 45 ],
54 '--success-stamp', '<(success_stamp_bt)', 46 'out_file': '<(success_stamp_bt)',
55 '<@(remoting_webapp_crd_js_files)', 47 'script_args': [
56 '<@(remoting_webapp_browsertest_all_js_files)', 48 '--success-stamp', '<(success_stamp_bt)',
57 '<@(remoting_webapp_browsertest_js_proto_files)', 49 ],
58 ], 50 'externs': ['<(DEPTH)/third_party/closure_compiler/externs/chrome_extens ions.js'],
51 },
59 }, 52 },
60 { 53 {
61 'action_name': 'Verify remoting webapp unittests', 54 'action_name': 'Verify remoting webapp unittests',
55 'includes': ['compile_js.gypi'],
62 'inputs': [ 56 'inputs': [
63 'remoting_webapp_compile.gypi', 57 'remoting_webapp_compile.gypi',
64 'remoting_webapp_files.gypi', 58 '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 ], 59 ],
69 'outputs': [ 60 'variables': {
70 '<(success_stamp_ut)', 61 'source_files': [
71 ], 62 '<@(remoting_webapp_crd_js_files)',
72 'action': [ 63 '<@(remoting_webapp_unittests_all_js_files)',
73 'python', '<(DEPTH)/third_party/closure_compiler/compile.py', 64 '<@(remoting_webapp_unittests_js_proto_files)',
74 '<@(compiler_flags)', 65 ],
75 '--success-stamp', '<(success_stamp_ut)', 66 'out_file': '<(success_stamp_ut)',
76 '<@(remoting_webapp_crd_js_files)', 67 'script_args': [
77 '<@(remoting_webapp_unittests_all_js_files)', 68 '--success-stamp', '<(success_stamp_ut)',
78 '<@(remoting_webapp_unittests_js_proto_files)', 69 ],
79 ], 70 'externs': ['<(DEPTH)/third_party/closure_compiler/externs/chrome_extens ions.js'],
71 },
80 }, 72 },
81 ], 73 ],
82 'includes': ['remoting_webapp_files.gypi'], 74 'includes': ['remoting_webapp_files.gypi'],
83 } 75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698