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

Side by Side Diff: remoting/remoting_webapp.gypi

Issue 1037613002: Rework how remoting JS compilation GYP works. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 2014 The Chromium Authors. All rights reserved. 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 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 included in remoting_webapp_* targets in remoting_client.gypi 5 # File included in remoting_webapp_* targets in remoting_client.gypi
6 6
7 { 7 {
8 'type': 'none', 8 'type': 'none',
9 'variables': { 9 'variables': {
10 'extra_files%': [], 10 'extra_files%': [],
11 'generated_html_files': [ 11 'generated_html_files': [
12 '<(SHARED_INTERMEDIATE_DIR)/background.html', 12 '<(SHARED_INTERMEDIATE_DIR)/background.html',
13 '<(SHARED_INTERMEDIATE_DIR)/main.html', 13 '<(SHARED_INTERMEDIATE_DIR)/main.html',
14 '<(SHARED_INTERMEDIATE_DIR)/message_window.html', 14 '<(SHARED_INTERMEDIATE_DIR)/message_window.html',
15 '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html', 15 '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
16 ], 16 ],
17 'dr_webapp_locales_listfile': '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)_lo cales.txt', 17 'dr_webapp_locales_listfile': '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)_lo cales.txt',
18 }, 18 },
19 'dependencies': [ 19 'dependencies': [
20 'remoting_resources', 20 'remoting_resources',
21 'remoting_webapp_html', 21 'remoting_webapp_html',
22 ], 22 ],
23 'conditions': [ 23 'conditions': [
24 ['run_jscompile != 0', { 24 ['run_jscompile != 0', {
25 'variables': { 25 'includes': ['remoting_webapp_compile.gypi'],
26 'success_stamp': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp',
27 'success_stamp_bt': '<(PRODUCT_DIR)/<(_target_name)_bt_jscompile.stamp',
28 'success_stamp_ut': '<(PRODUCT_DIR)/<(_target_name)_ut_jscompile.stamp',
29 },
30 'actions': [
31 {
32 'action_name': 'Verify remoting webapp',
33 'inputs': [
34 '<@(remoting_webapp_crd_js_files)',
35 '<@(remoting_webapp_js_proto_files)',
36 ],
37 'outputs': [
38 '<(success_stamp)',
39 ],
40 'action': [
41 'python', '../third_party/closure_compiler/checker.py',
42 '--strict',
43 '--no-single-file',
44 '--success-stamp', '<(success_stamp)',
45 '<@(remoting_webapp_crd_js_files)',
46 '<@(remoting_webapp_js_proto_files)',
47 ],
48 },
49 {
50 'action_name': 'Verify remoting webapp with browsertests',
51 'inputs': [
52 '<@(remoting_webapp_crd_js_files)',
53 '<@(remoting_webapp_browsertest_all_js_files)',
54 '<@(remoting_webapp_browsertest_js_proto_files)',
55 ],
56 'outputs': [
57 '<(success_stamp_bt)',
58 ],
59 'action': [
60 'python', '../third_party/closure_compiler/checker.py',
61 '--strict',
62 '--no-single-file',
63 '--success-stamp', '<(success_stamp_bt)',
64 '<@(remoting_webapp_crd_js_files)',
65 '<@(remoting_webapp_browsertest_all_js_files)',
66 '<@(remoting_webapp_browsertest_js_proto_files)',
67 ],
68 },
69 {
70 'action_name': 'Verify remoting webapp unittests',
71 'inputs': [
72 '<@(remoting_webapp_crd_js_files)',
73 '<@(remoting_webapp_unittests_all_js_files)',
74 '<@(remoting_webapp_unittests_js_proto_files)',
75 ],
76 'outputs': [
77 '<(success_stamp_ut)',
78 ],
79 'action': [
80 'python', '../third_party/closure_compiler/checker.py',
81 '--strict',
82 '--no-single-file',
83 '--success-stamp', '<(success_stamp_ut)',
84 '<@(remoting_webapp_crd_js_files)',
85 '<@(remoting_webapp_unittests_all_js_files)',
86 '<@(remoting_webapp_unittests_js_proto_files)',
87 ],
88 },
89 ], # actions
90 }], 26 }],
91 ], 27 ],
92 'actions': [ 28 'actions': [
93 { 29 {
94 'action_name': 'Build Remoting locales listfile', 30 'action_name': 'Build Remoting locales listfile',
95 'inputs': [ 31 'inputs': [
96 '<(remoting_localize_path)', 32 '<(remoting_localize_path)',
97 ], 33 ],
98 'outputs': [ 34 'outputs': [
99 '<(dr_webapp_locales_listfile)', 35 '<(dr_webapp_locales_listfile)',
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 '<(webapp_type)', 70 '<(webapp_type)',
135 '<@(generated_html_files)', 71 '<@(generated_html_files)',
136 '<@(remoting_webapp_crd_files)', 72 '<@(remoting_webapp_crd_files)',
137 '<@(extra_files)', 73 '<@(extra_files)',
138 '--locales_listfile', 74 '--locales_listfile',
139 '<(dr_webapp_locales_listfile)', 75 '<(dr_webapp_locales_listfile)',
140 ], 76 ],
141 }, 77 },
142 ], 78 ],
143 } 79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698