telemetry: Migrate pregenerated profiles before using them.
[chromium-blink-merge.git] / remoting / remoting_client.gypi
blob3d53e39c466e40d08515268f57e00604203b5e55
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/plugin
9       'target_name': 'remoting_client_plugin',
10       'type': 'static_library',
11       'variables': { 'enable_wexit_time_destructors': 1, },
12       'defines': [
13         'HAVE_STDINT_H',  # Required by on2_integer.h
14       ],
15       'dependencies': [
16         '../net/net.gyp:net',
17         '../ppapi/ppapi.gyp:ppapi_cpp_objects',
18         '../ppapi/ppapi.gyp:ppapi_internal_module',
19         '../third_party/webrtc/modules/modules.gyp:desktop_capture',
20         '../ui/events/events.gyp:dom_keycode_converter',
21         'remoting_base',
22         'remoting_client',
23         'remoting_protocol',
24       ],
25       'sources': [
26         '<@(remoting_client_plugin_sources)',
27         'client/plugin/pepper_entrypoints.cc',
28         'client/plugin/pepper_entrypoints.h',
29       ],
30     },  # end of target 'remoting_client_plugin'
32     {
33       # GN version: //remoting/client
34       'target_name': 'remoting_client',
35       'type': 'static_library',
36       'variables': { 'enable_wexit_time_destructors': 1, },
37       'defines': [
38         'VERSION=<(version_full)',
39       ],
40       'dependencies': [
41         'remoting_base',
42         'remoting_protocol',
43         '../third_party/libyuv/libyuv.gyp:libyuv',
44         '../third_party/webrtc/modules/modules.gyp:desktop_capture',
45       ],
46       'sources': [
47         '<@(remoting_client_sources)',
48       ],
49     },  # end of target 'remoting_client'
51     {
52       # GN version: See remoting/webapp/build_template.gni
53       'target_name': 'remoting_webapp_html',
54       'type': 'none',
55       'actions': [
56         {
57           'action_name': 'Build Remoting Webapp main.html',
58           'inputs': [
59             'webapp/build-html.py',
60             '<(remoting_webapp_template_main)',
61             '<@(remoting_webapp_template_files)',
62           ],
63           'outputs': [
64             '<(SHARED_INTERMEDIATE_DIR)/remoting/main.html',
65           ],
66           'action': [
67             'python', 'webapp/build-html.py',
68             '<(SHARED_INTERMEDIATE_DIR)/remoting/main.html',
69             '<(remoting_webapp_template_main)',
70             '--template-dir', '<(DEPTH)/remoting',
71             '--templates', '<@(remoting_webapp_template_files)',
72             '--js',
73             '<@(remoting_webapp_crd_main_html_all_js_files)',
74           ],
75         },
76         {
77           'action_name': 'Build Remoting Webapp wcs_sandbox.html',
78           'inputs': [
79             'webapp/build-html.py',
80             '<(remoting_webapp_template_wcs_sandbox)',
81           ],
82           'outputs': [
83             '<(SHARED_INTERMEDIATE_DIR)/remoting/wcs_sandbox.html',
84           ],
85           'action': [
86             'python', 'webapp/build-html.py',
87             '<(SHARED_INTERMEDIATE_DIR)/remoting/wcs_sandbox.html',
88             '<(remoting_webapp_template_wcs_sandbox)',
89             '--js', '<@(remoting_webapp_wcs_sandbox_html_all_js_files)',
90           ],
91         },
92         {
93           'action_name': 'Build Remoting Webapp background.html',
94           'inputs': [
95             'webapp/build-html.py',
96             '<(remoting_webapp_template_background)',
97           ],
98           'outputs': [
99             '<(SHARED_INTERMEDIATE_DIR)/remoting/background.html',
100           ],
101           'action': [
102             'python', 'webapp/build-html.py',
103             '<(SHARED_INTERMEDIATE_DIR)/remoting/background.html',
104             '<(remoting_webapp_template_background)',
105             '--js', '<@(remoting_webapp_background_html_all_js_files)',
106           ],
107         },
108         {
109           'action_name': 'Build Remoting Webapp message_window.html',
110           'inputs': [
111             'webapp/build-html.py',
112             '<(remoting_webapp_template_message_window)',
113           ],
114           'outputs': [
115             '<(SHARED_INTERMEDIATE_DIR)/remoting/message_window.html',
116           ],
117           'action': [
118             'python', 'webapp/build-html.py',
119             '<(SHARED_INTERMEDIATE_DIR)/remoting/message_window.html',
120             '<(remoting_webapp_template_message_window)',
121             '--js', '<@(remoting_webapp_message_window_html_all_js_files)',
122           ],
123         },
124       ],  # end of actions
125     },  # end of target 'remoting_webapp_html'
127     {
128       # GN version: //remoting/webapp:credits
129       'target_name': 'remoting_client_credits',
130       'type': 'none',
131       'actions': [
132         {
133           'action_name': 'Build remoting client credits',
134           'inputs': [
135             '../tools/licenses.py',
136             'webapp/base/html/credits.tmpl',
137             'webapp/base/html/credits_entry.tmpl',
138           ],
139           'outputs': [
140             '<(SHARED_INTERMEDIATE_DIR)/remoting/credits.html',
141           ],
142           'hard_dependency': 1,
143           'action': ['python',
144                      '../tools/licenses.py',
145                      'credits',
146                      '<(SHARED_INTERMEDIATE_DIR)/remoting/credits.html',
147                      '--file-template', 'webapp/base/html/credits.tmpl',
148                      '--entry-template', 'webapp/base/html/credits_entry.tmpl',
150           ],
151         },
152       ],
153     },
154     {
155       # GN version: //remoting/webapp:webapp
156       'target_name': 'remoting_webapp',
157       'type': 'none',
158       'dependencies': [
159         'remoting_client_credits',
160         'remoting_webapp_v1',
161       ],
162       'conditions': [
163         ['disable_nacl==0 and disable_nacl_untrusted==0', {
164           'dependencies': [
165             'remoting_webapp_v2',
166           ],
167         }]
168       ],
169     },  # end of target 'remoting_webapp'
171     {
172       # GN version: //remoting/webapp:webapp_v1
173       'target_name': 'remoting_webapp_v1',
174       'type': 'none',
175       'variables': {
176         'webapp_type': 'v1',
177         'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp',
178         'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip',
179       },
180       'includes': [ 'remoting_webapp.gypi', ],
181     },  # end of target 'remoting_webapp_v1'
182   ],  # end of targets
184   'conditions': [
185     ['disable_nacl==0 and disable_nacl_untrusted==0', {
186       'targets': [
187         {
188           # GN version: //remoting/webapp:webapp_v1
189           'target_name': 'remoting_webapp_v2',
190           'type': 'none',
191           'variables': {
192             'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp.v2',
193             'zip_path': '<(PRODUCT_DIR)/remoting-webapp.v2.zip',
194             'webapp_type': 'v2_pnacl',
195             'extra_files': [
196               'webapp/crd/remoting_client_pnacl.nmf.jinja2',
197               '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe',
198             ],
199           },
200           'dependencies': [
201             'remoting_nacl.gyp:remoting_client_plugin_nacl',
202           ],
203           'conditions': [
204             ['buildtype == "Dev"', {
205               'variables': {
206                 'extra_files': [
207                   '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe.debug',
208                 ],
209               },
210             }],
211           ],
212           'includes': [ 'remoting_webapp.gypi', ],
213         },  # end of target 'remoting_webapp_v2'
214       ],
215     }],
216   ],