ea498b655a48106003b45e2f1068c4b45f5e0bde
[platform/framework/web/crosswalk.git] / src / remoting / remoting_webapp.gypi
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.
4 #
5 # File included in remoting_webapp_* targets in remoting_client.gypi
6
7 {
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     ],
15   },
16   'dependencies': [
17     'remoting_resources',
18     'remoting_webapp_html',
19   ],
20   'conditions': [
21     ['run_jscompile != 0', {
22       'variables': {
23         'success_stamp': '<(PRODUCT_DIR)/remoting_webapp_jscompile.stamp',
24       },
25       'actions': [
26         {
27           'action_name': 'Verify remoting webapp',
28           'inputs': [
29             '<@(remoting_webapp_all_js_files)',
30             '<@(remoting_webapp_js_proto_files)',
31           ],
32           'outputs': [
33             '<(success_stamp)',
34           ],
35           'action': [
36             'python', 'tools/jscompile.py',
37             '<@(remoting_webapp_all_js_files)',
38             '<@(remoting_webapp_js_proto_files)',
39             '--success-stamp', '<(success_stamp)'
40           ],
41         },
42       ],  # actions
43     }],
44   ],
45   'actions': [
46     {
47       'action_name': 'Build Remoting WebApp',
48       'inputs': [
49         'webapp/build-webapp.py',
50         'webapp/manifest.json.jinja2',
51         '<(chrome_version_path)',
52         '<(remoting_version_path)',
53         '<@(generated_html_files)',
54         '<@(remoting_webapp_files)',
55         '<@(remoting_webapp_locale_files)',
56         '<@(extra_files)',
57       ],
58       'outputs': [
59         '<(output_dir)',
60         '<(zip_path)',
61       ],
62       'action': [
63         'python', 'webapp/build-webapp.py',
64         '<(buildtype)',
65         '<(version_full)',
66         '<(output_dir)',
67         '<(zip_path)',
68         'webapp/manifest.json.jinja2',
69         '<(webapp_type)',
70         '<@(generated_html_files)',
71         '<@(remoting_webapp_files)',
72         '<@(extra_files)',
73         '--locales', '<@(remoting_webapp_locale_files)',
74       ],
75     },
76   ],
77 }