Rewrite AndroidSyncSettings to be significantly simpler.
[chromium-blink-merge.git] / remoting / remoting_webapp.gypi
blob7d72c677e2ba83e1425d9ba9ac449661eb253d9e
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)/main.html',
13       '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
14       '<(SHARED_INTERMEDIATE_DIR)/background.html',
15     ],
16     'dr_webapp_locales_listfile': '<(SHARED_INTERMEDIATE_DIR)/>(_target_name)_locales.txt',
17   },
18   'dependencies': [
19     'remoting_resources',
20     'remoting_webapp_html',
21   ],
22   'conditions': [
23     ['run_jscompile != 0', {
24       'variables': {
25         'success_stamp': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp',
26         'success_stamp_bt': '<(PRODUCT_DIR)/<(_target_name)_bt_jscompile.stamp',
27       },
28       'actions': [
29         {
30           'action_name': 'Verify remoting webapp',
31           'inputs': [
32             '<@(remoting_webapp_crd_js_files)',
33             '<@(remoting_webapp_js_proto_files)',
34           ],
35           'outputs': [
36             '<(success_stamp)',
37           ],
38           'action': [
39             'python', '../third_party/closure_compiler/checker.py',
40             '--strict',
41             '--no-single-file',
42             '--success-stamp', '<(success_stamp)',
43             '<@(remoting_webapp_crd_js_files)',
44             '<@(remoting_webapp_js_proto_files)',
45           ],
46         },
47         {
48           'action_name': 'Verify remoting webapp with browsertests',
49           'inputs': [
50             '<@(remoting_webapp_crd_js_files)',
51             '<@(remoting_webapp_browsertest_all_js_files)',
52             '<@(remoting_webapp_js_proto_files)',
53           ],
54           'outputs': [
55             '<(success_stamp_bt)',
56           ],
57           'action': [
58             'python', '../third_party/closure_compiler/checker.py',
59             '--strict',
60             '--no-single-file',
61             '--success-stamp', '<(success_stamp_bt)',
62             '<@(remoting_webapp_crd_js_files)',
63             '<@(remoting_webapp_browsertest_all_js_files)',
64             '<@(remoting_webapp_js_proto_files)',
65           ],
66         },
67       ],  # actions
68     }],
69   ],
70   'actions': [
71     {
72       'action_name': 'Build Remoting locales listfile',
73       'inputs': [
74         '<(remoting_localize_path)',
75       ],
76       'outputs': [
77         '<(dr_webapp_locales_listfile)',
78       ],
79       'action': [
80         'python', '<(remoting_localize_path)',
81         '--locale_output',
82         '"<(webapp_locale_dir)/@{json_suffix}/messages.json"',
83         '--locales_listfile',
84         '<(dr_webapp_locales_listfile)',
85         '<@(remoting_locales)',
86       ],
87     },
88     {
89       'action_name': 'Build Remoting WebApp',
90       'inputs': [
91         'webapp/build-webapp.py',
92         'webapp/crd/manifest.json.jinja2',
93         '<(chrome_version_path)',
94         '<(remoting_version_path)',
95         '<(dr_webapp_locales_listfile)',
96         '<@(generated_html_files)',
97         '<@(remoting_webapp_crd_files)',
98         '<@(remoting_webapp_locale_files)',
99         '<@(extra_files)',
100       ],
101       'outputs': [
102         '<(output_dir)',
103         '<(zip_path)',
104       ],
105       'action': [
106         'python', 'webapp/build-webapp.py',
107         '<(buildtype)',
108         '<(version_full)',
109         '<(output_dir)',
110         '<(zip_path)',
111         'webapp/crd/manifest.json.jinja2',
112         '<(webapp_type)',
113         '<@(generated_html_files)',
114         '<@(remoting_webapp_crd_files)',
115         '<@(extra_files)',
116         '--locales_listfile',
117         '<(dr_webapp_locales_listfile)',
118       ],
119     },
120   ],