remoting_client.gypi revision 0de6073388f4e2780db8536178b129cd8f6ab386
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{
6  'targets': [
7    {
8      'target_name': 'remoting_client_plugin',
9      'type': 'static_library',
10      'variables': { 'enable_wexit_time_destructors': 1, },
11      'defines': [
12        'HAVE_STDINT_H',  # Required by on2_integer.h
13      ],
14      'dependencies': [
15        '../net/net.gyp:net',
16        '../ppapi/ppapi.gyp:ppapi_cpp_objects',
17        '../third_party/webrtc/modules/modules.gyp:desktop_capture',
18        '../ui/events/events.gyp:dom4_keycode_converter',
19        'remoting_base',
20        'remoting_client',
21        'remoting_protocol',
22      ],
23      'sources': [
24        '<@(remoting_client_plugin_sources)',
25        'client/plugin/pepper_entrypoints.cc',
26        'client/plugin/pepper_entrypoints.h',
27      ],
28      'conditions' : [
29        [ 'chromeos==0', {
30          'sources!': [
31            'client/plugin/normalizing_input_filter_cros.cc',
32          ],
33        }],
34      ],
35    },  # end of target 'remoting_client_plugin'
36
37    {
38      'target_name': 'remoting_client',
39      'type': 'static_library',
40      'variables': { 'enable_wexit_time_destructors': 1, },
41      'defines': [
42        'VERSION=<(version_full)',
43      ],
44      'dependencies': [
45        'remoting_base',
46        'remoting_protocol',
47        '../third_party/libyuv/libyuv.gyp:libyuv',
48        '../third_party/webrtc/modules/modules.gyp:desktop_capture',
49        '../third_party/libwebm/libwebm.gyp:libwebm',
50      ],
51      'sources': [
52        '<@(remoting_client_sources)',
53      ],
54    },  # end of target 'remoting_client'
55
56    {
57      'target_name': 'remoting_webapp_html',
58      'type': 'none',
59      'actions': [
60        {
61          'action_name': 'Build Remoting Webapp main.html',
62          'inputs': [
63            'webapp/build-html.py',
64            '<(remoting_webapp_template_main)',
65            '<@(remoting_webapp_template_files)',
66          ],
67          'outputs': [
68            '<(SHARED_INTERMEDIATE_DIR)/main.html',
69          ],
70          'action': [
71            'python', 'webapp/build-html.py',
72            '<(SHARED_INTERMEDIATE_DIR)/main.html',
73            '<(remoting_webapp_template_main)',
74            '--template', '<@(remoting_webapp_template_files)',
75            '--js', '<@(remoting_webapp_main_html_js_files)',
76          ],
77        },
78        {
79          'action_name': 'Build Remoting Webapp wcs_sandbox.html',
80          'inputs': [
81            'webapp/build-html.py',
82            '<(remoting_webapp_template_wcs_sandbox)',
83          ],
84          'outputs': [
85            '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
86          ],
87          'action': [
88            'python', 'webapp/build-html.py',
89            '<(SHARED_INTERMEDIATE_DIR)/wcs_sandbox.html',
90            '<(remoting_webapp_template_wcs_sandbox)',
91            '--js', '<@(remoting_webapp_wcs_sandbox_html_js_files)',
92          ],
93        },
94      ],
95    },  # end of target 'remoting_webapp_html'
96
97    {
98      'target_name': 'remoting_webapp',
99      'type': 'none',
100      'dependencies': [
101        'remoting_webapp_v1',
102        'remoting_webapp_v2',
103      ],
104    },  # end of target 'remoting_webapp'
105
106    {
107      'target_name': 'remoting_webapp_v1',
108      'type': 'none',
109      'variables': {
110        'webapp_type': 'v1',
111        'include_host_plugin': '<(enable_remoting_host)',
112        'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp',
113        'zip_path': '<(PRODUCT_DIR)/remoting-webapp.zip',
114      },
115      'includes': [ 'remoting_webapp.gypi', ],
116    },  # end of target 'remoting_webapp_v1'
117
118    {
119      'target_name': 'remoting_webapp_v2',
120      'type': 'none',
121      'variables': {
122        'webapp_type': 'v2',
123        'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp.v2',
124        'zip_path': '<(PRODUCT_DIR)/remoting-webapp.v2.zip',
125        'extra_files': [ 'webapp/background.js' ],
126      },
127      'includes': [ 'remoting_webapp.gypi', ],
128    },  # end of target 'remoting_webapp_v2'
129  ],  # end of targets
130}
131