[App banners] Start addressing race conditions
[chromium-blink-merge.git] / remoting / remoting_webapp.gypi
blob2c767fda205d5a96c42824850c776b6b468db66f
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       },
27       'actions': [
28         {
29           'action_name': 'Verify remoting webapp',
30           'inputs': [
31             '<@(remoting_webapp_crd_js_files)',
32             '<@(remoting_webapp_js_proto_files)',
33           ],
34           'outputs': [
35             '<(success_stamp)',
36           ],
37           'action': [
38             'python', '../third_party/closure_compiler/checker.py',
39             '--strict',
40             '--no-single-file',
41             '--success-stamp', '<(success_stamp)',
42             '<@(remoting_webapp_crd_js_files)',
43             '<@(remoting_webapp_js_proto_files)',
44           ],
45         },
46       ],  # actions
47     }],
48   ],
49   'actions': [
50     {
51       'action_name': 'Build Remoting locales listfile',
52       'inputs': [
53         '<(remoting_localize_path)',
54       ],
55       'outputs': [
56         '<(dr_webapp_locales_listfile)',
57       ],
58       'action': [
59         'python', '<(remoting_localize_path)',
60         '--locale_output',
61         '"<(webapp_locale_dir)/@{json_suffix}/messages.json"',
62         '--locales_listfile',
63         '<(dr_webapp_locales_listfile)',
64         '<@(remoting_locales)',
65       ],
66     },
67     {
68       'action_name': 'Build Remoting WebApp',
69       'inputs': [
70         'webapp/build-webapp.py',
71         'webapp/crd/manifest.json.jinja2',
72         '<(chrome_version_path)',
73         '<(remoting_version_path)',
74         '<(dr_webapp_locales_listfile)',
75         '<@(generated_html_files)',
76         '<@(remoting_webapp_crd_files)',
77         '<@(remoting_webapp_locale_files)',
78         '<@(extra_files)',
79       ],
80       'outputs': [
81         '<(output_dir)',
82         '<(zip_path)',
83       ],
84       'action': [
85         'python', 'webapp/build-webapp.py',
86         '<(buildtype)',
87         '<(version_full)',
88         '<(output_dir)',
89         '<(zip_path)',
90         'webapp/crd/manifest.json.jinja2',
91         '<(webapp_type)',
92         '<@(generated_html_files)',
93         '<@(remoting_webapp_crd_files)',
94         '<@(extra_files)',
95         '--locales_listfile',
96         '<(dr_webapp_locales_listfile)',
97       ],
98     },
99   ],