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