Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: remoting/remoting_host.gypi

Issue 543243003: Remote Assistance on Chrome OS Part I - Aura Desktop Capturer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'includes': [ 6 'includes': [
7 'remoting_host_linux.gypi', 7 'remoting_host_linux.gypi',
8 'remoting_host_mac.gypi', 8 'remoting_host_mac.gypi',
9 'remoting_host_win.gypi', 9 'remoting_host_win.gypi',
10 ], 10 ],
11 11
12 'variables': { 12 'variables': {
13 'conditions': [ 13 'conditions': [
14 # Remoting host is supported only on Windows, OSX and Linux (with X11). 14 # Remoting host is supported only on Windows, OSX and Linux (with X11).
15 ['OS=="win" or OS=="mac" or (OS=="linux" and chromeos==0 and use_x11==1)', { 15 ['OS=="win" or OS=="mac" or (OS=="linux" and use_x11==1)', {
16 'enable_me2me_host': 1,
17 'enable_it2me_host': 1,
16 'enable_remoting_host': 1, 18 'enable_remoting_host': 1,
17 }, { 19 }, {
20 'enable_me2me_host': 0,
21 'enable_it2me_host': 0,
18 'enable_remoting_host': 0, 22 'enable_remoting_host': 0,
19 }], 23 }],
24 ['chromeos==1', {
25 'enable_me2me_host': 0,
26 'enable_it2me_host': 0,
James Cook 2014/09/11 15:52:34 Does this section need an entry for enable_remotin
kelvinp 2014/09/11 20:54:17 No, the condition above should already set enable_
27 }],
20 ], 28 ],
21 }, 29 },
22 30
23 'conditions': [ 31 'conditions': [
24 ['enable_remoting_host==1', { 32 ['enable_remoting_host==1', {
25 'targets': [ 33 'targets': [
26 { 34 {
27 'target_name': 'remoting_host', 35 'target_name': 'remoting_host',
28 'type': 'static_library', 36 'type': 'static_library',
29 'variables': { 37 'variables': {
(...skipping 27 matching lines...) Expand all
57 'host/audio_scheduler.cc', 65 'host/audio_scheduler.cc',
58 'host/audio_scheduler.h', 66 'host/audio_scheduler.h',
59 'host/audio_silence_detector.cc', 67 'host/audio_silence_detector.cc',
60 'host/audio_silence_detector.h', 68 'host/audio_silence_detector.h',
61 'host/basic_desktop_environment.cc', 69 'host/basic_desktop_environment.cc',
62 'host/basic_desktop_environment.h', 70 'host/basic_desktop_environment.h',
63 'host/branding.cc', 71 'host/branding.cc',
64 'host/branding.h', 72 'host/branding.h',
65 'host/capture_scheduler.cc', 73 'host/capture_scheduler.cc',
66 'host/capture_scheduler.h', 74 'host/capture_scheduler.h',
75 'host/chromeos/aura_desktop_capturer.cc',
76 'host/chromeos/aura_desktop_capturer.h',
67 'host/chromium_port_allocator_factory.cc', 77 'host/chromium_port_allocator_factory.cc',
68 'host/chromium_port_allocator_factory.h', 78 'host/chromium_port_allocator_factory.h',
69 'host/chromoting_host.cc', 79 'host/chromoting_host.cc',
70 'host/chromoting_host.h', 80 'host/chromoting_host.h',
71 'host/chromoting_host_context.cc', 81 'host/chromoting_host_context.cc',
72 'host/chromoting_host_context.h', 82 'host/chromoting_host_context.h',
73 'host/chromoting_messages.cc', 83 'host/chromoting_messages.cc',
74 'host/chromoting_messages.h', 84 'host/chromoting_messages.h',
75 'host/chromoting_param_traits.cc', 85 'host/chromoting_param_traits.cc',
76 'host/chromoting_param_traits.h', 86 'host/chromoting_param_traits.h',
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 'host/win/session_input_injector.h', 290 'host/win/session_input_injector.h',
281 'host/win/window_station_and_desktop.cc', 291 'host/win/window_station_and_desktop.cc',
282 'host/win/window_station_and_desktop.h', 292 'host/win/window_station_and_desktop.h',
283 'host/win/wts_terminal_monitor.cc', 293 'host/win/wts_terminal_monitor.cc',
284 'host/win/wts_terminal_monitor.h', 294 'host/win/wts_terminal_monitor.h',
285 'host/win/wts_terminal_observer.h', 295 'host/win/wts_terminal_observer.h',
286 ], 296 ],
287 'conditions': [ 297 'conditions': [
288 ['OS=="linux"', { 298 ['OS=="linux"', {
289 'dependencies': [ 299 'dependencies': [
290 # Always use GTK on Linux, even for Aura builds.
291 '../build/linux/system.gyp:gtk',
292 '../build/linux/system.gyp:x11', 300 '../build/linux/system.gyp:x11',
293 '../build/linux/system.gyp:xext', 301 '../build/linux/system.gyp:xext',
294 '../build/linux/system.gyp:xfixes', 302 '../build/linux/system.gyp:xfixes',
295 '../build/linux/system.gyp:xi', 303 '../build/linux/system.gyp:xi',
296 '../build/linux/system.gyp:xrandr', 304 '../build/linux/system.gyp:xrandr',
297 '../build/linux/system.gyp:xtst', 305 '../build/linux/system.gyp:xtst',
298 ], 306 ],
299 'link_settings': { 307 'link_settings': {
300 'libraries': [ 308 'libraries': [
301 '-lpam', 309 '-lpam',
302 ], 310 ],
303 }, 311 },
304 }], 312 }],
313 ['chromeos==1', {
314 'dependencies' : [
315 '../ash/ash.gyp:ash',
316 '../cc/cc.gyp:cc',
317 '../content/content.gyp:content',
318 '../ppapi/ppapi_internal.gyp:ppapi_host',
319 '../skia/skia.gyp:skia',
320 '../ui/aura/aura.gyp:aura',
321 '../ui/compositor/compositor.gyp:compositor',
322 ],
323 'include_dirs': [
324 '../third_party/skia/include/utils',
325 ],
326 "sources!" : [
327 'host/continue_window.cc',
328 'host/continue_window.h',
329 'host/continue_window_linux.cc',
330 'host/disconnect_window.cc',
331 'host/disconnect_window_linux.cc',
332 'host/remoting_me2me_host.cc',
333 ]
334 }, { # chromeos==0
335 "sources!" : [
336 'host/chromeos/aura_desktop_capturer.cc',
337 'host/chromeos/aura_desktop_capturer.h',
338 ],
339 "dependencies" : [
340 # Always use GTK on Linux, even for Aura builds.
341 '../build/linux/system.gyp:gtk',
342 ]
343 }],
305 ['OS=="mac"', { 344 ['OS=="mac"', {
306 'dependencies': [ 345 'dependencies': [
307 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gy p:google_toolbox_for_mac', 346 '../third_party/google_toolbox_for_mac/google_toolbox_for_mac.gy p:google_toolbox_for_mac',
308 ], 347 ],
309 'link_settings': { 348 'link_settings': {
310 'libraries': [ 349 'libraries': [
311 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', 350 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
312 'libpam.a', 351 'libpam.a',
313 ], 352 ],
314 }, 353 },
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 'host/native_messaging/native_messaging_channel.cc', 430 'host/native_messaging/native_messaging_channel.cc',
392 'host/native_messaging/native_messaging_channel.h', 431 'host/native_messaging/native_messaging_channel.h',
393 'host/native_messaging/native_messaging_reader.cc', 432 'host/native_messaging/native_messaging_reader.cc',
394 'host/native_messaging/native_messaging_reader.h', 433 'host/native_messaging/native_messaging_reader.h',
395 'host/native_messaging/native_messaging_writer.cc', 434 'host/native_messaging/native_messaging_writer.cc',
396 'host/native_messaging/native_messaging_writer.h', 435 'host/native_messaging/native_messaging_writer.h',
397 ], 436 ],
398 }, # end of target 'remoting_native_messaging_base' 437 }, # end of target 'remoting_native_messaging_base'
399 438
400 { 439 {
401 'target_name': 'remoting_me2me_host_static',
402 'type': 'static_library',
403 'variables': { 'enable_wexit_time_destructors': 1, },
404 'dependencies': [
405 '../base/base.gyp:base',
406 '../base/base.gyp:base_i18n',
407 '../net/net.gyp:net',
408 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
409 'remoting_base',
410 'remoting_breakpad',
411 'remoting_host',
412 'remoting_protocol',
413 ],
414 'defines': [
415 'VERSION=<(version_full)',
416 ],
417 'sources': [
418 'host/curtain_mode.h',
419 'host/curtain_mode_linux.cc',
420 'host/curtain_mode_mac.cc',
421 'host/curtain_mode_win.cc',
422 'host/posix/signal_handler.cc',
423 'host/posix/signal_handler.h',
424 ],
425 'conditions': [
426 ['os_posix != 1', {
427 'sources/': [
428 ['exclude', '^host/posix/'],
429 ],
430 }],
431 ], # end of 'conditions'
432 }, # end of target 'remoting_me2me_host_static'
433
434 {
435 'target_name': 'remoting_host_setup_base', 440 'target_name': 'remoting_host_setup_base',
436 'type': 'static_library', 441 'type': 'static_library',
437 'variables': { 'enable_wexit_time_destructors': 1, }, 442 'variables': { 'enable_wexit_time_destructors': 1, },
438 'dependencies': [ 443 'dependencies': [
439 '../base/base.gyp:base', 444 '../base/base.gyp:base',
440 '../google_apis/google_apis.gyp:google_apis', 445 '../google_apis/google_apis.gyp:google_apis',
441 'remoting_host', 446 'remoting_host',
442 ], 447 ],
443 'defines': [ 448 'defines': [
444 'VERSION=<(version_full)', 449 'VERSION=<(version_full)',
(...skipping 29 matching lines...) Expand all
474 'dependencies': [ 479 'dependencies': [
475 '../google_update/google_update.gyp:google_update', 480 '../google_update/google_update.gyp:google_update',
476 'remoting_lib_idl', 481 'remoting_lib_idl',
477 ], 482 ],
478 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 483 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
479 'msvs_disabled_warnings': [4267, ], 484 'msvs_disabled_warnings': [4267, ],
480 }], 485 }],
481 ], 486 ],
482 }, # end of target 'remoting_host_setup_base' 487 }, # end of target 'remoting_host_setup_base'
483 488
484 {
485 'target_name': 'remoting_it2me_host_static',
486 'type': 'static_library',
487 'variables': { 'enable_wexit_time_destructors': 1, },
488 'dependencies': [
489 '../base/base.gyp:base_i18n',
490 '../net/net.gyp:net',
491 'remoting_base',
492 'remoting_host',
493 'remoting_infoplist_strings',
494 'remoting_protocol',
495 'remoting_resources',
496 ],
497 'defines': [
498 'VERSION=<(version_full)',
499 ],
500 'sources': [
501 'host/it2me/it2me_host.cc',
502 'host/it2me/it2me_host.h',
503 'host/it2me/it2me_native_messaging_host.cc',
504 'host/it2me/it2me_native_messaging_host.h',
505 ],
506 }, # end of target 'remoting_it2me_host_static'
507
508 # Generates native messaging manifest files. 489 # Generates native messaging manifest files.
509 { 490 {
510 'target_name': 'remoting_native_messaging_manifests', 491 'target_name': 'remoting_native_messaging_manifests',
511 'type': 'none', 492 'type': 'none',
512 'conditions': [ 493 'conditions': [
513 [ 'OS == "win"', { 494 [ 'OS == "win"', {
514 'variables': { 495 'variables': {
515 'me2me_host_path': 'remoting_native_messaging_host.exe', 496 'me2me_host_path': 'remoting_native_messaging_host.exe',
516 'it2me_host_path': 'remote_assistance_host.exe', 497 'it2me_host_path': 'remote_assistance_host.exe',
517 }, 498 },
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 '--template', '<(RULE_INPUT_PATH)', 573 '--template', '<(RULE_INPUT_PATH)',
593 '--locale_output', 574 '--locale_output',
594 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suf fix}.lproj/InfoPlist.strings', 575 '<(SHARED_INTERMEDIATE_DIR)/remoting/<(RULE_INPUT_ROOT)/@{json_suf fix}.lproj/InfoPlist.strings',
595 '<@(remoting_locales)', 576 '<@(remoting_locales)',
596 ]}, 577 ]},
597 ], 578 ],
598 }, # end of target 'remoting_infoplist_strings' 579 }, # end of target 'remoting_infoplist_strings'
599 ], # end of 'targets' 580 ], # end of 'targets'
600 }], # 'enable_remoting_host==1' 581 }], # 'enable_remoting_host==1'
601 582
602 ['OS!="win" and enable_remoting_host==1', { 583 ['enable_me2me_host==1', {
584 'targets': [
585 {
586 'target_name': 'remoting_me2me_host_static',
587 'type': 'static_library',
588 'variables': { 'enable_wexit_time_destructors': 1, },
589 'dependencies': [
590 '../base/base.gyp:base',
591 '../base/base.gyp:base_i18n',
592 '../net/net.gyp:net',
593 '../third_party/webrtc/modules/modules.gyp:desktop_capture',
594 'remoting_base',
595 'remoting_breakpad',
596 'remoting_host',
597 'remoting_protocol',
598 ],
599 'defines': [
600 'VERSION=<(version_full)',
601 ],
602 'sources': [
603 'host/curtain_mode.h',
604 'host/curtain_mode_linux.cc',
605 'host/curtain_mode_mac.cc',
606 'host/curtain_mode_win.cc',
607 'host/posix/signal_handler.cc',
608 'host/posix/signal_handler.h',
609 ],
610 'conditions': [
611 ['os_posix != 1', {
612 'sources/': [
613 ['exclude', '^host/posix/'],
614 ],
615 }],
616 ], # end of 'conditions'
617 }, # end of target 'remoting_me2me_host_static'
618 ] # end of targets
619 }], # end of enable_me2me_host==1
620
621 ['enable_it2me_host==1', {
622 'targets': [
623 {
624 'target_name': 'remoting_it2me_host_static',
625 'type': 'static_library',
626 'variables': { 'enable_wexit_time_destructors': 1, },
627 'dependencies': [
628 '../base/base.gyp:base_i18n',
629 '../net/net.gyp:net',
630 'remoting_base',
631 'remoting_host',
632 'remoting_infoplist_strings',
633 'remoting_protocol',
634 'remoting_resources',
635 ],
636 'defines': [
637 'VERSION=<(version_full)',
638 ],
639 'sources': [
640 'host/it2me/it2me_host.cc',
641 'host/it2me/it2me_host.h',
642 'host/it2me/it2me_native_messaging_host.cc',
643 'host/it2me/it2me_native_messaging_host.h',
644 ],
645 }, # end of target 'remoting_it2me_host_static'
646 ] # end of targets
647 }], # end of 'enable_it2me_host==1'
648
649 ['OS!="win" and enable_me2me_host==1', {
603 'targets': [ 650 'targets': [
604 { 651 {
605 'target_name': 'remoting_me2me_host', 652 'target_name': 'remoting_me2me_host',
606 'type': 'executable', 653 'type': 'executable',
607 'variables': { 'enable_wexit_time_destructors': 1, }, 654 'variables': { 'enable_wexit_time_destructors': 1, },
608 'dependencies': [ 655 'dependencies': [
609 '../base/base.gyp:base', 656 '../base/base.gyp:base',
610 '../base/base.gyp:base_i18n', 657 '../base/base.gyp:base_i18n',
611 '<(icu_gyp_path):icudata', 658 '<(icu_gyp_path):icudata',
612 '../net/net.gyp:net', 659 '../net/net.gyp:net',
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 '<(dump_product_syms_path)', 817 '<(dump_product_syms_path)',
771 '<(version_full)', 818 '<(version_full)',
772 ], 819 ],
773 }, # end of postbuild 'dump_symbols' 820 }, # end of postbuild 'dump_symbols'
774 ], # end of 'postbuilds' 821 ], # end of 'postbuilds'
775 }], # mac_breakpad==1 822 }], # mac_breakpad==1
776 ], # conditions 823 ], # conditions
777 }], # OS=mac 824 }], # OS=mac
778 ], 825 ],
779 }, # end of target 'remoting_me2me_native_messaging_host' 826 }, # end of target 'remoting_me2me_native_messaging_host'
827 ], # targets
828 }], # end of OS!="win" and enable_me2me_host==1
829
830 ['OS!="win" and enable_it2me_host==1', {
831 'targets': [
780 { 832 {
781 'target_name': 'remoting_it2me_native_messaging_host', 833 'target_name': 'remoting_it2me_native_messaging_host',
782 'type': 'executable', 834 'type': 'executable',
783 'product_name': 'remote_assistance_host', 835 'product_name': 'remote_assistance_host',
784 'variables': { 'enable_wexit_time_destructors': 1, }, 836 'variables': { 'enable_wexit_time_destructors': 1, },
785 'dependencies': [ 837 'dependencies': [
786 '../base/base.gyp:base', 838 '../base/base.gyp:base',
787 'remoting_base', 839 'remoting_base',
788 'remoting_breakpad', 840 'remoting_breakpad',
789 'remoting_host', 841 'remoting_host',
790 'remoting_it2me_host_static', 842 'remoting_it2me_host_static',
791 'remoting_native_messaging_base', 843 'remoting_native_messaging_base',
792 'remoting_protocol', 844 'remoting_protocol',
793 ], 845 ],
794 'defines': [ 846 'defines': [
795 'VERSION=<(version_full)', 847 'VERSION=<(version_full)',
796 ], 848 ],
797 'sources': [ 849 'sources': [
798 'host/it2me/it2me_native_messaging_host_entry_point.cc', 850 'host/it2me/it2me_native_messaging_host_entry_point.cc',
799 'host/it2me/it2me_native_messaging_host_main.cc', 851 'host/it2me/it2me_native_messaging_host_main.cc',
800 'host/it2me/it2me_native_messaging_host_main.h', 852 'host/it2me/it2me_native_messaging_host_main.h',
801 ], 853 ],
802 'conditions': [ 854 'conditions': [
803 ['OS=="linux"', { 855 ['OS=="linux" and chromeos==0', {
804 'dependencies': [ 856 'dependencies': [
805 # Always use GTK on Linux, even for Aura builds. 857 # Always use GTK on Linux, even for Aura builds.
806 '../build/linux/system.gyp:gtk', 858 '../build/linux/system.gyp:gtk',
807 ], 859 ],
808 }], 860 }],
809 ['OS=="linux" and use_allocator!="none"', { 861 ['OS=="linux" and use_allocator!="none"', {
810 'dependencies': [ 862 'dependencies': [
811 '../base/allocator/allocator.gyp:allocator', 863 '../base/allocator/allocator.gyp:allocator',
812 ], 864 ],
813 }], 865 }],
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 '<(version_full)', 917 '<(version_full)',
866 ], 918 ],
867 }, # end of postbuild 'dump_symbols' 919 }, # end of postbuild 'dump_symbols'
868 ], # end of 'postbuilds' 920 ], # end of 'postbuilds'
869 }], # mac_breakpad==1 921 }], # mac_breakpad==1
870 ], # conditions 922 ], # conditions
871 }], # OS=mac 923 }], # OS=mac
872 ], 924 ],
873 }, # end of target 'remoting_it2me_native_messaging_host' 925 }, # end of target 'remoting_it2me_native_messaging_host'
874 ], # end of 'targets' 926 ], # end of 'targets'
875 }], # OS!="win" 927 }], # # end of OS!="win" and enable_it2me_host==1
876 928
877 ], # end of 'conditions' 929 ], # end of 'conditions'
878 } 930 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698