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