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