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