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