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 == "mipsel"', {
56 'host_plugin_extension': 'mipsel.so',
57 'host_plugin_prefix': 'lib',
60 'host_plugin_extension': 'dll',
61 'host_plugin_prefix': '',
63 # Each CLSID is a hash of the current version string salted with an
64 # arbitrary GUID. This ensures that the newly installed COM classes will
65 # be used during/after upgrade even if there are old instances running
67 # The IDs are not random to avoid rebuilding host when it's not
69 'daemon_controller_clsid':
70 '<!(python -c "import uuid; print uuid.uuid5(uuid.UUID(\'655bd819-c08c-4b04-80c2-f160739ff6ef\'), \'<(version_full)\')")',
71 'rdp_desktop_session_clsid':
72 '<!(python -c "import uuid; print uuid.uuid5(uuid.UUID(\'6a7699f0-ee43-43e7-aa30-a6738f9bd470\'), \'<(version_full)\')")',
76 'ar', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en', 'en-GB', 'es',
77 'es-419', 'et', 'fi', 'fil', 'fr', 'he', 'hi', 'hr', 'hu', 'id',
78 'it', 'ja', 'ko', 'lt', 'lv', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT',
79 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'th', 'tr', 'uk', 'vi',
82 'remoting_host_locale_files': [
83 # Build the list of .pak files generated from remoting_strings.grd.
84 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x '
85 '<(PRODUCT_DIR) <(remoting_locales))',
87 'remoting_webapp_locale_files': [
88 # Build the list of .json files generated from remoting_strings.grd.
89 '<!@pymod_do_main(remoting_localize --locale_output '
90 '"<(webapp_locale_dir)/@{json_suffix}/messages.json" '
91 '--print_only <(remoting_locales))',
96 '../chrome/js_unittest_vars.gypi',
97 'remoting_android.gypi',
98 'remoting_client.gypi',
100 'remoting_srcs.gypi',
101 'remoting_test.gypi',
102 'remoting_version.gypi',
103 'remoting_webapp_files.gypi',
110 'BINARY_HOST_ME2ME=3',
111 'BINARY_HOST_PLUGIN=4',
112 'BINARY_NATIVE_MESSAGING_HOST=5',
113 'BINARY_REMOTE_ASSISTANCE_HOST=6',
116 '..', # Root of Chrome checkout
119 'win_debug_RuntimeChecks': '0',
122 ['OS=="mac" and mac_breakpad==1', {
124 'REMOTING_ENABLE_BREAKPAD'
127 ['OS=="win" and buildtype == "Official"', {
129 'REMOTING_ENABLE_BREAKPAD'
132 ['OS=="win" and remoting_multi_process != 0 and \
133 remoting_rdp_session != 0', {
135 'REMOTING_RDP_SESSION',
138 ['remoting_multi_process != 0', {
140 'REMOTING_MULTI_PROCESS',
148 'target_name': 'remoting_breakpad',
149 'type': 'static_library',
150 'variables': { 'enable_wexit_time_destructors': 1, },
152 '../base/base.gyp:base',
156 'base/breakpad_linux.cc',
157 'base/breakpad_mac.mm',
158 'base/breakpad_win.cc',
163 '../breakpad/breakpad.gyp:breakpad',
168 '../breakpad/breakpad.gyp:breakpad_handler',
172 }, # end of target 'remoting_breakpad'
175 'target_name': 'remoting_resources',
178 'remoting_webapp_html',
181 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)',
182 'grit_resource_ids': 'resources/resource_ids',
184 '<(SHARED_INTERMEDIATE_DIR)/main.html',
185 'base/resources_unittest.cc',
186 'host/continue_window_mac.mm',
187 'host/disconnect_window_mac.mm',
188 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2',
189 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
190 'host/plugin/host_plugin-InfoPlist.strings.jinja2',
191 'host/win/core.rc.jinja2',
192 'host/win/host_messages.mc.jinja2',
193 'host/win/version.rc.jinja2',
194 'webapp/background.js',
195 'webapp/butter_bar.js',
196 'webapp/client_screen.js',
198 'webapp/host_list.js',
199 'webapp/host_setup_dialog.js',
200 'webapp/host_table_entry.js',
201 'webapp/manifest.json.jinja2',
202 'webapp/paired_client_manager.js',
203 'webapp/remoting.js',
208 'action_name': 'verify_resources',
210 'resources/remoting_strings.grd',
211 'tools/verify_resources.py',
215 '<(PRODUCT_DIR)/remoting_resources_verified.stamp',
219 'tools/verify_resources.py',
220 '-t', '<(PRODUCT_DIR)/remoting_resources_verified.stamp',
221 '-r', 'resources/remoting_strings.grd',
226 'action_name': 'remoting_strings',
228 'grit_grd_file': 'resources/remoting_strings.grd',
230 'includes': [ '../build/grit_action.gypi' ],
233 'action_name': 'copy_locales',
235 'copy_output_dir%': '<(PRODUCT_DIR)',
238 'tools/build/remoting_copy_locales.py',
239 '<!@pymod_do_main(remoting_copy_locales -i -p <(OS) -g <(grit_out_dir) <(remoting_locales))'
242 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(copy_output_dir) <(remoting_locales))'
245 'python', 'tools/build/remoting_copy_locales.py',
247 '-g', '<(grit_out_dir)',
248 '-x', '<(copy_output_dir)/.',
249 '<@(remoting_locales)',
253 'includes': [ '../build/grit_target.gypi' ],
254 }, # end of target 'remoting_resources'
257 'target_name': 'remoting_base',
258 'type': 'static_library',
259 'variables': { 'enable_wexit_time_destructors': 1, },
261 '../base/base.gyp:base',
262 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
263 '../media/media.gyp:media',
264 '../media/media.gyp:shared_memory_support',
265 '../net/net.gyp:net',
266 '../third_party/libvpx/libvpx.gyp:libvpx',
267 '../third_party/libyuv/libyuv.gyp:libyuv',
268 '../third_party/opus/opus.gyp:opus',
269 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
270 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
271 '../ui/base/ui_base.gyp:ui_base',
272 '../ui/gfx/gfx.gyp:gfx',
273 '../ui/gfx/gfx.gyp:gfx_geometry',
274 'proto/chromotocol.gyp:chromotocol_proto_lib',
275 'remoting_resources',
277 'export_dependent_settings': [
278 '../base/base.gyp:base',
279 '../net/net.gyp:net',
280 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
281 'proto/chromotocol.gyp:chromotocol_proto_lib',
283 # This target needs a hard dependency because dependent targets
284 # depend on chromotocol_proto_lib for headers.
285 'hard_dependency': 1,
287 '<@(remoting_base_sources)',
289 }, # end of target 'remoting_base'
292 'target_name': 'remoting_protocol',
293 'type': 'static_library',
294 'variables': { 'enable_wexit_time_destructors': 1, },
296 '../base/base.gyp:base',
297 '../crypto/crypto.gyp:crypto',
298 '../jingle/jingle.gyp:jingle_glue',
299 '../jingle/jingle.gyp:notifier',
300 '../net/net.gyp:net',
301 '../third_party/libjingle/libjingle.gyp:libjingle',
304 'export_dependent_settings': [
305 '../third_party/libjingle/libjingle.gyp:libjingle',
308 '<@(remoting_protocol_sources)',
310 }, # end of target 'remoting_protocol'