1 # Copyright (c) 2012 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.
9 # Set this to run the jscompile checks after building the webapp.
14 # Enable the multi-process host on Windows by default.
16 'remoting_multi_process%': 1,
18 'remoting_multi_process%': 0,
23 'remoting_multi_process%': '<(remoting_multi_process)',
24 'remoting_rdp_session%': 1,
26 'remoting_localize_path': 'tools/build/remoting_localize.py',
28 'branding_path': '../remoting/branding_<(branding)',
30 'webapp_locale_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/webapp/_locales',
32 'host_plugin_mime_type': 'application/vnd.chromium.remoting-host',
36 'mac_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_BUNDLE_ID@")',
37 'mac_creator': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_CREATOR@")',
38 'host_plugin_extension': 'plugin',
39 'host_plugin_prefix': '',
41 ['os_posix == 1 and OS != "mac" and target_arch == "ia32"', {
43 'host_plugin_extension': 'ia32.so',
44 'host_plugin_prefix': 'lib',
46 ['os_posix == 1 and OS != "mac" and target_arch == "x64"', {
48 'host_plugin_extension': 'x64.so',
49 'host_plugin_prefix': 'lib',
51 ['os_posix == 1 and OS != "mac" and target_arch == "arm"', {
52 'host_plugin_extension': 'arm.so',
53 'host_plugin_prefix': 'lib',
55 ['os_posix == 1 and OS != "mac" and target_arch == "arm64"', {
56 'host_plugin_extension': 'arm64.so',
57 'host_plugin_prefix': 'lib',
59 ['os_posix == 1 and OS != "mac" and target_arch == "mipsel"', {
60 'host_plugin_extension': 'mipsel.so',
61 'host_plugin_prefix': 'lib',
64 'host_plugin_extension': 'dll',
65 'host_plugin_prefix': '',
67 # Each CLSID is a hash of the current version string salted with an
68 # arbitrary GUID. This ensures that the newly installed COM classes will
69 # be used during/after upgrade even if there are old instances running
71 # The IDs are not random to avoid rebuilding host when it's not
73 'daemon_controller_clsid':
74 '<!(python -c "import uuid; print uuid.uuid5(uuid.UUID(\'655bd819-c08c-4b04-80c2-f160739ff6ef\'), \'<(version_full)\')")',
75 'rdp_desktop_session_clsid':
76 '<!(python -c "import uuid; print uuid.uuid5(uuid.UUID(\'6a7699f0-ee43-43e7-aa30-a6738f9bd470\'), \'<(version_full)\')")',
80 'ar', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en', 'en-GB', 'es',
81 'es-419', 'et', 'fi', 'fil', 'fr', 'he', 'hi', 'hr', 'hu', 'id',
82 'it', 'ja', 'ko', 'lt', 'lv', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT',
83 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'th', 'tr', 'uk', 'vi',
86 'remoting_host_locale_files': [
87 # Build the list of .pak files generated from remoting_strings.grd.
88 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x '
89 '<(PRODUCT_DIR) <(remoting_locales))',
91 'remoting_webapp_locale_files': [
92 # Build the list of .json files generated from remoting_strings.grd.
93 '<!@pymod_do_main(remoting_localize --locale_output '
94 '"<(webapp_locale_dir)/@{json_suffix}/messages.json" '
95 '--print_only <(remoting_locales))',
100 '../chrome/js_unittest_vars.gypi',
101 'remoting_android.gypi',
102 'remoting_client.gypi',
103 'remoting_host.gypi',
104 'remoting_srcs.gypi',
105 'remoting_test.gypi',
106 'remoting_version.gypi',
107 'remoting_webapp_files.gypi',
114 'BINARY_HOST_ME2ME=3',
115 'BINARY_HOST_PLUGIN=4',
116 'BINARY_NATIVE_MESSAGING_HOST=5',
117 'BINARY_REMOTE_ASSISTANCE_HOST=6',
120 '..', # Root of Chrome checkout
123 'win_debug_RuntimeChecks': '0',
126 ['OS=="mac" and mac_breakpad==1', {
128 'REMOTING_ENABLE_BREAKPAD'
131 ['OS=="win" and buildtype == "Official"', {
133 'REMOTING_ENABLE_BREAKPAD'
136 ['OS=="win" and remoting_multi_process != 0 and \
137 remoting_rdp_session != 0', {
139 'REMOTING_RDP_SESSION',
142 ['remoting_multi_process != 0', {
144 'REMOTING_MULTI_PROCESS',
152 'target_name': 'remoting_breakpad',
153 'type': 'static_library',
154 'variables': { 'enable_wexit_time_destructors': 1, },
156 '../base/base.gyp:base',
160 'base/breakpad_linux.cc',
161 'base/breakpad_mac.mm',
162 'base/breakpad_win.cc',
167 '../breakpad/breakpad.gyp:breakpad',
172 '../breakpad/breakpad.gyp:breakpad_handler',
176 }, # end of target 'remoting_breakpad'
179 'target_name': 'remoting_resources',
182 'remoting_webapp_html',
185 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)',
186 'grit_resource_ids': 'resources/resource_ids',
188 '<(SHARED_INTERMEDIATE_DIR)/main.html',
189 'base/resources_unittest.cc',
190 'host/continue_window_mac.mm',
191 'host/disconnect_window_mac.mm',
192 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2',
193 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
194 'host/plugin/host_plugin-InfoPlist.strings.jinja2',
195 'host/win/core.rc.jinja2',
196 'host/win/host_messages.mc.jinja2',
197 'host/win/version.rc.jinja2',
198 'resources/play_store_resources.cc',
199 'webapp/background.js',
200 'webapp/butter_bar.js',
201 'webapp/client_screen.js',
203 'webapp/host_list.js',
204 'webapp/host_setup_dialog.js',
205 'webapp/host_table_entry.js',
206 'webapp/manifest.json.jinja2',
207 'webapp/paired_client_manager.js',
208 'webapp/remoting.js',
213 'action_name': 'verify_resources',
215 'resources/remoting_strings.grd',
216 'tools/verify_resources.py',
220 '<(PRODUCT_DIR)/remoting_resources_verified.stamp',
224 'tools/verify_resources.py',
225 '-t', '<(PRODUCT_DIR)/remoting_resources_verified.stamp',
226 '-r', 'resources/remoting_strings.grd',
231 'action_name': 'remoting_strings',
233 'grit_grd_file': 'resources/remoting_strings.grd',
235 'includes': [ '../build/grit_action.gypi' ],
238 'action_name': 'copy_locales',
240 'copy_output_dir%': '<(PRODUCT_DIR)',
243 'tools/build/remoting_copy_locales.py',
244 '<!@pymod_do_main(remoting_copy_locales -i -p <(OS) -g <(grit_out_dir) <(remoting_locales))'
247 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(copy_output_dir) <(remoting_locales))'
250 'python', 'tools/build/remoting_copy_locales.py',
252 '-g', '<(grit_out_dir)',
253 '-x', '<(copy_output_dir)/.',
254 '<@(remoting_locales)',
258 'includes': [ '../build/grit_target.gypi' ],
259 }, # end of target 'remoting_resources'
262 'target_name': 'remoting_base',
263 'type': 'static_library',
264 'variables': { 'enable_wexit_time_destructors': 1, },
266 '../base/base.gyp:base',
267 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
268 '../media/media.gyp:media',
269 '../media/media.gyp:shared_memory_support',
270 '../net/net.gyp:net',
271 '../third_party/libvpx/libvpx.gyp:libvpx',
272 '../third_party/libyuv/libyuv.gyp:libyuv',
273 '../third_party/opus/opus.gyp:opus',
274 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
275 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
276 '../ui/base/ui_base.gyp:ui_base',
277 '../ui/gfx/gfx.gyp:gfx',
278 '../ui/gfx/gfx.gyp:gfx_geometry',
279 'proto/chromotocol.gyp:chromotocol_proto_lib',
280 'remoting_resources',
282 'export_dependent_settings': [
283 '../base/base.gyp:base',
284 '../net/net.gyp:net',
285 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
286 'proto/chromotocol.gyp:chromotocol_proto_lib',
288 # This target needs a hard dependency because dependent targets
289 # depend on chromotocol_proto_lib for headers.
290 'hard_dependency': 1,
292 '<@(remoting_base_sources)',
294 }, # end of target 'remoting_base'
297 'target_name': 'remoting_protocol',
298 'type': 'static_library',
299 'variables': { 'enable_wexit_time_destructors': 1, },
301 '../base/base.gyp:base',
302 '../crypto/crypto.gyp:crypto',
303 '../jingle/jingle.gyp:jingle_glue',
304 '../jingle/jingle.gyp:notifier',
305 '../net/net.gyp:net',
306 '../third_party/libjingle/libjingle.gyp:libjingle',
309 'export_dependent_settings': [
310 '../third_party/libjingle/libjingle.gyp:libjingle',
313 '<@(remoting_protocol_sources)',
315 }, # end of target 'remoting_protocol'