Use extensions_path.h instead of chrome_path.h from extension_icon_image_unittest.cc
[chromium-blink-merge.git] / remoting / remoting_host.gypi
blob3be04ea64828ae6e313aa0388efa6776e5004db8
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.
6   'includes': [
7     'remoting_host_linux.gypi',
8     'remoting_host_mac.gypi',
9     'remoting_host_win.gypi',
10   ],
12   'variables': {
13     'conditions': [
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,
17       }, {
18         'enable_remoting_host': 0,
19       }],
20     ],
21   },
23   'conditions': [
24     ['enable_remoting_host==1', {
25       'targets': [
26         {
27           'target_name': 'remoting_host',
28           'type': 'static_library',
29           'variables': {
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@")',
33           },
34           'dependencies': [
35             'remoting_base',
36             'remoting_protocol',
37             'remoting_resources',
38             '../base/base.gyp:base_i18n',
39             '../crypto/crypto.gyp:crypto',
40             '../google_apis/google_apis.gyp:google_apis',
41             '../ipc/ipc.gyp:ipc',
42             '../ui/events/events.gyp:dom4_keycode_converter',
43           ],
44           'defines': [
45             'HOST_BUNDLE_NAME="<(host_bundle_name)"',
46             'PREFPANE_BUNDLE_NAME="<(prefpane_bundle_name)"',
47             'VERSION=<(version_full)',
48           ],
49           'sources': [
50             'host/audio_capturer.cc',
51             'host/audio_capturer.h',
52             'host/audio_capturer_linux.cc',
53             'host/audio_capturer_linux.h',
54             'host/audio_capturer_mac.cc',
55             'host/audio_capturer_win.cc',
56             'host/audio_capturer_win.h',
57             'host/audio_scheduler.cc',
58             'host/audio_scheduler.h',
59             'host/audio_silence_detector.cc',
60             'host/audio_silence_detector.h',
61             'host/basic_desktop_environment.cc',
62             'host/basic_desktop_environment.h',
63             'host/branding.cc',
64             'host/branding.h',
65             'host/capture_scheduler.cc',
66             'host/capture_scheduler.h',
67             'host/chromium_port_allocator_factory.cc',
68             'host/chromium_port_allocator_factory.h',
69             'host/chromoting_host.cc',
70             'host/chromoting_host.h',
71             'host/chromoting_host_context.cc',
72             'host/chromoting_host_context.h',
73             'host/chromoting_messages.cc',
74             'host/chromoting_messages.h',
75             'host/chromoting_param_traits.cc',
76             'host/chromoting_param_traits.h',
77             'host/client_session.cc',
78             'host/client_session.h',
79             'host/client_session_control.h',
80             'host/clipboard.h',
81             'host/clipboard_mac.mm',
82             'host/clipboard_win.cc',
83             'host/clipboard_x11.cc',
84             'host/config_file_watcher.cc',
85             'host/config_file_watcher.h',
86             'host/config_watcher.h',
87             'host/constants_mac.cc',
88             'host/constants_mac.h',
89             'host/continue_window.cc',
90             'host/continue_window.h',
91             'host/continue_window_linux.cc',
92             'host/continue_window_mac.mm',
93             'host/continue_window_win.cc',
94             'host/daemon_process.cc',
95             'host/daemon_process.h',
96             'host/daemon_process_win.cc',
97             'host/desktop_environment.h',
98             'host/desktop_process.cc',
99             'host/desktop_process.h',
100             'host/desktop_resizer.h',
101             'host/desktop_resizer_linux.cc',
102             'host/desktop_session.cc',
103             'host/desktop_session.h',
104             'host/desktop_session_agent.cc',
105             'host/desktop_session_agent.h',
106             'host/desktop_session_win.cc',
107             'host/desktop_session_win.h',
108             'host/desktop_resizer_mac.cc',
109             'host/desktop_resizer_win.cc',
110             'host/desktop_session_connector.h',
111             'host/desktop_session_proxy.cc',
112             'host/desktop_session_proxy.h',
113             'host/desktop_shape_tracker.h',
114             'host/desktop_shape_tracker_mac.cc',
115             'host/desktop_shape_tracker_win.cc',
116             'host/desktop_shape_tracker_x11.cc',
117             'host/disconnect_window_linux.cc',
118             'host/disconnect_window_mac.h',
119             'host/disconnect_window_mac.mm',
120             'host/disconnect_window_win.cc',
121             'host/dns_blackhole_checker.cc',
122             'host/dns_blackhole_checker.h',
123             'host/gnubby_auth_handler.h',
124             'host/gnubby_auth_handler_posix.cc',
125             'host/gnubby_auth_handler_posix.h',
126             'host/gnubby_auth_handler_win.cc',
127             'host/gnubby_socket.cc',
128             'host/gnubby_socket.h',
129             'host/heartbeat_sender.cc',
130             'host/heartbeat_sender.h',
131             'host/host_change_notification_listener.cc',
132             'host/host_change_notification_listener.h',
133             'host/host_config.cc',
134             'host/host_config.h',
135             'host/host_event_logger.h',
136             'host/host_event_logger_posix.cc',
137             'host/host_event_logger_win.cc',
138             'host/host_exit_codes.cc',
139             'host/host_exit_codes.h',
140             'host/host_export.h',
141             'host/host_extension.h',
142             'host/host_extension_session.cc',
143             'host/host_extension_session.h',
144             'host/host_extension_session_manager.cc',
145             'host/host_extension_session_manager.h',
146             'host/host_secret.cc',
147             'host/host_secret.h',
148             'host/host_status_logger.cc',
149             'host/host_status_logger.h',
150             'host/host_status_monitor.h',
151             'host/host_status_observer.h',
152             'host/host_status_sender.cc',
153             'host/host_status_sender.h',
154             'host/host_window.h',
155             'host/host_window_proxy.cc',
156             'host/host_window_proxy.h',
157             'host/in_memory_host_config.cc',
158             'host/in_memory_host_config.h',
159             'host/input_injector.h',
160             'host/input_injector_linux.cc',
161             'host/input_injector_mac.cc',
162             'host/input_injector_win.cc',
163             'host/ipc_audio_capturer.cc',
164             'host/ipc_audio_capturer.h',
165             'host/ipc_constants.cc',
166             'host/ipc_constants.h',
167             'host/ipc_desktop_environment.cc',
168             'host/ipc_desktop_environment.h',
169             'host/ipc_host_event_logger.cc',
170             'host/ipc_host_event_logger.h',
171             'host/ipc_input_injector.cc',
172             'host/ipc_input_injector.h',
173             'host/ipc_mouse_cursor_monitor.cc',
174             'host/ipc_mouse_cursor_monitor.h',
175             'host/ipc_screen_controls.cc',
176             'host/ipc_screen_controls.h',
177             'host/ipc_util.h',
178             'host/ipc_util_posix.cc',
179             'host/ipc_util_win.cc',
180             'host/ipc_video_frame_capturer.cc',
181             'host/ipc_video_frame_capturer.h',
182             'host/it2me_desktop_environment.cc',
183             'host/it2me_desktop_environment.h',
184             'host/json_host_config.cc',
185             'host/json_host_config.h',
186             'host/linux/audio_pipe_reader.cc',
187             'host/linux/audio_pipe_reader.h',
188             'host/linux/unicode_to_keysym.cc',
189             'host/linux/unicode_to_keysym.h',
190             'host/linux/x11_util.cc',
191             'host/linux/x11_util.h',
192             'host/linux/x_server_clipboard.cc',
193             'host/linux/x_server_clipboard.h',
194             'host/local_input_monitor.h',
195             'host/local_input_monitor_linux.cc',
196             'host/local_input_monitor_mac.mm',
197             'host/local_input_monitor_win.cc',
198             'host/logging.h',
199             'host/logging_posix.cc',
200             'host/logging_win.cc',
201             'host/me2me_desktop_environment.cc',
202             'host/me2me_desktop_environment.h',
203             'host/mouse_clamping_filter.cc',
204             'host/mouse_clamping_filter.h',
205             'host/oauth_token_getter.cc',
206             'host/oauth_token_getter.h',
207             'host/pairing_registry_delegate.cc',
208             'host/pairing_registry_delegate.h',
209             'host/pairing_registry_delegate_linux.cc',
210             'host/pairing_registry_delegate_linux.h',
211             'host/pairing_registry_delegate_mac.cc',
212             'host/pairing_registry_delegate_win.cc',
213             'host/pairing_registry_delegate_win.h',
214             'host/pam_authorization_factory_posix.cc',
215             'host/pam_authorization_factory_posix.h',
216             'host/pin_hash.cc',
217             'host/pin_hash.h',
218             'host/policy_hack/policy_watcher.cc',
219             'host/policy_hack/policy_watcher.h',
220             'host/policy_hack/policy_watcher_linux.cc',
221             'host/policy_hack/policy_watcher_mac.mm',
222             'host/policy_hack/policy_watcher_win.cc',
223             'host/register_support_host_request.cc',
224             'host/register_support_host_request.h',
225             'host/remote_input_filter.cc',
226             'host/remote_input_filter.h',
227             'host/remoting_me2me_host.cc',
228             'host/resizing_host_observer.cc',
229             'host/resizing_host_observer.h',
230             'host/sas_injector.h',
231             'host/sas_injector_win.cc',
232             'host/screen_controls.h',
233             'host/screen_resolution.cc',
234             'host/screen_resolution.h',
235             'host/server_log_entry_host.cc',
236             'host/server_log_entry_host.h',
237             'host/session_manager_factory.cc',
238             'host/session_manager_factory.h',
239             'host/shaped_screen_capturer.cc',
240             'host/shaped_screen_capturer.h',
241             'host/signaling_connector.cc',
242             'host/signaling_connector.h',
243             'host/token_validator_base.cc',
244             'host/token_validator_base.h',
245             'host/token_validator_factory_impl.cc',
246             'host/token_validator_factory_impl.h',
247             'host/usage_stats_consent.h',
248             'host/usage_stats_consent_mac.cc',
249             'host/usage_stats_consent_win.cc',
250             'host/username.cc',
251             'host/username.h',
252             'host/video_frame_recorder.cc',
253             'host/video_frame_recorder.h',
254             'host/video_frame_recorder_host_extension.cc',
255             'host/video_frame_recorder_host_extension.h',
256             'host/video_scheduler.cc',
257             'host/video_scheduler.h',
258             'host/win/com_imported_mstscax.tlh',
259             'host/win/com_security.cc',
260             'host/win/com_security.h',
261             'host/win/launch_process_with_token.cc',
262             'host/win/launch_process_with_token.h',
263             'host/win/omaha.cc',
264             'host/win/omaha.h',
265             'host/win/rdp_client.cc',
266             'host/win/rdp_client.h',
267             'host/win/rdp_client_window.cc',
268             'host/win/rdp_client_window.h',
269             'host/win/security_descriptor.cc',
270             'host/win/security_descriptor.h',
271             'host/win/session_desktop_environment.cc',
272             'host/win/session_desktop_environment.h',
273             'host/win/session_input_injector.cc',
274             'host/win/session_input_injector.h',
275             'host/win/window_station_and_desktop.cc',
276             'host/win/window_station_and_desktop.h',
277             'host/win/wts_terminal_monitor.cc',
278             'host/win/wts_terminal_monitor.h',
279             'host/win/wts_terminal_observer.h',
280           ],
281           'conditions': [
282             ['OS=="linux"', {
283               'dependencies': [
284                 # Always use GTK on Linux, even for Aura builds.
285                 '../build/linux/system.gyp:gtk',
286                 '../build/linux/system.gyp:x11',
287                 '../build/linux/system.gyp:xext',
288                 '../build/linux/system.gyp:xfixes',
289                 '../build/linux/system.gyp:xi',
290                 '../build/linux/system.gyp:xrandr',
291                 '../build/linux/system.gyp:xtst',
292               ],
293               'link_settings': {
294                 'libraries': [
295                   '-lpam',
296                 ],
297               },
298             }],
299             ['OS=="mac"', {
300               'dependencies': [
301                 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
302               ],
303               'link_settings': {
304                 'libraries': [
305                   '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
306                   'libpam.a',
307                ],
308               },
309             }],
310             ['OS=="win"', {
311               'defines': [
312                 '_ATL_NO_EXCEPTIONS',
313                 'ISOLATION_AWARE_ENABLED=1',
314               ],
315               'dependencies': [
316                 '../sandbox/sandbox.gyp:sandbox',
317                 'remoting_host_messages',
318                 'remoting_lib_idl',
319               ],
320               'msvs_settings': {
321                 'VCCLCompilerTool': {
322                   # /MP conflicts with #import directive so we limit the number
323                   # of processes to spawn to 1.
324                   'AdditionalOptions': ['/MP1'],
325                 },
326               },
327               'variables': {
328                 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/host',
329               },
330               'sources': [
331                 '<(output_dir)/remoting_host_messages.mc',
332               ],
333               'include_dirs': [
334                 '<(output_dir)',
335               ],
336               'direct_dependent_settings': {
337                 'include_dirs': [
338                   '<(output_dir)',
339                 ],
340               },
341               'rules': [{
342                 # Rule to run the message compiler.
343                 'rule_name': 'message_compiler',
344                 'extension': 'mc',
345                 'outputs': [
346                   '<(output_dir)/<(RULE_INPUT_ROOT).h',
347                   '<(output_dir)/<(RULE_INPUT_ROOT).rc',
348                 ],
349                 'action': [
350                   'mc.exe',
351                   '-h', '<(output_dir)',
352                   '-r', '<(output_dir)/.',
353                   '-u',
354                   '<(RULE_INPUT_PATH)',
355                 ],
356                 'process_outputs_as_sources': 1,
357                 'message': 'Running message compiler on <(RULE_INPUT_PATH)',
358               }],
359             }],
360             ['enable_webrtc==1', {
361               'dependencies': [
362                 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
363                 '../third_party/libjingle/libjingle.gyp:libpeerconnection',
364               ],
365             }],
366           ],
367         },  # end of target 'remoting_host'
369         {
370           'target_name': 'remoting_native_messaging_base',
371           'type': 'static_library',
372           'variables': { 'enable_wexit_time_destructors': 1, },
373           'dependencies': [
374             '../base/base.gyp:base',
375           ],
376           'sources': [
377             'host/native_messaging/native_messaging_channel.cc',
378             'host/native_messaging/native_messaging_channel.h',
379             'host/native_messaging/native_messaging_reader.cc',
380             'host/native_messaging/native_messaging_reader.h',
381             'host/native_messaging/native_messaging_writer.cc',
382             'host/native_messaging/native_messaging_writer.h',
383           ],
384         },  # end of target 'remoting_native_messaging_base'
386         {
387           'target_name': 'remoting_me2me_host_static',
388           'type': 'static_library',
389           'variables': { 'enable_wexit_time_destructors': 1, },
390           'dependencies': [
391             '../base/base.gyp:base',
392             '../base/base.gyp:base_i18n',
393             '../net/net.gyp:net',
394             '../third_party/webrtc/modules/modules.gyp:desktop_capture',
395             'remoting_base',
396             'remoting_breakpad',
397             'remoting_host',
398             'remoting_protocol',
399           ],
400           'defines': [
401             'VERSION=<(version_full)',
402           ],
403           'sources': [
404             'host/curtain_mode.h',
405             'host/curtain_mode_linux.cc',
406             'host/curtain_mode_mac.cc',
407             'host/curtain_mode_win.cc',
408             'host/posix/signal_handler.cc',
409             'host/posix/signal_handler.h',
410           ],
411           'conditions': [
412             ['os_posix != 1', {
413               'sources/': [
414                 ['exclude', '^host/posix/'],
415               ],
416             }],
417           ],  # end of 'conditions'
418         },  # end of target 'remoting_me2me_host_static'
420         {
421           'target_name': 'remoting_host_setup_base',
422           'type': 'static_library',
423           'variables': { 'enable_wexit_time_destructors': 1, },
424           'dependencies': [
425             '../base/base.gyp:base',
426             '../google_apis/google_apis.gyp:google_apis',
427             'remoting_host',
428           ],
429           'defines': [
430             'VERSION=<(version_full)',
431           ],
432           'sources': [
433             'host/setup/daemon_controller.cc',
434             'host/setup/daemon_controller.h',
435             'host/setup/daemon_controller_delegate_linux.cc',
436             'host/setup/daemon_controller_delegate_linux.h',
437             'host/setup/daemon_controller_delegate_mac.h',
438             'host/setup/daemon_controller_delegate_mac.mm',
439             'host/setup/daemon_controller_delegate_win.cc',
440             'host/setup/daemon_controller_delegate_win.h',
441             'host/setup/daemon_installer_win.cc',
442             'host/setup/daemon_installer_win.h',
443             'host/setup/me2me_native_messaging_host.cc',
444             'host/setup/me2me_native_messaging_host.h',
445             'host/setup/oauth_client.cc',
446             'host/setup/oauth_client.h',
447             'host/setup/oauth_helper.cc',
448             'host/setup/oauth_helper.h',
449             'host/setup/pin_validator.cc',
450             'host/setup/pin_validator.h',
451             'host/setup/service_client.cc',
452             'host/setup/service_client.h',
453             'host/setup/test_util.cc',
454             'host/setup/test_util.h',
455             'host/setup/win/auth_code_getter.cc',
456             'host/setup/win/auth_code_getter.h',
457           ],
458           'conditions': [
459             ['OS=="win"', {
460               'dependencies': [
461                 '../google_update/google_update.gyp:google_update',
462                 'remoting_lib_idl',
463               ],
464               # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
465               'msvs_disabled_warnings': [4267, ],
466             }],
467           ],
468         },  # end of target 'remoting_host_setup_base'
470         {
471           'target_name': 'remoting_it2me_host_static',
472           'type': 'static_library',
473           'variables': { 'enable_wexit_time_destructors': 1, },
474           'dependencies': [
475             '../base/base.gyp:base_i18n',
476             '../net/net.gyp:net',
477             'remoting_base',
478             'remoting_host',
479             'remoting_infoplist_strings',
480             'remoting_protocol',
481             'remoting_resources',
482           ],
483           'defines': [
484             'VERSION=<(version_full)',
485           ],
486           'sources': [
487             'host/it2me/it2me_host.cc',
488             'host/it2me/it2me_host.h',
489             'host/it2me/it2me_native_messaging_host.cc',
490             'host/it2me/it2me_native_messaging_host.h',
491           ],
492         },  # end of target 'remoting_it2me_host_static'
494         # Generates native messaging manifest files.
495         {
496           'target_name': 'remoting_native_messaging_manifests',
497           'type': 'none',
498           'conditions': [
499             [ 'OS == "win"', {
500               'variables': {
501                 'me2me_host_path': 'remoting_native_messaging_host.exe',
502                 'it2me_host_path': 'remote_assistance_host.exe',
503               },
504             }],
505             [ 'OS == "mac"', {
506               'variables': {
507                 'me2me_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_NAME@")',
508                 'native_messaging_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_NATIVE_MESSAGING_HOST_BUNDLE_NAME@")',
509                 'remote_assistance_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_NAME@")',
510                 'me2me_host_path':
511                     '/Library/PrivilegedHelperTools/<(me2me_host_bundle_name)/Contents/MacOS/<(native_messaging_host_bundle_name)/Contents/MacOS/native_messaging_host',
512                 'it2me_host_path':
513                     '/Library/PrivilegedHelperTools/<(me2me_host_bundle_name)/Contents/MacOS/<(remote_assistance_host_bundle_name)/Contents/MacOS/remote_assistance_host',
514               },
515             }],
516             [ 'OS != "mac" and OS != "win"', {
517               'variables': {
518                 'me2me_host_path':
519                     '/opt/google/chrome-remote-desktop/native-messaging-host',
520                 'it2me_host_path':
521                     '/opt/google/chrome-remote-desktop/remote-assistance-host',
522               },
523             }],
524           ],  # conditions
525           'sources': [
526             'host/it2me/com.google.chrome.remote_assistance.json.jinja2',
527             'host/setup/com.google.chrome.remote_desktop.json.jinja2',
528           ],
529           'rules': [{
530             'rule_name': 'generate_manifest',
531             'extension': 'jinja2',
532             'inputs': [
533               '<(remoting_localize_path)',
534               '<(branding_path)',
535             ],
536             'outputs': [
537               '<(PRODUCT_DIR)/remoting/<(RULE_INPUT_ROOT)',
538             ],
539             'action': [
540               'python', '<(remoting_localize_path)',
541               '--define', 'ME2ME_HOST_PATH=<(me2me_host_path)',
542               '--define', 'IT2ME_HOST_PATH=<(it2me_host_path)',
543               '--variables', '<(branding_path)',
544               '--template', '<(RULE_INPUT_PATH)',
545               '--locale_output', '<@(_outputs)',
546               'en',
547             ],
548           }],
549         },  # end of target 'remoting_native_messaging_manifests'
551         {
552           'target_name': 'remoting_infoplist_strings',
553           'type': 'none',
554           'dependencies': [
555             'remoting_resources',
556           ],
557           'sources': [
558             'host/remoting_me2me_host-InfoPlist.strings.jinja2',
559             'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
560             'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2',
561             'host/setup/native_messaging_host-InfoPlist.strings.jinja2',
562             'host/it2me/remote_assistance_host-InfoPlist.strings.jinja2',
563           ],
564           'rules': [{
565             'rule_name': 'generate_strings',
566             'extension': 'jinja2',
567             'inputs': [
568               '<(remoting_localize_path)',
569             ],
570             'outputs': [
571               '<!@pymod_do_main(remoting_localize --locale_output '
572                   '"<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suffix}.lproj/InfoPlist.strings" '
573                   '--print_only <(remoting_locales))',
574             ],
575             'action': [
576               'python', '<(remoting_localize_path)',
577               '--locale_dir', '<(webapp_locale_dir)',
578               '--template', '<(RULE_INPUT_PATH)',
579               '--locale_output',
580               '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suffix}.lproj/InfoPlist.strings',
581               '<@(remoting_locales)',
582             ]},
583           ],
584         },  # end of target 'remoting_infoplist_strings'
585       ],  # end of 'targets'
586     }],  # 'enable_remoting_host==1'
588     ['OS!="win" and enable_remoting_host==1', {
589       'targets': [
590         {
591           'target_name': 'remoting_me2me_host',
592           'type': 'executable',
593           'variables': { 'enable_wexit_time_destructors': 1, },
594           'dependencies': [
595             '../base/base.gyp:base',
596             '../base/base.gyp:base_i18n',
597             '<(icu_gyp_path):icudata',
598             '../net/net.gyp:net',
599             '../third_party/webrtc/modules/modules.gyp:desktop_capture',
600             'remoting_base',
601             'remoting_breakpad',
602             'remoting_host',
603             'remoting_infoplist_strings',
604             'remoting_me2me_host_static',
605             'remoting_protocol',
606           ],
607           'defines': [
608             'VERSION=<(version_full)',
609           ],
610           'sources': [
611             'host/host_main.cc',
612             'host/host_main.h',
613           ],
614           'conditions': [
615             ['OS=="mac"', {
616               'mac_bundle': 1,
617               'variables': {
618                  'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_ID@")',
619               },
620               'xcode_settings': {
621                 'INFOPLIST_FILE': 'host/remoting_me2me_host-Info.plist',
622                 'INFOPLIST_PREPROCESS': 'YES',
623                 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
624               },
625               'mac_bundle_resources': [
626                 '<(PRODUCT_DIR)/icudtl.dat',
627                 'host/disconnect_window.xib',
628                 'host/remoting_me2me_host.icns',
629                 'host/remoting_me2me_host-Info.plist',
630                 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
632                 # Localized strings for 'Info.plist'
633                 '<!@pymod_do_main(remoting_localize --locale_output '
634                     '"<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_me2me_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
635                     '--print_only <(remoting_locales))',
636               ],
637               'mac_bundle_resources!': [
638                 'host/remoting_me2me_host-Info.plist',
639               ],
640               'conditions': [
641                 ['mac_breakpad==1', {
642                   'variables': {
643                     # A real .dSYM is needed for dump_syms to operate on.
644                     'mac_real_dsym': 1,
645                   },
646                   'copies': [
647                     {
648                       'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
649                       'files': [
650                         '<(PRODUCT_DIR)/crash_inspector',
651                         '<(PRODUCT_DIR)/crash_report_sender.app'
652                       ],
653                     },
654                   ],
655                   'dependencies': [
656                     '../breakpad/breakpad.gyp:dump_syms',
657                   ],
658                   'postbuilds': [
659                     {
660                       'postbuild_name': 'Dump Symbols',
661                       'variables': {
662                         'dump_product_syms_path':
663                             'scripts/mac/dump_product_syms',
664                       },
665                       'action': [
666                         '<(dump_product_syms_path)',
667                         '<(version_full)',
668                       ],
669                     },  # end of postbuild 'dump_symbols'
670                   ],  # end of 'postbuilds'
671                 }],  # mac_breakpad==1
672               ],  # conditions
673             }],  # OS=mac
674             ['OS=="linux" and use_allocator!="none"', {
675               'dependencies': [
676                 '../base/allocator/allocator.gyp:allocator',
677               ],
678             }],  # OS=linux
679           ],  # end of 'conditions'
680         },  # end of target 'remoting_me2me_host'
681         {
682           'target_name': 'remoting_me2me_native_messaging_host',
683           'type': 'executable',
684           'product_name': 'native_messaging_host',
685           'variables': { 'enable_wexit_time_destructors': 1, },
686           'dependencies': [
687             '../base/base.gyp:base',
688             'remoting_breakpad',
689             'remoting_host',
690             'remoting_host_setup_base',
691             'remoting_infoplist_strings',
692             'remoting_native_messaging_base',
693           ],
694           'defines': [
695             'VERSION=<(version_full)',
696           ],
697           'sources': [
698             'host/setup/me2me_native_messaging_host_entry_point.cc',
699             'host/setup/me2me_native_messaging_host_main.cc',
700             'host/setup/me2me_native_messaging_host_main.h',
701           ],
702           'conditions': [
703             ['OS=="linux" and use_allocator!="none"', {
704               'dependencies': [
705                 '../base/allocator/allocator.gyp:allocator',
706               ],
707             }],
708             ['OS=="mac"', {
709               'mac_bundle': 1,
710               'variables': {
711                  'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_NATIVE_MESSAGING_HOST_BUNDLE_ID@")',
712               },
713               'xcode_settings': {
714                 'INFOPLIST_FILE': 'host/setup/native_messaging_host-Info.plist',
715                 'INFOPLIST_PREPROCESS': 'YES',
716                 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
717               },
718               'mac_bundle_resources': [
719                 'host/setup/native_messaging_host-Info.plist',
720                 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
722                 # Localized strings for 'Info.plist'
723                 '<!@pymod_do_main(remoting_localize --locale_output '
724                     '"<(SHARED_INTERMEDIATE_DIR)/remoting/native_messaging_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
725                     '--print_only <(remoting_locales))',
726               ],
727               'mac_bundle_resources!': [
728                 'host/setup/native_messaging_host-Info.plist',
729               ],
730               'conditions': [
731                 ['mac_breakpad==1', {
732                   'variables': {
733                     # A real .dSYM is needed for dump_syms to operate on.
734                     'mac_real_dsym': 1,
735                   },
736                   'copies': [
737                     {
738                       'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
739                       'files': [
740                         '<(PRODUCT_DIR)/crash_inspector',
741                         '<(PRODUCT_DIR)/crash_report_sender.app'
742                       ],
743                     },
744                   ],
745                   'dependencies': [
746                     '../breakpad/breakpad.gyp:dump_syms',
747                   ],
748                   'postbuilds': [
749                     {
750                       'postbuild_name': 'Dump Symbols',
751                       'variables': {
752                         'dump_product_syms_path':
753                             'scripts/mac/dump_product_syms',
754                       },
755                       'action': [
756                         '<(dump_product_syms_path)',
757                         '<(version_full)',
758                       ],
759                     },  # end of postbuild 'dump_symbols'
760                   ],  # end of 'postbuilds'
761                 }],  # mac_breakpad==1
762               ],  # conditions
763             }],  # OS=mac
764           ],
765         },  # end of target 'remoting_me2me_native_messaging_host'
766         {
767           'target_name': 'remoting_it2me_native_messaging_host',
768           'type': 'executable',
769           'product_name': 'remote_assistance_host',
770           'variables': { 'enable_wexit_time_destructors': 1, },
771           'dependencies': [
772             '../base/base.gyp:base',
773             'remoting_base',
774             'remoting_breakpad',
775             'remoting_host',
776             'remoting_it2me_host_static',
777             'remoting_native_messaging_base',
778             'remoting_protocol',
779           ],
780           'defines': [
781             'VERSION=<(version_full)',
782           ],
783           'sources': [
784             'host/it2me/it2me_native_messaging_host_entry_point.cc',
785             'host/it2me/it2me_native_messaging_host_main.cc',
786             'host/it2me/it2me_native_messaging_host_main.h',
787           ],
788           'conditions': [
789             ['OS=="linux"', {
790               'dependencies': [
791                 # Always use GTK on Linux, even for Aura builds.
792                 '../build/linux/system.gyp:gtk',
793               ],
794             }],
795             ['OS=="linux" and use_allocator!="none"', {
796               'dependencies': [
797                 '../base/allocator/allocator.gyp:allocator',
798               ],
799             }],
800             ['OS=="mac"', {
801               'mac_bundle': 1,
802               'variables': {
803                  'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_ID@")',
804               },
805               'xcode_settings': {
806                 'INFOPLIST_FILE': 'host/it2me/remote_assistance_host-Info.plist',
807                 'INFOPLIST_PREPROCESS': 'YES',
808                 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
809               },
810               'mac_bundle_resources': [
811                 '<(PRODUCT_DIR)/icudtl.dat',
812                 'host/disconnect_window.xib',
813                 'host/it2me/remote_assistance_host-Info.plist',
814                 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
816                 # Localized strings for 'Info.plist'
817                 '<!@pymod_do_main(remoting_localize --locale_output '
818                     '"<(SHARED_INTERMEDIATE_DIR)/remoting/remote_assistance_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
819                     '--print_only <(remoting_locales))',
820               ],
821               'mac_bundle_resources!': [
822                 'host/it2me/remote_assistance_host-Info.plist',
823               ],
824               'conditions': [
825                 ['mac_breakpad==1', {
826                   'variables': {
827                     # A real .dSYM is needed for dump_syms to operate on.
828                     'mac_real_dsym': 1,
829                   },
830                   'copies': [
831                     {
832                       'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
833                       'files': [
834                         '<(PRODUCT_DIR)/crash_inspector',
835                         '<(PRODUCT_DIR)/crash_report_sender.app'
836                       ],
837                     },
838                   ],
839                   'dependencies': [
840                     '../breakpad/breakpad.gyp:dump_syms',
841                   ],
842                   'postbuilds': [
843                     {
844                       'postbuild_name': 'Dump Symbols',
845                       'variables': {
846                         'dump_product_syms_path':
847                             'scripts/mac/dump_product_syms',
848                       },
849                       'action': [
850                         '<(dump_product_syms_path)',
851                         '<(version_full)',
852                       ],
853                     },  # end of postbuild 'dump_symbols'
854                   ],  # end of 'postbuilds'
855                 }],  # mac_breakpad==1
856               ],  # conditions
857             }],  # OS=mac
858           ],
859         },  # end of target 'remoting_it2me_native_messaging_host'
860       ],  # end of 'targets'
861     }],  # OS!="win"
863   ],  # end of 'conditions'