Add IsAlternativeServiceBroken(), remove is_broken.
[chromium-blink-merge.git] / remoting / remoting_webapp.gypi
blob7b1255343b9d858951bd3b11b0a036fc81c6db25
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
3 # found in the LICENSE file.
5 # File included in remoting_webapp_* targets in remoting_client.gypi
8   'type': 'none',
9   'variables': {
10     'extra_files%': [],
11     'generated_html_files': [
12       '<(SHARED_INTERMEDIATE_DIR)/background.html',
13       '<(SHARED_INTERMEDIATE_DIR)/main.html',
14       '<(SHARED_INTERMEDIATE_DIR)/message_window.html',
15       '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
16     ],
17     'dr_webapp_locales_listfile': '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)_locales.txt',
18   },
19   'dependencies': [
20     'remoting_resources',
21     'remoting_webapp_html',
22   ],
23   'conditions': [
24     ['run_jscompile != 0', {
25       'variables': {
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_unittest_all_js_files)',
74             '<@(remoting_webapp_unittest_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_unittest_all_js_files)',
86             '<@(remoting_webapp_unittest_js_proto_files)',
87           ],
88         },
89       ],  # actions
90     }],
91   ],
92   'actions': [
93     {
94       'action_name': 'Build Remoting locales listfile',
95       'inputs': [
96         '<(remoting_localize_path)',
97       ],
98       'outputs': [
99         '<(dr_webapp_locales_listfile)',
100       ],
101       'action': [
102         'python', '<(remoting_localize_path)',
103         '--locale_output',
104         '"<(webapp_locale_dir)/@{json_suffix}/messages.json"',
105         '--locales_listfile',
106         '<(dr_webapp_locales_listfile)',
107         '<@(remoting_locales)',
108       ],
109     },
110     {
111       'action_name': 'Build Remoting WebApp',
112       'inputs': [
113         'webapp/build-webapp.py',
114         'webapp/crd/manifest.json.jinja2',
115         '<(chrome_version_path)',
116         '<(remoting_version_path)',
117         '<(dr_webapp_locales_listfile)',
118         '<@(generated_html_files)',
119         '<@(remoting_webapp_crd_files)',
120         '<@(remoting_webapp_locale_files)',
121         '<@(extra_files)',
122       ],
123       'outputs': [
124         '<(output_dir)',
125         '<(zip_path)',
126       ],
127       'action': [
128         'python', 'webapp/build-webapp.py',
129         '<(buildtype)',
130         '<(version_full)',
131         '<(output_dir)',
132         '<(zip_path)',
133         'webapp/crd/manifest.json.jinja2',
134         '<(webapp_type)',
135         '<@(generated_html_files)',
136         '<@(remoting_webapp_crd_files)',
137         '<@(extra_files)',
138         '--locales_listfile',
139         '<(dr_webapp_locales_listfile)',
140       ],
141     },
142   ],