Revert "Compile quic_server on MacOS"
[chromium-blink-merge.git] / remoting / remoting_host.gypi
blob1c6d44adfdb5f6d4299571aab6b25b86a88c381b
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_enable.gypi',
8   ],
10   'conditions': [
11     ['OS=="mac"', {
12       'includes': [
13         'remoting_host_mac.gypi',
14       ],
15     }],
16     ['OS=="win"', {
17       'includes': [
18         'remoting_host_win.gypi',
19       ],
20     }],
21     ['OS=="linux"', {
22       'includes': [
23         'remoting_host_linux.gypi',
24       ],
25     }],
27     ['enable_remoting_host==1', {
28       'targets': [
29         {
30           # GN version: //remoting/host
31           'target_name': 'remoting_host',
32           'type': 'static_library',
33           'variables': {
34             'enable_wexit_time_destructors': 1,
35             'host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_NAME@")',
36             'prefpane_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_PREFPANE_BUNDLE_NAME@")',
37           },
38           'dependencies': [
39             'remoting_base',
40             'remoting_protocol',
41             'remoting_resources',
42             '../base/base.gyp:base_i18n',
43             '../components/components.gyp:policy',
44             '../components/components.gyp:policy_component_common',
45             '../crypto/crypto.gyp:crypto',
46             '../google_apis/google_apis.gyp:google_apis',
47             '../ipc/ipc.gyp:ipc',
48             '../ui/events/events.gyp:dom4_keycode_converter',
49           ],
50           'defines': [
51             'HOST_BUNDLE_NAME="<(host_bundle_name)"',
52             'PREFPANE_BUNDLE_NAME="<(prefpane_bundle_name)"',
53             'VERSION=<(version_full)',
54           ],
55           'sources': [
56             '<@(remoting_host_sources)',
57           ],
58           'conditions': [
59             ['OS=="linux"', {
60               'conditions': [
61                 ['use_x11==1', {
62                   'dependencies': [
63                     '../build/linux/system.gyp:x11',
64                     '../build/linux/system.gyp:xext',
65                     '../build/linux/system.gyp:xfixes',
66                     '../build/linux/system.gyp:xi',
67                     '../build/linux/system.gyp:xrandr',
68                     '../build/linux/system.gyp:xtst',
69                   ],
70                 }],
71                 ['chromeos==0 and use_ozone==0', {
72                   'dependencies': [
73                     # use GTK on Linux, even for Aura builds.
74                     '../build/linux/system.gyp:gtk',
75                   ],
76                 }]
77               ],
78             }],
79             ['chromeos==1', {
80               'dependencies' : [
81                 '../cc/cc.gyp:cc',
82                 '../ppapi/ppapi_internal.gyp:ppapi_host',
83                 '../skia/skia.gyp:skia',
84                 '../ui/aura/aura.gyp:aura',
85                 '../ui/compositor/compositor.gyp:compositor',
86                 '../ui/events/events.gyp:events',
87                 '../ui/events/platform/events_platform.gyp:events_platform',
88                 '../ui/views/views.gyp:views',
89               ],
90               'include_dirs': [
91                 '../third_party/skia/include/utils',
92               ],
93               'sources!' : [
94                 'host/clipboard_x11.cc',
95                 'host/continue_window_linux.cc',
96                 'host/disconnect_window_linux.cc',
97                 'host/linux/x_server_clipboard.cc',
98                 'host/linux/x_server_clipboard.h',
99                 'host/local_input_monitor_x11.cc',
100               ],
101               'conditions': [
102                 ['use_ash==1', {
103                   'dependencies': [
104                     '../ash/ash.gyp:ash',
105                   ],
106                 }],
107                 ['use_ozone==0', {
108                   'sources!': [
109                     'host/input_injector_chromeos.cc',
110                     'host/input_injector_chromeos.h',
111                   ],
112                 }, {  # use_ozone==1
113                   'dependencies' : [
114                     '../ui/ozone/ozone.gyp:ozone',
115                   ]
116                 }],
117               ],
118             }],
119             ['OS=="mac"', {
120               'dependencies': [
121                 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
122               ],
123               'variables': {
124                 # Include internal_mac-inl.h only if it exists.
125                 'use_remoting_macosx_internal%':
126                   '<!(python -c "import os; print 1 if os.path.exists(\'tools/internal/internal_mac-inl.h\') else 0")'
127               },
128               'conditions': [
129                 ['use_remoting_macosx_internal==1', {
130                   'sources': [
131                     'internal/internal_mac-inl.h'
132                   ],
133                   'defines': [
134                     'USE_REMOTING_MACOSX_INTERNAL'
135                   ]
136                 }]
137               ],
138               'link_settings': {
139                 'libraries': [
140                   '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
141                ],
142               },
143             }],
144             ['OS=="win"', {
145               'defines': [
146                 '_ATL_NO_EXCEPTIONS',
147                 'ISOLATION_AWARE_ENABLED=1',
148               ],
149               'dependencies': [
150                 '../sandbox/sandbox.gyp:sandbox',
151                 'remoting_host_messages',
152                 'remoting_lib_idl',
153               ],
154               'msvs_settings': {
155                 'VCCLCompilerTool': {
156                   # /MP conflicts with #import directive so we limit the number
157                   # of processes to spawn to 1.
158                   'AdditionalOptions': ['/MP1'],
159                 },
160               },
161               'variables': {
162                 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/host',
163               },
164               'sources': [
165                 '<(output_dir)/remoting_host_messages.mc',
166               ],
167               'include_dirs': [
168                 '<(output_dir)',
169               ],
170               'direct_dependent_settings': {
171                 'include_dirs': [
172                   '<(output_dir)',
173                 ],
174               },
175               'rules': [{
176                 # Rule to run the message compiler.
177                 'rule_name': 'message_compiler',
178                 'extension': 'mc',
179                 'outputs': [
180                   '<(output_dir)/<(RULE_INPUT_ROOT).h',
181                   '<(output_dir)/<(RULE_INPUT_ROOT).rc',
182                 ],
183                 'action': [
184                   'mc.exe',
185                   '-h', '<(output_dir)',
186                   '-r', '<(output_dir)/.',
187                   '-u',
188                   '<(RULE_INPUT_PATH)',
189                 ],
190                 'process_outputs_as_sources': 1,
191                 'message': 'Running message compiler on <(RULE_INPUT_PATH)',
192               }],
193             }],
194             ['enable_webrtc==1', {
195               'dependencies': [
196                 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
197                 '../third_party/libjingle/libjingle.gyp:libpeerconnection',
198               ],
199               'sources': [
200                 '<@(remoting_cast_sources)',
201               ],
202             }],
203           ],
204         },  # end of target 'remoting_host'
206         {
207           # GN version: //remoting/host/native_messaging
208           'target_name': 'remoting_native_messaging_base',
209           'type': 'static_library',
210           'variables': { 'enable_wexit_time_destructors': 1, },
211           'dependencies': [
212             '../base/base.gyp:base',
213           ],
214           'sources': [
215             '<@(remoting_host_native_messaging_sources)',
216           ],
217         },  # end of target 'remoting_native_messaging_base'
219         {
220           # GN version: //remoting/host/setup
221           'target_name': 'remoting_host_setup_base',
222           'type': 'static_library',
223           'variables': { 'enable_wexit_time_destructors': 1, },
224           'dependencies': [
225             '../base/base.gyp:base',
226             '../google_apis/google_apis.gyp:google_apis',
227             'remoting_host',
228           ],
229           'defines': [
230             'VERSION=<(version_full)',
231           ],
232           'sources': [
233             '<@(remoting_host_setup_sources)',
234           ],
235           'conditions': [
236             ['OS=="win"', {
237               'dependencies': [
238                 '../google_update/google_update.gyp:google_update',
239                 'remoting_lib_idl',
240               ],
241               # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
242               'msvs_disabled_warnings': [4267, ],
243             }],
244           ],
245         },  # end of target 'remoting_host_setup_base'
247         # Generates native messaging manifest files.
248         {
249           'target_name': 'remoting_native_messaging_manifests',
250           'type': 'none',
251           'conditions': [
252             [ 'OS == "win"', {
253               'variables': {
254                 'me2me_host_path': 'remoting_native_messaging_host.exe',
255                 'it2me_host_path': 'remote_assistance_host.exe',
256               },
257             }],
258             [ 'OS == "mac"', {
259               'variables': {
260                 'me2me_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_NAME@")',
261                 'native_messaging_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_NATIVE_MESSAGING_HOST_BUNDLE_NAME@")',
262                 'remote_assistance_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_NAME@")',
263                 'me2me_host_path':
264                     '/Library/PrivilegedHelperTools/<(me2me_host_bundle_name)/Contents/MacOS/<(native_messaging_host_bundle_name)/Contents/MacOS/native_messaging_host',
265                 'it2me_host_path':
266                     '/Library/PrivilegedHelperTools/<(me2me_host_bundle_name)/Contents/MacOS/<(remote_assistance_host_bundle_name)/Contents/MacOS/remote_assistance_host',
267               },
268             }],
269             [ 'OS != "mac" and OS != "win"', {
270               'variables': {
271                 'me2me_host_path':
272                     '/opt/google/chrome-remote-desktop/native-messaging-host',
273                 'it2me_host_path':
274                     '/opt/google/chrome-remote-desktop/remote-assistance-host',
275               },
276             }],
277           ],  # conditions
278           'sources': [
279             'host/it2me/com.google.chrome.remote_assistance.json.jinja2',
280             'host/setup/com.google.chrome.remote_desktop.json.jinja2',
281           ],
282           'rules': [{
283             'rule_name': 'generate_manifest',
284             'extension': 'jinja2',
285             'inputs': [
286               '<(remoting_localize_path)',
287               '<(branding_path)',
288             ],
289             'outputs': [
290               '<(PRODUCT_DIR)/remoting/<(RULE_INPUT_ROOT)',
291             ],
292             'action': [
293               'python', '<(remoting_localize_path)',
294               '--define', 'ME2ME_HOST_PATH=<(me2me_host_path)',
295               '--define', 'IT2ME_HOST_PATH=<(it2me_host_path)',
296               '--variables', '<(branding_path)',
297               '--template', '<(RULE_INPUT_PATH)',
298               '--locale_output', '<@(_outputs)',
299               'en',
300             ],
301           }],
302         },  # end of target 'remoting_native_messaging_manifests'
303         {
304           'target_name': 'remoting_start_host',
305           'type': 'executable',
306           'dependencies': [
307             'remoting_host_setup_base',
308           ],
309           'sources': [
310             'host/setup/host_starter.cc',
311             'host/setup/host_starter.h',
312             'host/setup/start_host.cc',
313           ],
314           'conditions': [
315             ['OS=="linux" and use_allocator!="none"', {
316               'dependencies': [
317                 '../base/allocator/allocator.gyp:allocator',
318               ],
319             }],
320           ],
321         },  # end of target 'remoting_start_host'
322         {
323           'target_name': 'remoting_infoplist_strings',
324           'type': 'none',
325           'dependencies': [
326             'remoting_resources',
327           ],
328           'sources': [
329             'host/remoting_me2me_host-InfoPlist.strings.jinja2',
330             'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
331             'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2',
332             'host/setup/native_messaging_host-InfoPlist.strings.jinja2',
333             'host/it2me/remote_assistance_host-InfoPlist.strings.jinja2',
334           ],
335           'rules': [{
336             'rule_name': 'generate_strings',
337             'extension': 'jinja2',
338             'inputs': [
339               '<(remoting_localize_path)',
340             ],
341             'outputs': [
342               '<!@pymod_do_main(remoting_localize --locale_output '
343                   '"<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suffix}.lproj/InfoPlist.strings" '
344                   '--print_only <(remoting_locales))',
345             ],
346             'action': [
347               'python', '<(remoting_localize_path)',
348               '--locale_dir', '<(webapp_locale_dir)',
349               '--template', '<(RULE_INPUT_PATH)',
350               '--locale_output',
351               '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suffix}.lproj/InfoPlist.strings',
352               '<@(remoting_locales)',
353             ]},
354           ],
355         },  # end of target 'remoting_infoplist_strings'
356         {
357           # GN version: //remoting/host/it2me:common
358           'target_name': 'remoting_it2me_host_static',
359           'type': 'static_library',
360           'variables': { 'enable_wexit_time_destructors': 1, },
361           'dependencies': [
362             '../base/base.gyp:base_i18n',
363             '../components/components.gyp:policy',
364             '../net/net.gyp:net',
365             'remoting_base',
366             'remoting_host',
367             'remoting_infoplist_strings',
368             'remoting_protocol',
369             'remoting_resources',
370           ],
371           'defines': [
372             'VERSION=<(version_full)',
373           ],
374           'sources': [
375             '<@(remoting_it2me_host_static_sources)',
376           ],
377         },  # end of target 'remoting_it2me_host_static'
378       ],  # end of 'targets'
379     }],  # 'enable_remoting_host==1'
381     ['enable_me2me_host==1', {
382       'targets': [
383         {
384           'target_name': 'remoting_me2me_host_static',
385           'type': 'static_library',
386           'variables': { 'enable_wexit_time_destructors': 1, },
387           'dependencies': [
388             '../base/base.gyp:base',
389             '../base/base.gyp:base_i18n',
390             '../components/components.gyp:policy',
391             '../components/components.gyp:policy_component_common',
392             '../net/net.gyp:net',
393             '../third_party/webrtc/modules/modules.gyp:desktop_capture',
394             'remoting_base',
395             'remoting_breakpad',
396             'remoting_host',
397             'remoting_protocol',
398           ],
399           'defines': [
400             'VERSION=<(version_full)',
401           ],
402           'sources': [
403             'host/curtain_mode.h',
404             'host/curtain_mode_linux.cc',
405             'host/curtain_mode_mac.cc',
406             'host/curtain_mode_win.cc',
407             'host/pam_authorization_factory_posix.cc',
408             'host/pam_authorization_factory_posix.h',
409             'host/posix/signal_handler.cc',
410             'host/posix/signal_handler.h',
411             'host/remoting_me2me_host.cc',
412           ],
413           'conditions': [
414             ['OS=="linux"', {
415               'link_settings': {
416                 'libraries': [
417                   '-lpam',
418                 ],
419               },
420             }],
421             ['OS=="mac"', {
422               'link_settings': {
423                 'libraries': [
424                   'libpam.a',
425                ],
426               },
427             }],
428           ],  # end of 'conditions'
429         },  # end of target 'remoting_me2me_host_static'
430       ]  # end of targets
431     }],  # end of enable_me2me_host==1
433     ['OS!="win" and enable_me2me_host==1', {
434       'targets': [
435         {
436           'target_name': 'remoting_me2me_host',
437           'type': 'executable',
438           'variables': { 'enable_wexit_time_destructors': 1, },
439           'dependencies': [
440             '../base/base.gyp:base',
441             '../base/base.gyp:base_i18n',
442             '<(icu_gyp_path):icudata',
443             '../net/net.gyp:net',
444             '../third_party/webrtc/modules/modules.gyp:desktop_capture',
445             'remoting_base',
446             'remoting_breakpad',
447             'remoting_host',
448             'remoting_infoplist_strings',
449             'remoting_me2me_host_static',
450             'remoting_protocol',
451           ],
452           'defines': [
453             'VERSION=<(version_full)',
454           ],
455           'sources': [
456             'host/host_main.cc',
457             'host/host_main.h',
458           ],
459           'conditions': [
460             ['OS=="mac"', {
461               'mac_bundle': 1,
462               'variables': {
463                  'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_ID@")',
464               },
465               'xcode_settings': {
466                 'INFOPLIST_FILE': 'host/remoting_me2me_host-Info.plist',
467                 'INFOPLIST_PREPROCESS': 'YES',
468                 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
469               },
470               'mac_bundle_resources': [
471                 '<(PRODUCT_DIR)/icudtl.dat',
472                 'host/disconnect_window.xib',
473                 'host/remoting_me2me_host.icns',
474                 'host/remoting_me2me_host-Info.plist',
475                 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
477                 # Localized strings for 'Info.plist'
478                 '<!@pymod_do_main(remoting_localize --locale_output '
479                     '"<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_me2me_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
480                     '--print_only <(remoting_locales))',
481               ],
482               'mac_bundle_resources!': [
483                 'host/remoting_me2me_host-Info.plist',
484               ],
485               'conditions': [
486                 ['mac_breakpad==1', {
487                   'variables': {
488                     # A real .dSYM is needed for dump_syms to operate on.
489                     'mac_real_dsym': 1,
490                   },
491                   'copies': [
492                     {
493                       'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
494                       'files': [
495                         '<(PRODUCT_DIR)/crash_inspector',
496                         '<(PRODUCT_DIR)/crash_report_sender.app'
497                       ],
498                     },
499                   ],
500                   'dependencies': [
501                     '../breakpad/breakpad.gyp:dump_syms',
502                   ],
503                   'postbuilds': [
504                     {
505                       'postbuild_name': 'Dump Symbols',
506                       'variables': {
507                         'dump_product_syms_path':
508                             'scripts/mac/dump_product_syms',
509                       },
510                       'action': [
511                         '<(dump_product_syms_path)',
512                         '<(version_full)',
513                       ],
514                     },  # end of postbuild 'dump_symbols'
515                   ],  # end of 'postbuilds'
516                 }],  # mac_breakpad==1
517               ],  # conditions
518             }],  # OS=mac
519             ['OS=="linux" and use_allocator!="none"', {
520               'dependencies': [
521                 '../base/allocator/allocator.gyp:allocator',
522               ],
523             }],  # OS=linux
524           ],  # end of 'conditions'
525         },  # end of target 'remoting_me2me_host'
526         {
527           'target_name': 'remoting_me2me_native_messaging_host',
528           'type': 'executable',
529           'product_name': 'native_messaging_host',
530           'variables': { 'enable_wexit_time_destructors': 1, },
531           'dependencies': [
532             '../base/base.gyp:base',
533             'remoting_breakpad',
534             'remoting_host',
535             'remoting_host_setup_base',
536             'remoting_infoplist_strings',
537             'remoting_native_messaging_base',
538           ],
539           'defines': [
540             'VERSION=<(version_full)',
541           ],
542           'sources': [
543             'host/setup/me2me_native_messaging_host_entry_point.cc',
544             'host/setup/me2me_native_messaging_host_main.cc',
545             'host/setup/me2me_native_messaging_host_main.h',
546           ],
547           'conditions': [
548             ['OS=="linux" and use_allocator!="none"', {
549               'dependencies': [
550                 '../base/allocator/allocator.gyp:allocator',
551               ],
552             }],
553             ['OS=="mac"', {
554               'mac_bundle': 1,
555               'variables': {
556                  'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_NATIVE_MESSAGING_HOST_BUNDLE_ID@")',
557               },
558               'xcode_settings': {
559                 'INFOPLIST_FILE': 'host/setup/native_messaging_host-Info.plist',
560                 'INFOPLIST_PREPROCESS': 'YES',
561                 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
562               },
563               'mac_bundle_resources': [
564                 'host/setup/native_messaging_host-Info.plist',
565                 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
567                 # Localized strings for 'Info.plist'
568                 '<!@pymod_do_main(remoting_localize --locale_output '
569                     '"<(SHARED_INTERMEDIATE_DIR)/remoting/native_messaging_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
570                     '--print_only <(remoting_locales))',
571               ],
572               'mac_bundle_resources!': [
573                 'host/setup/native_messaging_host-Info.plist',
574               ],
575               'conditions': [
576                 ['mac_breakpad==1', {
577                   'variables': {
578                     # A real .dSYM is needed for dump_syms to operate on.
579                     'mac_real_dsym': 1,
580                   },
581                   'copies': [
582                     {
583                       'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
584                       'files': [
585                         '<(PRODUCT_DIR)/crash_inspector',
586                         '<(PRODUCT_DIR)/crash_report_sender.app'
587                       ],
588                     },
589                   ],
590                   'dependencies': [
591                     '../breakpad/breakpad.gyp:dump_syms',
592                   ],
593                   'postbuilds': [
594                     {
595                       'postbuild_name': 'Dump Symbols',
596                       'variables': {
597                         'dump_product_syms_path':
598                             'scripts/mac/dump_product_syms',
599                       },
600                       'action': [
601                         '<(dump_product_syms_path)',
602                         '<(version_full)',
603                       ],
604                     },  # end of postbuild 'dump_symbols'
605                   ],  # end of 'postbuilds'
606                 }],  # mac_breakpad==1
607               ],  # conditions
608             }],  # OS=mac
609           ],
610         },  # end of target 'remoting_me2me_native_messaging_host'
611       ], # targets
612     }], # end of OS!="win" and enable_me2me_host==1
614     ['OS!="win" and enable_remoting_host==1', {
615       'conditions': [
616         ['chromeos==0', {
617           'targets': [
618             {
619               'target_name': 'remoting_it2me_native_messaging_host',
620               'type': 'executable',
621               'product_name': 'remote_assistance_host',
622               'variables': { 'enable_wexit_time_destructors': 1, },
623               'dependencies': [
624                 '../base/base.gyp:base',
625                 'remoting_base',
626                 'remoting_breakpad',
627                 'remoting_host',
628                 'remoting_it2me_host_static',
629                 'remoting_native_messaging_base',
630                 'remoting_protocol',
631               ],
632               'defines': [
633                 'VERSION=<(version_full)',
634               ],
635               'sources': [
636                 'host/it2me/it2me_native_messaging_host_entry_point.cc',
637                 'host/it2me/it2me_native_messaging_host_main.cc',
638                 'host/it2me/it2me_native_messaging_host_main.h',
639               ],
640               'conditions': [
641                 ['OS=="linux" and chromeos==0 and use_ozone==0', {
642                   'dependencies': [
643                     # Always use GTK on Linux, even for Aura builds.
644                     '../build/linux/system.gyp:gtk',
645                   ],
646                 }],
647                 ['OS=="linux" and use_allocator!="none"', {
648                   'dependencies': [
649                     '../base/allocator/allocator.gyp:allocator',
650                   ],
651                 }],
652                 ['OS=="mac"', {
653                   'mac_bundle': 1,
654                   'variables': {
655                     'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_ID@")',
656                   },
657                   'xcode_settings': {
658                     'INFOPLIST_FILE': 'host/it2me/remote_assistance_host-Info.plist',
659                     'INFOPLIST_PREPROCESS': 'YES',
660                     'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
661                   },
662                   'mac_bundle_resources': [
663                     '<(PRODUCT_DIR)/icudtl.dat',
664                     'host/disconnect_window.xib',
665                     'host/it2me/remote_assistance_host-Info.plist',
666                     '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
668                     # Localized strings for 'Info.plist'
669                     '<!@pymod_do_main(remoting_localize --locale_output '
670                     '"<(SHARED_INTERMEDIATE_DIR)/remoting/remote_assistance_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
671                     '--print_only <(remoting_locales))',
672                   ],
673                   'mac_bundle_resources!': [
674                     'host/it2me/remote_assistance_host-Info.plist',
675                   ],
676                   'conditions': [
677                     ['mac_breakpad==1', {
678                       'variables': {
679                         # A real .dSYM is needed for dump_syms to operate on.
680                         'mac_real_dsym': 1,
681                       },
682                       'copies': [
683                         {
684                           'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
685                           'files': [
686                             '<(PRODUCT_DIR)/crash_inspector',
687                             '<(PRODUCT_DIR)/crash_report_sender.app'
688                           ],
689                         },
690                       ],
691                       'dependencies': [
692                         '../breakpad/breakpad.gyp:dump_syms',
693                       ],
694                       'postbuilds': [
695                         {
696                           'postbuild_name': 'Dump Symbols',
697                           'variables': {
698                             'dump_product_syms_path':
699                             'scripts/mac/dump_product_syms',
700                           },
701                           'action': [
702                             '<(dump_product_syms_path)',
703                             '<(version_full)',
704                           ],
705                         },  # end of postbuild 'dump_symbols'
706                       ],  # end of 'postbuilds'
707                     }],  # mac_breakpad==1
708                   ],  # conditions
709                 }],  # OS=mac
710               ],  # end of conditions
711             },  # end of target 'remoting_it2me_native_messaging_host'
712           ],  # targets
713         }, {  # chromeos==0
714           'targets': [
715             {
716               # Dummy target for chromeos==1
717               'target_name': 'remoting_it2me_native_messaging_host',
718               'type': 'executable',
719             },
720           ],  # targets
721         }],  # end of chromeos==0
722       ],  # end of conditions
723     }],  # end of OS!="win" and enable_remoting_host==1
724   ],  # end of 'conditions'