[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 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': { |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 10 | 'extra_files%': [], |
| 11 | 'generated_html_files': [ |
| 12 | '<(SHARED_INTERMEDIATE_DIR)/main.html', |
| 13 | '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html', |
[email protected] | f34acc69 | 2014-08-12 22:47:14 | [diff] [blame] | 14 | '<(SHARED_INTERMEDIATE_DIR)/background.html', |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 15 | ], |
| 16 | }, |
| 17 | 'dependencies': [ |
| 18 | 'remoting_resources', |
| 19 | 'remoting_webapp_html', |
| 20 | ], |
| 21 | 'conditions': [ |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 22 | ['run_jscompile != 0', { |
| 23 | 'variables': { |
[email protected] | 10ee828 | 2014-08-16 08:31:37 | [diff] [blame] | 24 | 'success_stamp': '<(PRODUCT_DIR)/<(_target_name)_jscompile.stamp', |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 25 | }, |
| 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 Kacmarcik | 6110f4b | 2014-10-23 00:20:07 | [diff] [blame] | 51 | 'webapp/crd/manifest.json.jinja2', |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 52 | '<(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] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 59 | 'outputs': [ |
| 60 | '<(output_dir)', |
| 61 | '<(zip_path)', |
| 62 | ], |
| 63 | 'action': [ |
| 64 | 'python', 'webapp/build-webapp.py', |
| 65 | '<(buildtype)', |
| 66 | '<(version_full)', |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 67 | '<(output_dir)', |
| 68 | '<(zip_path)', |
Gary Kacmarcik | 6110f4b | 2014-10-23 00:20:07 | [diff] [blame] | 69 | 'webapp/crd/manifest.json.jinja2', |
[email protected] | 40a7c0a | 2014-03-01 05:00:54 | [diff] [blame] | 70 | '<(webapp_type)', |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 71 | '<@(generated_html_files)', |
| 72 | '<@(remoting_webapp_files)', |
| 73 | '<@(extra_files)', |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 74 | '--locales', '<@(remoting_webapp_locale_files)', |
[email protected] | 5e091499 | 2014-02-27 18:55:28 | [diff] [blame] | 75 | ], |
| 76 | }, |
| 77 | ], |
| 78 | } |