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.
7 'remoting_enable.gypi',
13 'remoting_host_mac.gypi',
18 'remoting_host_win.gypi',
23 'remoting_host_linux.gypi',
27 ['enable_remoting_host==1', {
30 # GN version: //remoting/host
31 'target_name': 'remoting_host',
32 'type': 'static_library',
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@")',
42 '../base/base.gyp:base_i18n',
43 '../components/components.gyp:policy',
44 '../components/components.gyp:policy_component_common',
45 '../crypto/crypto.gyp:crypto',
46 '../google_apis/google_apis.gyp:google_apis',
48 '../ui/events/events.gyp:dom_keycode_converter',
51 'HOST_BUNDLE_NAME="<(host_bundle_name)"',
52 'PREFPANE_BUNDLE_NAME="<(prefpane_bundle_name)"',
53 'VERSION=<(version_full)',
56 '<@(remoting_host_sources)',
63 '../build/linux/system.gyp:x11',
64 '../build/linux/system.gyp:xext',
65 '../build/linux/system.gyp:xfixes',
66 '../build/linux/system.gyp:xi',
67 '../build/linux/system.gyp:xrandr',
68 '../build/linux/system.gyp:xtst',
71 ['chromeos==0 and use_ozone==0', {
73 # use GTK on Linux, even for Aura builds.
74 '../build/linux/system.gyp:gtk',
82 '../ppapi/ppapi_internal.gyp:ppapi_host',
83 '../skia/skia.gyp:skia',
84 '../ui/aura/aura.gyp:aura',
85 '../ui/compositor/compositor.gyp:compositor',
86 '../ui/events/events.gyp:events',
87 '../ui/events/platform/events_platform.gyp:events_platform',
88 '../ui/views/views.gyp:views',
91 '../third_party/skia/include/utils',
94 'host/clipboard_x11.cc',
95 'host/continue_window_linux.cc',
96 'host/disconnect_window_linux.cc',
97 'host/linux/x_server_clipboard.cc',
98 'host/linux/x_server_clipboard.h',
99 'host/local_input_monitor_x11.cc',
104 '../ash/ash.gyp:ash',
109 'host/input_injector_chromeos.cc',
110 'host/input_injector_chromeos.h',
114 '../ui/ozone/ozone.gyp:ozone',
121 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gyp:google_toolbox_for_mac',
125 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
131 '_ATL_NO_EXCEPTIONS',
132 'ISOLATION_AWARE_ENABLED=1',
135 '../sandbox/sandbox.gyp:sandbox',
136 'remoting_host_messages',
140 'VCCLCompilerTool': {
141 # /MP conflicts with #import directive so we limit the number
142 # of processes to spawn to 1.
143 'AdditionalOptions': ['/MP1'],
147 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/remoting/host',
150 '<(output_dir)/remoting_host_messages.mc',
155 'direct_dependent_settings': {
161 # Rule to run the message compiler.
162 'rule_name': 'message_compiler',
165 '<(output_dir)/<(RULE_INPUT_ROOT).h',
166 '<(output_dir)/<(RULE_INPUT_ROOT).rc',
170 '-h', '<(output_dir)',
171 '-r', '<(output_dir)/.',
173 '<(RULE_INPUT_PATH)',
175 'process_outputs_as_sources': 1,
176 'message': 'Running message compiler on <(RULE_INPUT_PATH)',
179 ['enable_webrtc==1', {
181 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
182 '../third_party/libjingle/libjingle.gyp:libpeerconnection',
185 '<@(remoting_cast_sources)',
189 }, # end of target 'remoting_host'
192 # GN version: //remoting/host/native_messaging
193 'target_name': 'remoting_native_messaging_base',
194 'type': 'static_library',
195 'variables': { 'enable_wexit_time_destructors': 1, },
197 '../base/base.gyp:base',
200 '<@(remoting_host_native_messaging_sources)',
202 }, # end of target 'remoting_native_messaging_base'
205 # GN version: //remoting/host/setup
206 'target_name': 'remoting_host_setup_base',
207 'type': 'static_library',
208 'variables': { 'enable_wexit_time_destructors': 1, },
210 '../base/base.gyp:base',
211 '../google_apis/google_apis.gyp:google_apis',
215 'VERSION=<(version_full)',
218 '<@(remoting_host_setup_sources)',
225 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
226 'msvs_disabled_warnings': [4267, ],
229 }, # end of target 'remoting_host_setup_base'
231 # Generates native messaging manifest files.
233 'target_name': 'remoting_native_messaging_manifests',
238 'me2me_host_path': 'remoting_native_messaging_host.exe',
239 'it2me_host_path': 'remote_assistance_host.exe',
244 'me2me_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_NAME@")',
245 'native_messaging_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_NATIVE_MESSAGING_HOST_BUNDLE_NAME@")',
246 'remote_assistance_host_bundle_name': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_NAME@")',
248 '/Library/PrivilegedHelperTools/<(me2me_host_bundle_name)/Contents/MacOS/<(native_messaging_host_bundle_name)/Contents/MacOS/native_messaging_host',
250 '/Library/PrivilegedHelperTools/<(me2me_host_bundle_name)/Contents/MacOS/<(remote_assistance_host_bundle_name)/Contents/MacOS/remote_assistance_host',
253 [ 'OS != "mac" and OS != "win"', {
256 '/opt/google/chrome-remote-desktop/native-messaging-host',
258 '/opt/google/chrome-remote-desktop/remote-assistance-host',
263 'host/it2me/com.google.chrome.remote_assistance.json.jinja2',
264 'host/setup/com.google.chrome.remote_desktop.json.jinja2',
267 'rule_name': 'generate_manifest',
268 'extension': 'jinja2',
270 '<(remoting_localize_path)',
274 '<(PRODUCT_DIR)/remoting/<(RULE_INPUT_ROOT)',
277 'python', '<(remoting_localize_path)',
278 '--define', 'ME2ME_HOST_PATH=<(me2me_host_path)',
279 '--define', 'IT2ME_HOST_PATH=<(it2me_host_path)',
280 '--variables', '<(branding_path)',
281 '--template', '<(RULE_INPUT_PATH)',
282 '--locale_output', '<@(_outputs)',
286 }, # end of target 'remoting_native_messaging_manifests'
288 # GN target: //remoting/host:remoting_start_host
289 'target_name': 'remoting_start_host',
290 'type': 'executable',
292 'remoting_host_setup_base',
295 'host/setup/host_starter.cc',
296 'host/setup/host_starter.h',
297 'host/setup/start_host.cc',
300 ['OS=="linux" and use_allocator!="none"', {
302 '../base/allocator/allocator.gyp:allocator',
306 }, # end of target 'remoting_start_host'
308 'target_name': 'remoting_infoplist_strings',
311 'remoting_resources',
314 'host/remoting_me2me_host-InfoPlist.strings.jinja2',
315 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
316 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2',
317 'host/setup/native_messaging_host-InfoPlist.strings.jinja2',
318 'host/it2me/remote_assistance_host-InfoPlist.strings.jinja2',
321 'rule_name': 'generate_strings',
322 'extension': 'jinja2',
324 '<(remoting_localize_path)',
327 '<!@pymod_do_main(remoting_localize --locale_output '
328 '"<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suffix}.lproj/InfoPlist.strings" '
329 '--print_only <(remoting_locales))',
332 'python', '<(remoting_localize_path)',
333 '--locale_dir', '<(webapp_locale_dir)',
334 '--template', '<(RULE_INPUT_PATH)',
336 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suffix}.lproj/InfoPlist.strings',
337 '<@(remoting_locales)',
340 }, # end of target 'remoting_infoplist_strings'
342 # GN version: //remoting/host/it2me:common
343 'target_name': 'remoting_it2me_host_static',
344 'type': 'static_library',
345 'variables': { 'enable_wexit_time_destructors': 1, },
347 '../base/base.gyp:base_i18n',
348 '../components/components.gyp:policy',
349 '../net/net.gyp:net',
352 'remoting_infoplist_strings',
354 'remoting_resources',
357 'VERSION=<(version_full)',
360 '<@(remoting_it2me_host_static_sources)',
362 }, # end of target 'remoting_it2me_host_static'
363 ], # end of 'targets'
364 }], # 'enable_remoting_host==1'
366 ['enable_me2me_host==1', {
369 'target_name': 'remoting_me2me_host_static',
370 'type': 'static_library',
371 'variables': { 'enable_wexit_time_destructors': 1, },
373 '../base/base.gyp:base',
374 '../base/base.gyp:base_i18n',
375 '../components/components.gyp:policy',
376 '../components/components.gyp:policy_component_common',
377 '../net/net.gyp:net',
378 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
385 'VERSION=<(version_full)',
388 'host/curtain_mode.h',
389 'host/curtain_mode_linux.cc',
390 'host/curtain_mode_mac.cc',
391 'host/curtain_mode_win.cc',
392 'host/pam_authorization_factory_posix.cc',
393 'host/pam_authorization_factory_posix.h',
394 'host/posix/signal_handler.cc',
395 'host/posix/signal_handler.h',
396 'host/remoting_me2me_host.cc',
413 ['OS=="mac" and buildtype=="Official"', {
415 'internal/internal_mac-inl.h'
418 'USE_REMOTING_MACOSX_INTERNAL'
421 ], # end of 'conditions'
422 }, # end of target 'remoting_me2me_host_static'
424 }], # end of enable_me2me_host==1
426 ['OS!="win" and enable_me2me_host==1', {
429 'target_name': 'remoting_me2me_host',
430 'type': 'executable',
431 'variables': { 'enable_wexit_time_destructors': 1, },
433 '../base/base.gyp:base',
434 '../base/base.gyp:base_i18n',
435 '<(icu_gyp_path):icudata',
436 '../net/net.gyp:net',
437 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
441 'remoting_infoplist_strings',
442 'remoting_me2me_host_static',
446 'VERSION=<(version_full)',
456 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_HOST_BUNDLE_ID@")',
459 'INFOPLIST_FILE': 'host/remoting_me2me_host-Info.plist',
460 'INFOPLIST_PREPROCESS': 'YES',
461 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
463 'mac_bundle_resources': [
464 '<(PRODUCT_DIR)/icudtl.dat',
465 'host/disconnect_window.xib',
466 'host/remoting_me2me_host.icns',
467 'host/remoting_me2me_host-Info.plist',
468 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
470 # Localized strings for 'Info.plist'
471 '<!@pymod_do_main(remoting_localize --locale_output '
472 '"<(SHARED_INTERMEDIATE_DIR)/remoting/remoting_me2me_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
473 '--print_only <(remoting_locales))',
475 'mac_bundle_resources!': [
476 'host/remoting_me2me_host-Info.plist',
479 ['mac_breakpad==1', {
481 # A real .dSYM is needed for dump_syms to operate on.
486 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
488 '<(PRODUCT_DIR)/crash_inspector',
489 '<(PRODUCT_DIR)/crash_report_sender.app'
494 '../breakpad/breakpad.gyp:dump_syms',
498 'postbuild_name': 'Dump Symbols',
500 'dump_product_syms_path':
501 'scripts/mac/dump_product_syms',
504 '<(dump_product_syms_path)',
507 }, # end of postbuild 'dump_symbols'
508 ], # end of 'postbuilds'
509 }], # mac_breakpad==1
512 ['OS=="linux" and use_allocator!="none"', {
514 '../base/allocator/allocator.gyp:allocator',
517 ], # end of 'conditions'
518 }, # end of target 'remoting_me2me_host'
520 'target_name': 'remoting_me2me_native_messaging_host',
521 'type': 'executable',
522 'product_name': 'native_messaging_host',
523 'variables': { 'enable_wexit_time_destructors': 1, },
525 '../base/base.gyp:base',
528 'remoting_host_setup_base',
529 'remoting_infoplist_strings',
530 'remoting_native_messaging_base',
533 'VERSION=<(version_full)',
536 'host/setup/me2me_native_messaging_host_entry_point.cc',
537 'host/setup/me2me_native_messaging_host_main.cc',
538 'host/setup/me2me_native_messaging_host_main.h',
541 ['OS=="linux" and use_allocator!="none"', {
543 '../base/allocator/allocator.gyp:allocator',
549 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_NATIVE_MESSAGING_HOST_BUNDLE_ID@")',
552 'INFOPLIST_FILE': 'host/setup/native_messaging_host-Info.plist',
553 'INFOPLIST_PREPROCESS': 'YES',
554 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
556 'mac_bundle_resources': [
557 'host/setup/native_messaging_host-Info.plist',
558 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
560 # Localized strings for 'Info.plist'
561 '<!@pymod_do_main(remoting_localize --locale_output '
562 '"<(SHARED_INTERMEDIATE_DIR)/remoting/native_messaging_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
563 '--print_only <(remoting_locales))',
565 'mac_bundle_resources!': [
566 'host/setup/native_messaging_host-Info.plist',
569 ['mac_breakpad==1', {
571 # A real .dSYM is needed for dump_syms to operate on.
576 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
578 '<(PRODUCT_DIR)/crash_inspector',
579 '<(PRODUCT_DIR)/crash_report_sender.app'
584 '../breakpad/breakpad.gyp:dump_syms',
588 'postbuild_name': 'Dump Symbols',
590 'dump_product_syms_path':
591 'scripts/mac/dump_product_syms',
594 '<(dump_product_syms_path)',
597 }, # end of postbuild 'dump_symbols'
598 ], # end of 'postbuilds'
599 }], # mac_breakpad==1
603 }, # end of target 'remoting_me2me_native_messaging_host'
605 }], # end of OS!="win" and enable_me2me_host==1
607 ['OS!="win" and enable_remoting_host==1', {
612 'target_name': 'remoting_it2me_native_messaging_host',
613 'type': 'executable',
614 'product_name': 'remote_assistance_host',
615 'variables': { 'enable_wexit_time_destructors': 1, },
617 '../base/base.gyp:base',
621 'remoting_it2me_host_static',
622 'remoting_native_messaging_base',
626 'VERSION=<(version_full)',
629 'host/it2me/it2me_native_messaging_host_entry_point.cc',
630 'host/it2me/it2me_native_messaging_host_main.cc',
631 'host/it2me/it2me_native_messaging_host_main.h',
634 ['OS=="linux" and chromeos==0 and use_ozone==0', {
636 # Always use GTK on Linux, even for Aura builds.
637 '../build/linux/system.gyp:gtk',
640 ['OS=="linux" and use_allocator!="none"', {
642 '../base/allocator/allocator.gyp:allocator',
648 'host_bundle_id': '<!(python <(version_py_path) -f <(branding_path) -t "@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_ID@")',
651 'INFOPLIST_FILE': 'host/it2me/remote_assistance_host-Info.plist',
652 'INFOPLIST_PREPROCESS': 'YES',
653 'INFOPLIST_PREPROCESSOR_DEFINITIONS': 'VERSION_FULL="<(version_full)" VERSION_SHORT="<(version_short)" BUNDLE_ID="<(host_bundle_id)"',
655 'mac_bundle_resources': [
656 '<(PRODUCT_DIR)/icudtl.dat',
657 'host/disconnect_window.xib',
658 'host/it2me/remote_assistance_host-Info.plist',
659 '<!@pymod_do_main(remoting_copy_locales -o -p <(OS) -x <(PRODUCT_DIR) <(remoting_locales))',
661 # Localized strings for 'Info.plist'
662 '<!@pymod_do_main(remoting_localize --locale_output '
663 '"<(SHARED_INTERMEDIATE_DIR)/remoting/remote_assistance_host-InfoPlist.strings/@{json_suffix}.lproj/InfoPlist.strings" '
664 '--print_only <(remoting_locales))',
666 'mac_bundle_resources!': [
667 'host/it2me/remote_assistance_host-Info.plist',
670 ['mac_breakpad==1', {
672 # A real .dSYM is needed for dump_syms to operate on.
677 'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Resources',
679 '<(PRODUCT_DIR)/crash_inspector',
680 '<(PRODUCT_DIR)/crash_report_sender.app'
685 '../breakpad/breakpad.gyp:dump_syms',
689 'postbuild_name': 'Dump Symbols',
691 'dump_product_syms_path':
692 'scripts/mac/dump_product_syms',
695 '<(dump_product_syms_path)',
698 }, # end of postbuild 'dump_symbols'
699 ], # end of 'postbuilds'
700 }], # mac_breakpad==1
703 ], # end of conditions
704 }, # end of target 'remoting_it2me_native_messaging_host'
709 # Dummy target for chromeos==1
710 'target_name': 'remoting_it2me_native_messaging_host',
711 'type': 'executable',
714 }], # end of chromeos==0
715 ], # end of conditions
716 }], # end of OS!="win" and enable_remoting_host==1
717 ], # end of 'conditions'