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.
7 'remoting_host_linux.gypi',
8 'remoting_host_mac.gypi',
9 'remoting_host_win.gypi',
14 # Remoting host is supported only on Windows, OSX and Linux (with X11).
15 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0 and use_x11==1)', {
16 'enable_remoting_host': 1,
18 'enable_remoting_host': 0,
24 ['enable_remoting_host==1', {
27 'target_name': 'remoting_host',
28 'type': 'static_library',
30 'enable_wexit_time_destructors': 1,
31 'host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_NAME@")',
32 'prefpane_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_PREFPANE_BUNDLE_NAME@")',
38 '../base/base.gyp:base_i18n',
39 '../crypto/crypto.gyp:crypto',
40 '../google_apis/google_apis.gyp:google_apis',
42 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
43 '../ui/events/events.gyp:dom4_keycode_converter',
46 'HOST_BUNDLE_NAME="<(host_bundle_name)"',
47 'PREFPANE_BUNDLE_NAME="<(prefpane_bundle_name)"',
48 'VERSION=<(version_full)',
51 'host/audio_capturer.cc',
52 'host/audio_capturer.h',
53 'host/audio_capturer_linux.cc',
54 'host/audio_capturer_linux.h',
55 'host/audio_capturer_mac.cc',
56 'host/audio_capturer_win.cc',
57 'host/audio_capturer_win.h',
58 'host/audio_scheduler.cc',
59 'host/audio_scheduler.h',
60 'host/audio_silence_detector.cc',
61 'host/audio_silence_detector.h',
62 'host/basic_desktop_environment.cc',
63 'host/basic_desktop_environment.h',
66 'host/capture_scheduler.cc',
67 'host/capture_scheduler.h',
68 'host/chromoting_host.cc',
69 'host/chromoting_host.h',
70 'host/chromoting_host_context.cc',
71 'host/chromoting_host_context.h',
72 'host/chromoting_messages.cc',
73 'host/chromoting_messages.h',
74 'host/chromoting_param_traits.cc',
75 'host/chromoting_param_traits.h',
76 'host/client_session.cc',
77 'host/client_session.h',
78 'host/client_session_control.h',
80 'host/clipboard_mac.mm',
81 'host/clipboard_win.cc',
82 'host/clipboard_x11.cc',
83 'host/config_file_watcher.cc',
84 'host/config_file_watcher.h',
85 'host/config_watcher.h',
86 'host/constants_mac.cc',
87 'host/constants_mac.h',
88 'host/continue_window.cc',
89 'host/continue_window.h',
90 'host/continue_window_linux.cc',
91 'host/continue_window_mac.mm',
92 'host/continue_window_win.cc',
93 'host/daemon_process.cc',
94 'host/daemon_process.h',
95 'host/daemon_process_win.cc',
96 'host/desktop_environment.h',
97 'host/desktop_process.cc',
98 'host/desktop_process.h',
99 'host/desktop_resizer.h',
100 'host/desktop_resizer_linux.cc',
101 'host/desktop_session.cc',
102 'host/desktop_session.h',
103 'host/desktop_session_agent.cc',
104 'host/desktop_session_agent.h',
105 'host/desktop_session_win.cc',
106 'host/desktop_session_win.h',
107 'host/desktop_resizer_mac.cc',
108 'host/desktop_resizer_win.cc',
109 'host/desktop_session_connector.h',
110 'host/desktop_session_proxy.cc',
111 'host/desktop_session_proxy.h',
112 'host/desktop_shape_tracker.h',
113 'host/desktop_shape_tracker_mac.cc',
114 'host/desktop_shape_tracker_win.cc',
115 'host/desktop_shape_tracker_x11.cc',
116 'host/disconnect_window_linux.cc',
117 'host/disconnect_window_mac.h',
118 'host/disconnect_window_mac.mm',
119 'host/disconnect_window_win.cc',
120 'host/dns_blackhole_checker.cc',
121 'host/dns_blackhole_checker.h',
122 'host/gnubby_auth_handler.h',
123 'host/gnubby_auth_handler_posix.cc',
124 'host/gnubby_auth_handler_posix.h',
125 'host/gnubby_auth_handler_win.cc',
126 'host/gnubby_socket.cc',
127 'host/gnubby_socket.h',
128 'host/heartbeat_sender.cc',
129 'host/heartbeat_sender.h',
130 'host/host_change_notification_listener.cc',
131 'host/host_change_notification_listener.h',
132 'host/host_config.cc',
133 'host/host_config.h',
134 'host/host_event_logger.h',
135 'host/host_event_logger_posix.cc',
136 'host/host_event_logger_win.cc',
137 'host/host_exit_codes.cc',
138 'host/host_exit_codes.h',
139 'host/host_export.h',
140 'host/host_extension.h',
141 'host/host_extension_session.h',
142 'host/host_secret.cc',
143 'host/host_secret.h',
144 'host/host_status_logger.cc',
145 'host/host_status_logger.h',
146 'host/host_status_monitor.h',
147 'host/host_status_observer.h',
148 'host/host_status_sender.cc',
149 'host/host_status_sender.h',
150 'host/host_window.h',
151 'host/host_window_proxy.cc',
152 'host/host_window_proxy.h',
153 'host/in_memory_host_config.cc',
154 'host/in_memory_host_config.h',
155 'host/input_injector.h',
156 'host/input_injector_linux.cc',
157 'host/input_injector_mac.cc',
158 'host/input_injector_win.cc',
159 'host/ipc_audio_capturer.cc',
160 'host/ipc_audio_capturer.h',
161 'host/ipc_constants.cc',
162 'host/ipc_constants.h',
163 'host/ipc_desktop_environment.cc',
164 'host/ipc_desktop_environment.h',
165 'host/ipc_host_event_logger.cc',
166 'host/ipc_host_event_logger.h',
167 'host/ipc_input_injector.cc',
168 'host/ipc_input_injector.h',
169 'host/ipc_screen_controls.cc',
170 'host/ipc_screen_controls.h',
172 'host/ipc_util_posix.cc',
173 'host/ipc_util_win.cc',
174 'host/ipc_video_frame_capturer.cc',
175 'host/ipc_video_frame_capturer.h',
176 'host/it2me_desktop_environment.cc',
177 'host/it2me_desktop_environment.h',
178 'host/json_host_config.cc',
179 'host/json_host_config.h',
180 'host/linux/audio_pipe_reader.cc',
181 'host/linux/audio_pipe_reader.h',
182 'host/linux/unicode_to_keysym.cc',
183 'host/linux/unicode_to_keysym.h',
184 'host/linux/x11_util.cc',
185 'host/linux/x11_util.h',
186 'host/linux/x_server_clipboard.cc',
187 'host/linux/x_server_clipboard.h',
188 'host/local_input_monitor.h',
189 'host/local_input_monitor_linux.cc',
190 'host/local_input_monitor_mac.mm',
191 'host/local_input_monitor_win.cc',
193 'host/logging_posix.cc',
194 'host/logging_win.cc',
195 'host/me2me_desktop_environment.cc',
196 'host/me2me_desktop_environment.h',
197 'host/mouse_clamping_filter.cc',
198 'host/mouse_clamping_filter.h',
199 'host/oauth_token_getter.cc',
200 'host/oauth_token_getter.h',
201 'host/pairing_registry_delegate.cc',
202 'host/pairing_registry_delegate.h',
203 'host/pairing_registry_delegate_linux.cc',
204 'host/pairing_registry_delegate_linux.h',
205 'host/pairing_registry_delegate_mac.cc',
206 'host/pairing_registry_delegate_win.cc',
207 'host/pairing_registry_delegate_win.h',
208 'host/pam_authorization_factory_posix.cc',
209 'host/pam_authorization_factory_posix.h',
212 'host/policy_hack/policy_watcher.cc',
213 'host/policy_hack/policy_watcher.h',
214 'host/policy_hack/policy_watcher_linux.cc',
215 'host/policy_hack/policy_watcher_mac.mm',
216 'host/policy_hack/policy_watcher_win.cc',
217 'host/register_support_host_request.cc',
218 'host/register_support_host_request.h',
219 'host/remote_input_filter.cc',
220 'host/remote_input_filter.h',
221 'host/remoting_me2me_host.cc',
222 'host/resizing_host_observer.cc',
223 'host/resizing_host_observer.h',
224 'host/sas_injector.h',
225 'host/sas_injector_win.cc',
226 'host/screen_controls.h',
227 'host/screen_resolution.cc',
228 'host/screen_resolution.h',
229 'host/server_log_entry_host.cc',
230 'host/server_log_entry_host.h',
231 'host/session_manager_factory.cc',
232 'host/session_manager_factory.h',
233 'host/shaped_screen_capturer.cc',
234 'host/shaped_screen_capturer.h',
235 'host/signaling_connector.cc',
236 'host/signaling_connector.h',
237 'host/token_validator_base.cc',
238 'host/token_validator_base.h',
239 'host/token_validator_factory_impl.cc',
240 'host/token_validator_factory_impl.h',
241 'host/usage_stats_consent.h',
242 'host/usage_stats_consent_mac.cc',
243 'host/usage_stats_consent_win.cc',
246 'host/video_frame_recorder.cc',
247 'host/video_frame_recorder.h',
248 'host/video_scheduler.cc',
249 'host/video_scheduler.h',
250 'host/win/com_imported_mstscax.tlh',
251 'host/win/com_security.cc',
252 'host/win/com_security.h',
253 'host/win/launch_process_with_token.cc',
254 'host/win/launch_process_with_token.h',
257 'host/win/rdp_client.cc',
258 'host/win/rdp_client.h',
259 'host/win/rdp_client_window.cc',
260 'host/win/rdp_client_window.h',
261 'host/win/security_descriptor.cc',
262 'host/win/security_descriptor.h',
263 'host/win/session_desktop_environment.cc',
264 'host/win/session_desktop_environment.h',
265 'host/win/session_input_injector.cc',
266 'host/win/session_input_injector.h',
267 'host/win/window_station_and_desktop.cc',
268 'host/win/window_station_and_desktop.h',
269 'host/win/wts_terminal_monitor.cc',
270 'host/win/wts_terminal_monitor.h',
271 'host/win/wts_terminal_observer.h',
276 # Always use GTK on Linux, even for Aura builds.
277 '../build/linux/system.gyp:gtk',
278 '../build/linux/system.gyp:x11',
279 '../build/linux/system.gyp:xext',
280 '../build/linux/system.gyp:xfixes',
281 '../build/linux/system.gyp:xi',
282 '../build/linux/system.gyp:xrandr',
283 '../build/linux/system.gyp:xtst',
293 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
297 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
304 '_ATL_NO_EXCEPTIONS',
305 'ISOLATION_AWARE_ENABLED=1',
308 '../sandbox/sandbox.gyp:sandbox',
309 'remoting_host_messages',
313 'VCCLCompilerTool': {
314 # /MP conflicts with #import directive so we limit the number
315 # of processes to spawn to 1.
316 'AdditionalOptions': ['/MP1'],
320 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/host',
323 '<(output_dir)/remoting_host_messages.mc',
328 'direct_dependent_settings': {
334 # Rule to run the message compiler.
335 'rule_name': 'message_compiler',
338 '<(output_dir)/<(RULE_INPUT_ROOT).h',
339 '<(output_dir)/<(RULE_INPUT_ROOT).rc',
343 '-h', '<(output_dir)',
344 '-r', '<(output_dir)/.',
346 '<(RULE_INPUT_PATH)',
348 'process_outputs_as_sources': 1,
349 'message': 'Running message compiler on <(RULE_INPUT_PATH)',
353 }, # end of target 'remoting_host'
356 'target_name': 'remoting_native_messaging_base',
357 'type': 'static_library',
358 'variables': { 'enable_wexit_time_destructors': 1, },
360 '../base/base.gyp:base',
363 'host/native_messaging/native_messaging_channel.cc',
364 'host/native_messaging/native_messaging_channel.h',
365 'host/native_messaging/native_messaging_reader.cc',
366 'host/native_messaging/native_messaging_reader.h',
367 'host/native_messaging/native_messaging_writer.cc',
368 'host/native_messaging/native_messaging_writer.h',
370 }, # end of target 'remoting_native_messaging_base'
373 'target_name': 'remoting_me2me_host_static',
374 'type': 'static_library',
375 'variables': { 'enable_wexit_time_destructors': 1, },
377 '../base/base.gyp:base',
378 '../base/base.gyp:base_i18n',
379 '../net/net.gyp:net',
380 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
387 'VERSION=<(version_full)',
390 'host/curtain_mode.h',
391 'host/curtain_mode_linux.cc',
392 'host/curtain_mode_mac.cc',
393 'host/curtain_mode_win.cc',
394 'host/posix/signal_handler.cc',
395 'host/posix/signal_handler.h',
400 ['exclude', '^host/posix/'],
403 ], # end of 'conditions'
404 }, # end of target 'remoting_me2me_host_static'
407 'target_name': 'remoting_host_setup_base',
408 'type': 'static_library',
409 'variables': { 'enable_wexit_time_destructors': 1, },
411 '../base/base.gyp:base',
412 '../google_apis/google_apis.gyp:google_apis',
416 'VERSION=<(version_full)',
419 'host/setup/daemon_controller.cc',
420 'host/setup/daemon_controller.h',
421 'host/setup/daemon_controller_delegate_linux.cc',
422 'host/setup/daemon_controller_delegate_linux.h',
423 'host/setup/daemon_controller_delegate_mac.h',
424 'host/setup/daemon_controller_delegate_mac.mm',
425 'host/setup/daemon_controller_delegate_win.cc',
426 'host/setup/daemon_controller_delegate_win.h',
427 'host/setup/daemon_installer_win.cc',
428 'host/setup/daemon_installer_win.h',
429 'host/setup/me2me_native_messaging_host.cc',
430 'host/setup/me2me_native_messaging_host.h',
431 'host/setup/oauth_client.cc',
432 'host/setup/oauth_client.h',
433 'host/setup/oauth_helper.cc',
434 'host/setup/oauth_helper.h',
435 'host/setup/pin_validator.cc',
436 'host/setup/pin_validator.h',
437 'host/setup/service_client.cc',
438 'host/setup/service_client.h',
439 'host/setup/test_util.cc',
440 'host/setup/test_util.h',
441 'host/setup/win/auth_code_getter.cc',
442 'host/setup/win/auth_code_getter.h',
447 '../google_update/google_update.gyp:google_update',
450 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
451 'msvs_disabled_warnings': [4267, ],
454 }, # end of target 'remoting_host_setup_base'
457 'target_name': 'remoting_it2me_host_static',
458 'type': 'static_library',
459 'variables': { 'enable_wexit_time_destructors': 1, },
461 '../base/base.gyp:base_i18n',
462 '../net/net.gyp:net',
465 'remoting_infoplist_strings',
467 'remoting_resources',
470 'VERSION=<(version_full)',
473 'host/it2me/it2me_host.cc',
474 'host/it2me/it2me_host.h',
475 'host/it2me/it2me_native_messaging_host.cc',
476 'host/it2me/it2me_native_messaging_host.h',
478 }, # end of target 'remoting_it2me_host_static'
480 # Generates native messaging manifest files.
482 'target_name': 'remoting_native_messaging_manifests',
487 'me2me_host_path': 'remoting_native_messaging_host.exe',
488 'it2me_host_path': 'remote_assistance_host.exe',
493 'me2me_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_NAME@")',
494 'native_messaging_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_NATIVE_MESSAGING_HOST_BUNDLE_NAME@")',
495 'remote_assistance_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_NAME@")',
497 '/Library/PrivilegedHelperTools/<(me2me_host_bundle_name)/Contents/MacOS/<(native_messaging_host_bundle_name)/Contents/MacOS/native_messaging_host',
499 '/Library/PrivilegedHelperTools/<(me2me_host_bundle_name)/Contents/MacOS/<(remote_assistance_host_bundle_name)/Contents/MacOS/remote_assistance_host',
502 [ 'OS != "mac" and OS != "win"', {
505 '/opt/google/chrome-remote-desktop/native-messaging-host',
507 '/opt/google/chrome-remote-desktop/remote-assistance-host',
512 'host/it2me/com.google.chrome.remote_assistance.json.jinja2',
513 'host/setup/com.google.chrome.remote_desktop.json.jinja2',
516 'rule_name': 'generate_manifest',
517 'extension': 'jinja2',
519 '<(remoting_localize_path)',
523 '<(PRODUCT_DIR)/remoting/<(RULE_INPUT_ROOT)',
526 'python', '<(remoting_localize_path)',
527 '--define', 'ME2ME_HOST_PATH=<(me2me_host_path)',
528 '--define', 'IT2ME_HOST_PATH=<(it2me_host_path)',
529 '--variables', '<(branding_path)',
530 '--template', '<(RULE_INPUT_PATH)',
531 '--locale_output', '<@(_outputs)',
535 }, # end of target 'remoting_native_messaging_manifests'
538 'target_name': 'remoting_infoplist_strings',
541 'remoting_resources',
544 'host/remoting_me2me_host-InfoPlist.strings.jinja2',
545 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
546 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2',
547 'host/setup/native_messaging_host-InfoPlist.strings.jinja2',
548 'host/it2me/remote_assistance_host-InfoPlist.strings.jinja2',
551 'rule_name': 'generate_strings',
552 'extension': 'jinja2',
554 '<(remoting_localize_path)',
557 '<!@pymod_do_main(remoting_localize --locale_output '
558 '"<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suffix}.lproj/InfoPlist.strings" '
559 '--print_only <(remoting_locales))',
562 'python', '<(remoting_localize_path)',
563 '--locale_dir', '<(webapp_locale_dir)',
564 '--template', '<(RULE_INPUT_PATH)',
566 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suffix}.lproj/InfoPlist.strings',
567 '<@(remoting_locales)',
570 }, # end of target 'remoting_infoplist_strings'
571 ], # end of 'targets'
572 }], # 'enable_remoting_host==1'
574 ['OS!="win" and enable_remoting_host==1', {
577 'target_name': 'remoting_me2me_host',
578 'type': 'executable',
579 'variables': { 'enable_wexit_time_destructors': 1, },
581 '../base/base.gyp:base',
582 '../base/base.gyp:base_i18n',
583 '<(icu_gyp_path):icudata',
584 '../net/net.gyp:net',
585 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
589 'remoting_infoplist_strings',
590 'remoting_me2me_host_static',
594 'VERSION=<(version_full)',
604 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_ID@")',
607 'INFOPLIST_FILE': 'host/remoting_me2me_host-Info.plist',
608 'INFOPLIST_PREPROCESS': 'YES',
609 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
611 'mac_bundle_resources': [
612 '<(PRODUCT_DIR)/icudtl.dat',
613 'host/disconnect_window.xib',
614 'host/remoting_me2me_host.icns',
615 'host/remoting_me2me_host-Info.plist',
616 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
618 # Localized strings for 'Info.plist'
619 '<!@pymod_do_main(remoting_localize --locale_output '
620 '"<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_me2me_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
621 '--print_only <(remoting_locales))',
623 'mac_bundle_resources!': [
624 'host/remoting_me2me_host-Info.plist',
627 ['mac_breakpad==1', {
629 # A real .dSYM is needed for dump_syms to operate on.
634 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
636 '<(PRODUCT_DIR)/crash_inspector',
637 '<(PRODUCT_DIR)/crash_report_sender.app'
642 '../breakpad/breakpad.gyp:dump_syms',
646 'postbuild_name': 'Dump Symbols',
648 'dump_product_syms_path':
649 'scripts/mac/dump_product_syms',
652 '<(dump_product_syms_path)',
655 }, # end of postbuild 'dump_symbols'
656 ], # end of 'postbuilds'
657 }], # mac_breakpad==1
660 ['OS=="linux" and use_allocator!="none"', {
662 '../base/allocator/allocator.gyp:allocator',
665 ], # end of 'conditions'
666 }, # end of target 'remoting_me2me_host'
668 'target_name': 'remoting_me2me_native_messaging_host',
669 'type': 'executable',
670 'product_name': 'native_messaging_host',
671 'variables': { 'enable_wexit_time_destructors': 1, },
673 '../base/base.gyp:base',
676 'remoting_host_setup_base',
677 'remoting_infoplist_strings',
678 'remoting_native_messaging_base',
681 'VERSION=<(version_full)',
684 'host/setup/me2me_native_messaging_host_entry_point.cc',
685 'host/setup/me2me_native_messaging_host_main.cc',
686 'host/setup/me2me_native_messaging_host_main.h',
689 ['OS=="linux" and use_allocator!="none"', {
691 '../base/allocator/allocator.gyp:allocator',
697 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_NATIVE_MESSAGING_HOST_BUNDLE_ID@")',
700 'INFOPLIST_FILE': 'host/setup/native_messaging_host-Info.plist',
701 'INFOPLIST_PREPROCESS': 'YES',
702 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
704 'mac_bundle_resources': [
705 'host/setup/native_messaging_host-Info.plist',
706 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
708 # Localized strings for 'Info.plist'
709 '<!@pymod_do_main(remoting_localize --locale_output '
710 '"<(SHARED_INTERMEDIATE_DIR)/remoting/native_messaging_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
711 '--print_only <(remoting_locales))',
713 'mac_bundle_resources!': [
714 'host/setup/native_messaging_host-Info.plist',
717 ['mac_breakpad==1', {
719 # A real .dSYM is needed for dump_syms to operate on.
724 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
726 '<(PRODUCT_DIR)/crash_inspector',
727 '<(PRODUCT_DIR)/crash_report_sender.app'
732 '../breakpad/breakpad.gyp:dump_syms',
736 'postbuild_name': 'Dump Symbols',
738 'dump_product_syms_path':
739 'scripts/mac/dump_product_syms',
742 '<(dump_product_syms_path)',
745 }, # end of postbuild 'dump_symbols'
746 ], # end of 'postbuilds'
747 }], # mac_breakpad==1
751 }, # end of target 'remoting_me2me_native_messaging_host'
753 'target_name': 'remoting_it2me_native_messaging_host',
754 'type': 'executable',
755 'product_name': 'remote_assistance_host',
756 'variables': { 'enable_wexit_time_destructors': 1, },
758 '../base/base.gyp:base',
762 'remoting_it2me_host_static',
763 'remoting_native_messaging_base',
767 'VERSION=<(version_full)',
770 'host/it2me/it2me_native_messaging_host_entry_point.cc',
771 'host/it2me/it2me_native_messaging_host_main.cc',
772 'host/it2me/it2me_native_messaging_host_main.h',
777 # Always use GTK on Linux, even for Aura builds.
778 '../build/linux/system.gyp:gtk',
781 ['OS=="linux" and use_allocator!="none"', {
783 '../base/allocator/allocator.gyp:allocator',
789 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_ID@")',
792 'INFOPLIST_FILE': 'host/it2me/remote_assistance_host-Info.plist',
793 'INFOPLIST_PREPROCESS': 'YES',
794 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
796 'mac_bundle_resources': [
797 '<(PRODUCT_DIR)/icudtl.dat',
798 'host/it2me/remote_assistance_host-Info.plist',
799 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
801 # Localized strings for 'Info.plist'
802 '<!@pymod_do_main(remoting_localize --locale_output '
803 '"<(SHARED_INTERMEDIATE_DIR)/remoting/remote_assistance_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
804 '--print_only <(remoting_locales))',
806 'mac_bundle_resources!': [
807 'host/it2me/remote_assistance_host-Info.plist',
810 ['mac_breakpad==1', {
812 # A real .dSYM is needed for dump_syms to operate on.
817 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
819 '<(PRODUCT_DIR)/crash_inspector',
820 '<(PRODUCT_DIR)/crash_report_sender.app'
825 '../breakpad/breakpad.gyp:dump_syms',
829 'postbuild_name': 'Dump Symbols',
831 'dump_product_syms_path':
832 'scripts/mac/dump_product_syms',
835 '<(dump_product_syms_path)',
838 }, # end of postbuild 'dump_symbols'
839 ], # end of 'postbuilds'
840 }], # mac_breakpad==1
844 }, # end of target 'remoting_it2me_native_messaging_host'
845 ], # end of 'targets'
848 ], # end of 'conditions'