Add UMA stats for SBIRS StateStore loading
[chromium-blink-merge.git] / remoting / remoting_client.gypi
blob5490d52b3ef2d60fb8c4c54ad79f702f5e80b1de
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.
6   'targets': [
7     {
8       # GN version: //remoting/client
9       'target_name': 'remoting_client',
10       'type': 'static_library',
11       'variables': { 'enable_wexit_time_destructors': 1, },
12       'defines': [
13         'VERSION=<(version_full)',
14       ],
15       'dependencies': [
16         'remoting_base',
17         'remoting_protocol',
18         '../third_party/libyuv/libyuv.gyp:libyuv',
19         '../third_party/webrtc/modules/modules.gyp:desktop_capture',
20       ],
21       'sources': [
22         '<@(remoting_client_sources)',
23       ],
24     },  # end of target 'remoting_client'
26     {
27       # GN version: See remoting/webapp/build_template.gni
28       'target_name': 'remoting_webapp_html',
29       'type': 'none',
30       'actions': [
31         {
32           'action_name': 'Build Remoting Webapp main.html',
33           'inputs': [
34             'webapp/build-html.py',
35             '<(remoting_webapp_template_main)',
36             '<@(remoting_webapp_template_files)',
37           ],
38           'outputs': [
39             '<(SHARED_INTERMEDIATE_DIR)/remoting/main.html',
40           ],
41           'action': [
42             'python', 'webapp/build-html.py',
43             '<(SHARED_INTERMEDIATE_DIR)/remoting/main.html',
44             '<(remoting_webapp_template_main)',
45             '--template-dir', '<(DEPTH)/remoting',
46             '--templates', '<@(remoting_webapp_template_files)',
47             '--js',
48             '<@(remoting_webapp_crd_main_html_all_js_files)',
49           ],
50         },
51         {
52           'action_name': 'Build Remoting Webapp wcs_sandbox.html',
53           'inputs': [
54             'webapp/build-html.py',
55             '<(remoting_webapp_template_wcs_sandbox)',
56           ],
57           'outputs': [
58             '<(SHARED_INTERMEDIATE_DIR)/remoting/wcs_sandbox.html',
59           ],
60           'action': [
61             'python', 'webapp/build-html.py',
62             '<(SHARED_INTERMEDIATE_DIR)/remoting/wcs_sandbox.html',
63             '<(remoting_webapp_template_wcs_sandbox)',
64             '--js', '<@(remoting_webapp_wcs_sandbox_html_all_js_files)',
65           ],
66         },
67         {
68           'action_name': 'Build Remoting Webapp background.html',
69           'inputs': [
70             'webapp/build-html.py',
71             '<(remoting_webapp_template_background)',
72           ],
73           'outputs': [
74             '<(SHARED_INTERMEDIATE_DIR)/remoting/background.html',
75           ],
76           'action': [
77             'python', 'webapp/build-html.py',
78             '<(SHARED_INTERMEDIATE_DIR)/remoting/background.html',
79             '<(remoting_webapp_template_background)',
80             '--js', '<@(remoting_webapp_background_html_all_js_files)',
81           ],
82         },
83         {
84           'action_name': 'Build Remoting Webapp message_window.html',
85           'inputs': [
86             'webapp/build-html.py',
87             '<(remoting_webapp_template_message_window)',
88           ],
89           'outputs': [
90             '<(SHARED_INTERMEDIATE_DIR)/remoting/message_window.html',
91           ],
92           'action': [
93             'python', 'webapp/build-html.py',
94             '<(SHARED_INTERMEDIATE_DIR)/remoting/message_window.html',
95             '<(remoting_webapp_template_message_window)',
96             '--js', '<@(remoting_webapp_message_window_html_all_js_files)',
97           ],
98         },
99       ],  # end of actions
100     },  # end of target 'remoting_webapp_html'
102     {
103       # GN version: //remoting/webapp:credits
104       'target_name': 'remoting_client_credits',
105       'type': 'none',
106       'actions': [
107         {
108           'action_name': 'Build remoting client credits',
109           'inputs': [
110             '../tools/licenses.py',
111             'webapp/base/html/credits.tmpl',
112             'webapp/base/html/credits_entry.tmpl',
113           ],
114           'outputs': [
115             '<(SHARED_INTERMEDIATE_DIR)/remoting/credits.html',
116           ],
117           'hard_dependency': 1,
118           'action': ['python',
119                      '../tools/licenses.py',
120                      'credits',
121                      '<(SHARED_INTERMEDIATE_DIR)/remoting/credits.html',
122                      '--file-template', 'webapp/base/html/credits.tmpl',
123                      '--entry-template', 'webapp/base/html/credits_entry.tmpl',
125           ],
126         },
127       ],
128     },
129     {
130       # GN version: //remoting/webapp
131       'target_name': 'remoting_webapp',
132       'type': 'none',
133       'variables': {
134         'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp.v2',
135         'zip_path': '<(PRODUCT_DIR)/remoting-webapp.v2.zip',
136         'webapp_type': 'desktop',
137         'extra_files': [
138           'webapp/crd/remoting_client_pnacl.nmf.jinja2',
139         ],
140       },
141       'conditions': [
142         ['disable_nacl==0 and disable_nacl_untrusted==0', {
143           'variables': {
144             'extra_files': [
145               '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe',
146             ],
147           },
148           'dependencies': [
149             'remoting_nacl.gyp:remoting_client_plugin_nacl',
150           ],
151         }],
152         ['disable_nacl==0 and disable_nacl_untrusted==0 and buildtype == "Dev"', {
153           'variables': {
154             'extra_files': [
155               '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe.debug',
156             ],
157           },
158         }],
159       ],
160       'includes': [ 'remoting_webapp.gypi', ],
161     },  # end of target 'remoting_webapp'
162   ],  # end of targets