blob: 57d0c36cdc4ee67d2febc2f3c8d227c7fe45a7c9 [file] [log] [blame]
[email protected]5e0914992014-02-27 18:55:281# 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': {
[email protected]5e0914992014-02-27 18:55:2810 'extra_files%': [],
11 'generated_html_files': [
12 '<(SHARED_INTERMEDIATE_DIR)/main.html',
13 '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
[email protected]f34acc692014-08-12 22:47:1414 '<(SHARED_INTERMEDIATE_DIR)/background.html',
[email protected]5e0914992014-02-27 18:55:2815 ],
16 },
17 'dependencies': [
18 'remoting_resources',
19 'remoting_webapp_html',
20 ],
21 'conditions': [
[email protected]5e0914992014-02-27 18:55:2822 ['run_jscompile != 0', {
23 'variables': {
[email protected]10ee8282014-08-16 08:31:3724 'success_stamp': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp',
[email protected]5e0914992014-02-27 18:55:2825 },
26 'actions': [
27 {
28 'action_name': 'Verify remoting webapp',
29 'inputs': [
30 '<@(remoting_webapp_all_js_files)',
31 '<@(remoting_webapp_js_proto_files)',
32 ],
33 'outputs': [
34 '<(success_stamp)',
35 ],
36 'action': [
37 'python', 'tools/jscompile.py',
38 '<@(remoting_webapp_all_js_files)',
39 '<@(remoting_webapp_js_proto_files)',
40 '--success-stamp', '<(success_stamp)'
41 ],
42 },
43 ], # actions
44 }],
45 ],
46 'actions': [
47 {
48 'action_name': 'Build Remoting WebApp',
49 'inputs': [
50 'webapp/build-webapp.py',
Gary Kacmarcik6110f4b2014-10-23 00:20:0751 'webapp/crd/manifest.json.jinja2',
[email protected]5e0914992014-02-27 18:55:2852 '<(chrome_version_path)',
53 '<(remoting_version_path)',
54 '<@(generated_html_files)',
55 '<@(remoting_webapp_files)',
56 '<@(remoting_webapp_locale_files)',
57 '<@(extra_files)',
58 ],
[email protected]5e0914992014-02-27 18:55:2859 'outputs': [
60 '<(output_dir)',
61 '<(zip_path)',
62 ],
63 'action': [
64 'python', 'webapp/build-webapp.py',
65 '<(buildtype)',
66 '<(version_full)',
[email protected]5e0914992014-02-27 18:55:2867 '<(output_dir)',
68 '<(zip_path)',
Gary Kacmarcik6110f4b2014-10-23 00:20:0769 'webapp/crd/manifest.json.jinja2',
[email protected]40a7c0a2014-03-01 05:00:5470 '<(webapp_type)',
[email protected]5e0914992014-02-27 18:55:2871 '<@(generated_html_files)',
72 '<@(remoting_webapp_files)',
73 '<@(extra_files)',
[email protected]5e0914992014-02-27 18:55:2874 '--locales', '<@(remoting_webapp_locale_files)',
[email protected]5e0914992014-02-27 18:55:2875 ],
76 },
77 ],
78}