1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# File included in remoting_webapp_* targets in remoting_client.gypi
{
'type': 'none',
'variables': {
'include_host_plugin%': 0,
'extra_files%': [],
'generated_html_files': [
'<(SHARED_INTERMEDIATE_DIR)/main.html',
'<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
],
},
'dependencies': [
'remoting_resources',
'remoting_webapp_html',
],
'conditions': [
['include_host_plugin==1', {
'dependencies': [
'remoting_host_plugin',
],
'variables': {
'plugin_path': '<(PRODUCT_DIR)/<(host_plugin_prefix)remoting_host_plugin.<(host_plugin_extension)',
'plugin_args': [
'--locales', '<@(remoting_host_locale_files)',
'--plugin', '<(plugin_path)',
],
},
}, {
'variables': {
'plugin_args': [],
},
}],
['webapp_type=="v2_pnacl"', {
'dependencies': [
'remoting_nacl.gyp:remoting_client_plugin_nacl',
],
'variables': {
'extra_files': [
'webapp/remoting_client_pnacl.nmf',
'<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe',
],
},
}],
['run_jscompile != 0', {
'variables': {
'success_stamp': '<(PRODUCT_DIR)/remoting_webapp_jscompile.stamp',
},
'actions': [
{
'action_name': 'Verify remoting webapp',
'inputs': [
'<@(remoting_webapp_all_js_files)',
'<@(remoting_webapp_js_proto_files)',
],
'outputs': [
'<(success_stamp)',
],
'action': [
'python', 'tools/jscompile.py',
'<@(remoting_webapp_all_js_files)',
'<@(remoting_webapp_js_proto_files)',
'--success-stamp', '<(success_stamp)'
],
},
], # actions
}],
],
'actions': [
{
'action_name': 'Build Remoting WebApp',
'inputs': [
'webapp/build-webapp.py',
'webapp/manifest.json.jinja2',
'<(chrome_version_path)',
'<(remoting_version_path)',
'<@(generated_html_files)',
'<@(remoting_webapp_files)',
'<@(remoting_webapp_locale_files)',
'<@(extra_files)',
],
'conditions': [
['include_host_plugin==1', {
'inputs': [
'<(plugin_path)',
'<@(remoting_host_locale_files)',
],
}],
],
'outputs': [
'<(output_dir)',
'<(zip_path)',
],
'action': [
'python', 'webapp/build-webapp.py',
'<(buildtype)',
'<(version_full)',
'<(host_plugin_mime_type)',
'<(output_dir)',
'<(zip_path)',
'webapp/manifest.json.jinja2',
'<(webapp_type)',
'<@(generated_html_files)',
'<@(remoting_webapp_files)',
'<@(extra_files)',
'<@(plugin_args)',
'--locales', '<@(remoting_webapp_locale_files)',
],
},
],
}
|