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