Make ExtensionInstallPrompt::Prompt ref-counted
[chromium-blink-merge.git] / remoting / remoting_webapp.gypi
blob871a876af65507947bab2db5c87ddd28c13fa11b
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     'include_host_plugin%': 0,
11     'extra_files%': [],
12     'generated_html_files': [
13       '<(SHARED_INTERMEDIATE_DIR)/main.html',
14       '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
15     ],
16   },
17   'dependencies': [
18     'remoting_resources',
19     'remoting_webapp_html',
20   ],
21   'conditions': [
22     ['include_host_plugin==1', {
23       'dependencies': [
24         'remoting_host_plugin',
25       ],
26       'variables': {
27         'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plugin.<(host_plugin_extension)',
28         'plugin_args': [
29           '--locales', '<@(remoting_host_locale_files)',
30           '--plugin', '<(plugin_path)',
31         ],
32       },
33     }, {
34       'variables': {
35         'plugin_args': [],
36       },
37     }],
38     ['webapp_type=="v2_pnacl"', {
39       'dependencies': [
40         'remoting_nacl.gyp:remoting_client_plugin_nacl',
41       ],
42       'variables': {
43         'extra_files': [
44           'webapp/remoting_client_pnacl.nmf',
45           '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe',
46         ],
47       },
48     }],
49     ['run_jscompile != 0', {
50       'variables': {
51         'success_stamp': '<(PRODUCT_DIR)/remoting_webapp_jscompile.stamp',
52       },
53       'actions': [
54         {
55           'action_name': 'Verify remoting webapp',
56           'inputs': [
57             '<@(remoting_webapp_all_js_files)',
58             '<@(remoting_webapp_js_proto_files)',
59           ],
60           'outputs': [
61             '<(success_stamp)',
62           ],
63           'action': [
64             'python', 'tools/jscompile.py',
65             '<@(remoting_webapp_all_js_files)',
66             '<@(remoting_webapp_js_proto_files)',
67             '--success-stamp', '<(success_stamp)'
68           ],
69         },
70       ],  # actions
71     }],
72   ],
73   'actions': [
74     {
75       'action_name': 'Build Remoting WebApp',
76       'inputs': [
77         'webapp/build-webapp.py',
78         'webapp/manifest.json.jinja2',
79         '<(chrome_version_path)',
80         '<(remoting_version_path)',
81         '<@(generated_html_files)',
82         '<@(remoting_webapp_files)',
83         '<@(remoting_webapp_locale_files)',
84         '<@(extra_files)',
85       ],
86       'conditions': [
87         ['include_host_plugin==1', {
88           'inputs': [
89             '<(plugin_path)',
90             '<@(remoting_host_locale_files)',
91           ],
92         }],
93       ],
94       'outputs': [
95         '<(output_dir)',
96         '<(zip_path)',
97       ],
98       'action': [
99         'python', 'webapp/build-webapp.py',
100         '<(buildtype)',
101         '<(version_full)',
102         '<(host_plugin_mime_type)',
103         '<(output_dir)',
104         '<(zip_path)',
105         'webapp/manifest.json.jinja2',
106         '<(webapp_type)',
107         '<@(generated_html_files)',
108         '<@(remoting_webapp_files)',
109         '<@(extra_files)',
110         '<@(plugin_args)',
111         '--locales', '<@(remoting_webapp_locale_files)',
112       ],
113     },
114   ],