[Android] Support ALPHA_8 UI resources
[chromium-blink-merge.git] / remoting / remoting_client.gypi
blobf2414ac35582e2b5714795370f2ded0567975868
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:dom4_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         '../third_party/libwebm/libwebm.gyp:libwebm',
46       ],
47       'sources': [
48         '<@(remoting_client_sources)',
49       ],
50     },  # end of target 'remoting_client'
52     {
53       'target_name': 'remoting_webapp_html',
54       'type': 'none',
55       'actions': [
56         {
57           # GN version: //remoting/webapp:html
58           'action_name': 'Build Remoting Webapp main.html',
59           'inputs': [
60             'webapp/build-html.py',
61             '<(remoting_webapp_template_main)',
62             '<@(remoting_webapp_template_files)',
63           ],
64           'outputs': [
65             '<(SHARED_INTERMEDIATE_DIR)/main.html',
66           ],
67           'action': [
68             'python', 'webapp/build-html.py',
69             '<(SHARED_INTERMEDIATE_DIR)/main.html',
70             '<(remoting_webapp_template_main)',
71             '--template', '<@(remoting_webapp_template_files)',
72             '--js',
73             '<@(remoting_webapp_shared_main_html_js_files)',
74             '<@(remoting_webapp_crd_main_html_js_files)',
75           ],
76         },
77         {
78           'action_name': 'Build Remoting Webapp wcs_sandbox.html',
79           'inputs': [
80             'webapp/build-html.py',
81             '<(remoting_webapp_template_wcs_sandbox)',
82           ],
83           'outputs': [
84             '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
85           ],
86           'action': [
87             'python', 'webapp/build-html.py',
88             '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
89             '<(remoting_webapp_template_wcs_sandbox)',
90             '--js', '<@(remoting_webapp_wcs_sandbox_html_js_files)',
91           ],
92         },
93         {
94           'action_name': 'Build Remoting Webapp background.html',
95           'inputs': [
96             'webapp/build-html.py',
97             '<(remoting_webapp_template_background)',
98           ],
99           'outputs': [
100             '<(SHARED_INTERMEDIATE_DIR)/background.html',
101           ],
102           'action': [
103             'python', 'webapp/build-html.py',
104             '<(SHARED_INTERMEDIATE_DIR)/background.html',
105             '<(remoting_webapp_template_background)',
106             '--js', '<@(remoting_webapp_background_js_files)',
107           ],
108         },
109       ],
110     },  # end of target 'remoting_webapp_html'
112     {
113       'target_name': 'remoting_webapp',
114       'type': 'none',
115       'dependencies': [
116         'remoting_webapp_v1',
117         'remoting_webapp_v2',
118       ],
119     },  # end of target 'remoting_webapp'
121     {
122       'target_name': 'remoting_webapp_v1',
123       'type': 'none',
124       'variables': {
125         'webapp_type': 'v1',
126         'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp',
127         'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip',
128       },
129       'includes': [ 'remoting_webapp.gypi', ],
130     },  # end of target 'remoting_webapp_v1'
132     {
133       'target_name': 'remoting_webapp_v2',
134       'type': 'none',
135       'variables': {
136         'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp.v2',
137         'zip_path': '<(PRODUCT_DIR)/remoting-webapp.v2.zip',
138       },
139       'conditions': [
140         ['disable_nacl==0 and disable_nacl_untrusted==0', {
141           'dependencies': [
142             'remoting_nacl.gyp:remoting_client_plugin_nacl',
143           ],
144           'variables': {
145             'webapp_type': 'v2_pnacl',
146             'extra_files': [
147               'webapp/crd/remoting_client_pnacl.nmf',
148               '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe',
149             ],
150           },
151         }, {
152           'variables': {
153             'webapp_type': 'v2',
154           },
155         }],
156       ],
157       'includes': [ 'remoting_webapp.gypi', ],
158     },  # end of target 'remoting_webapp_v2'
159   ],  # end of targets