OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'includes': [ | |
7 'remoting_version.gypi', | |
8 'remoting_locales.gypi', | |
9 'remoting_options.gypi', | |
10 'remoting_webapp_files.gypi', | |
11 'app_remoting_webapp_files.gypi', | |
12 ], | |
13 'targets': [ | |
14 { | |
15 # GN version: //remoting/webapp:ar_shared_module | |
16 'target_name': 'ar_shared_module', | |
17 'type': 'none', | |
18 'dependencies': [ | |
19 'remoting_nacl.gyp:remoting_client_plugin_nacl', | |
20 ], | |
21 'variables': { | |
22 'app_key': 'Sample_App', | |
23 'app_id': 'ljacajndfccfgnfohlgkdphmbnpkjflk', | |
24 'app_client_id': 'sample_client_id', | |
25 'app_name': 'App Remoting Client', | |
26 'app_description': 'App Remoting client', | |
27 | |
28 'ar_shared_module_manifest': 'webapp/app_remoting/shared_module/manifest
.json', | |
29 | |
30 'ar_generated_html_files': [ | |
31 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/main.html', | |
32 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/ar_background.html', | |
33 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/wcs_sandbox.html', | |
34 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/loading_window.html', | |
35 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/message_window.html', | |
36 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/feedback_consent.html', | |
37 '<(SHARED_INTERMEDIATE_DIR)/remoting/credits.html', | |
38 ], | |
39 'ar_shared_module_files': [ | |
40 '<@(ar_shared_resource_files)', | |
41 '<@(ar_all_js_files)', | |
42 '<@(ar_generated_html_files)', | |
43 ], | |
44 'extra_files': [ | |
45 'webapp/crd/remoting_client_pnacl.nmf.jinja2', | |
46 '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe', | |
47 ], | |
48 'output_dir': '<(PRODUCT_DIR)/app_streaming/>(_target_name)', | |
49 'zip_path': '<(PRODUCT_DIR)/app_streaming/>(_target_name).zip', | |
50 | |
51 'ar_shared_module_locales_listfile': '<(SHARED_INTERMEDIATE_DIR)/>(_targ
et_name)_locales.txt', | |
52 'conditions': [ | |
53 ['buildtype == "Dev"', { | |
54 'extra_files': [ | |
55 '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe.debug', | |
56 ], | |
57 }], | |
58 ], # conditions | |
59 | |
60 }, | |
61 'actions': [ | |
62 { | |
63 'action_name': 'Build ar_shared_module locales listfile', | |
64 'inputs': [ | |
65 '<(remoting_localize_path)', | |
66 ], | |
67 'outputs': [ | |
68 '<(ar_shared_module_locales_listfile)', | |
69 ], | |
70 'action': [ | |
71 'python', '<(remoting_localize_path)', | |
72 '--locale_output', | |
73 '"<(webapp_locale_dir)/@{json_suffix}/messages.json"', | |
74 '--locales_listfile', | |
75 '<(ar_shared_module_locales_listfile)', | |
76 '<@(remoting_locales)', | |
77 ], | |
78 }, | |
79 { | |
80 'action_name': 'Build ar_shared_module application stub', | |
81 'inputs': [ | |
82 '<(DEPTH)/remoting/webapp/build-webapp.py', | |
83 '<(chrome_version_path)', | |
84 '<(remoting_version_path)', | |
85 '<@(ar_shared_module_files)', | |
86 '<@(remoting_webapp_locale_files)', | |
87 '<(ar_shared_module_manifest)', | |
88 '<(ar_shared_module_locales_listfile)', | |
89 '<@(extra_files)', | |
90 ], | |
91 'outputs': [ | |
92 '<(output_dir)', | |
93 '<(zip_path)', | |
94 ], | |
95 'action': [ | |
96 'python', '<(DEPTH)/remoting/webapp/build-webapp.py', | |
97 '<(buildtype)', | |
98 '<(version_full)', | |
99 '<(output_dir)', | |
100 '<(zip_path)', | |
101 '<(ar_shared_module_manifest)', | |
102 'shared_module', # Web app type | |
103 '<@(ar_shared_module_files)', | |
104 '<@(extra_files)', | |
105 '--locales_listfile', | |
106 '<(ar_shared_module_locales_listfile)', | |
107 ], | |
108 }, | |
109 { | |
110 'action_name': 'Build ar_shared_module main.html', | |
111 'inputs': [ | |
112 '<(DEPTH)/remoting/webapp/build-html.py', | |
113 '<(ar_main_template)', | |
114 '<@(ar_main_template_files)', | |
115 ], | |
116 'outputs': [ | |
117 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/main.html', | |
118 ], | |
119 'action': [ | |
120 'python', '<(DEPTH)/remoting/webapp/build-html.py', | |
121 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/main.html', | |
122 '<(ar_main_template)', | |
123 '--template-dir', | |
124 '<(DEPTH)/remoting', | |
125 '--templates', | |
126 '<@(ar_main_template_files)', | |
127 '--js', | |
128 '<@(ar_main_js_files)', | |
129 ], | |
130 }, | |
131 { | |
132 'action_name': 'Build ar_shared_module ar_background.html', | |
133 'inputs': [ | |
134 '<(DEPTH)/remoting/webapp/build-html.py', | |
135 '<(ar_background_template)', | |
136 ], | |
137 'outputs': [ | |
138 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/ar_background.html', | |
139 ], | |
140 'action': [ | |
141 'python', '<(DEPTH)/remoting/webapp/build-html.py', | |
142 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/ar_background.html', | |
143 '<(ar_background_template)', | |
144 '--template-dir', | |
145 '<(DEPTH)/remoting', | |
146 '--js', | |
147 '<@(ar_background_html_js_files)', | |
148 ], | |
149 }, | |
150 { | |
151 'action_name': 'Build ar_shared_module wcs_sandbox.html', | |
152 'inputs': [ | |
153 '<(DEPTH)/remoting/webapp/build-html.py', | |
154 '<(remoting_webapp_template_wcs_sandbox)', | |
155 ], | |
156 'outputs': [ | |
157 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/wcs_sandbox.html', | |
158 ], | |
159 'action': [ | |
160 'python', '<(DEPTH)/remoting/webapp/build-html.py', | |
161 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/wcs_sandbox.html', | |
162 '<(remoting_webapp_template_wcs_sandbox)', | |
163 '--js', | |
164 '<@(remoting_webapp_wcs_sandbox_html_all_js_files)', | |
165 ], | |
166 }, | |
167 { | |
168 'action_name': 'Build ar_shared_module loading_window.html', | |
169 'inputs': [ | |
170 '<(DEPTH)/remoting/webapp/build-html.py', | |
171 '<(ar_loading_window_template)', | |
172 ], | |
173 'outputs': [ | |
174 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/loading_window.html', | |
175 ], | |
176 'action': [ | |
177 'python', '<(DEPTH)/remoting/webapp/build-html.py', | |
178 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/loading_window.html', | |
179 '<(ar_loading_window_template)', | |
180 # The loading window is just a reskin of the message window--all | |
181 # JS code is shared. | |
182 '--js', '<@(remoting_webapp_message_window_html_all_js_files)', | |
183 ], | |
184 }, | |
185 { | |
186 'action_name': 'Build ar_shared_module message_window.html', | |
187 'inputs': [ | |
188 '<(DEPTH)/remoting/webapp/build-html.py', | |
189 '<(remoting_webapp_template_message_window)', | |
190 ], | |
191 'outputs': [ | |
192 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/message_window.html', | |
193 ], | |
194 'action': [ | |
195 'python', '<(DEPTH)/remoting/webapp/build-html.py', | |
196 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/message_window.html', | |
197 '<(remoting_webapp_template_message_window)', | |
198 '--js', '<@(remoting_webapp_message_window_html_all_js_files)', | |
199 ], | |
200 }, | |
201 { | |
202 'action_name': 'Build ar_shared_module feedback_consent.html', | |
203 'inputs': [ | |
204 '<(DEPTH)/remoting/webapp/build-html.py', | |
205 '<(ar_feedback_consent_template)', | |
206 ], | |
207 'outputs': [ | |
208 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/feedback_consent.html', | |
209 ], | |
210 'action': [ | |
211 'python', '<(DEPTH)/remoting/webapp/build-html.py', | |
212 '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)/feedback_consent.html', | |
213 '<(ar_feedback_consent_template)', | |
214 '--template-dir', | |
215 '<(DEPTH)/remoting', | |
216 '--js', | |
217 '<@(ar_feedback_consent_html_all_js_files)', | |
218 ], | |
219 }, | |
220 ], # actions | |
221 }, # end of ar_shared_module | |
222 ], # end of targets | |
223 } | |
OLD | NEW |