OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//build/config/win/manifest.gni") |
7 import("//build/util/version.gni") | 8 import("//build/util/version.gni") |
8 import("//remoting/remoting_enable.gni") | 9 import("//remoting/remoting_enable.gni") |
9 import("//remoting/remoting_locales.gni") | 10 import("//remoting/remoting_locales.gni") |
10 import("//remoting/remoting_options.gni") | 11 import("//remoting/remoting_options.gni") |
11 import("//remoting/remoting_srcs.gni") | 12 import("//remoting/remoting_srcs.gni") |
12 import("//remoting/remoting_version.gni") | 13 import("//remoting/remoting_version.gni") |
13 import("//remoting/tools/build/remoting_localize.gni") | 14 import("//remoting/tools/build/remoting_localize.gni") |
14 | 15 |
| 16 # Reference this manifest to indicate that a process is per-monitor DPI aware. |
| 17 dpi_aware_manifest = "//remoting/host/win/dpi_aware.manifest" |
| 18 |
| 19 # Depending on this target gives a default executable manifest with the addition |
| 20 # of the DPI aware tag. |
| 21 windows_manifest("dpi_aware_exe_manifest") { |
| 22 sources = [ |
| 23 as_invoker_manifest, |
| 24 common_controls_manifest, |
| 25 default_compatibility_manifest, |
| 26 dpi_aware_manifest, |
| 27 ] |
| 28 type = "exe" |
| 29 } |
| 30 |
| 31 # Depending on this target gives a default executable manifest with the addition |
| 32 # of the DPI aware tag and a requestedExecutionLevel of requireAdministrator. |
| 33 windows_manifest("dpi_aware_elevated_exe_manifest") { |
| 34 sources = [ |
| 35 common_controls_manifest, |
| 36 default_compatibility_manifest, |
| 37 dpi_aware_manifest, |
| 38 require_administrator_manifest, |
| 39 ] |
| 40 type = "exe" |
| 41 } |
| 42 |
15 # GYP version: remoting/remoting_host:remoting_host_credits | 43 # GYP version: remoting/remoting_host:remoting_host_credits |
16 action("credits") { | 44 action("credits") { |
17 # We put this in $root_build_dir/gen/remoting instead of | 45 # We put this in $root_build_dir/gen/remoting instead of |
18 # $root_build_dir/gen/remoting/host (target_gen_dir) for | 46 # $root_build_dir/gen/remoting/host (target_gen_dir) for |
19 # compatibility w/ GYP, since the installer needs the file to | 47 # compatibility w/ GYP, since the installer needs the file to |
20 # be at the same location. | 48 # be at the same location. |
21 about_credits_file = "$root_build_dir/gen/remoting/CREDITS.txt" | 49 about_credits_file = "$root_build_dir/gen/remoting/CREDITS.txt" |
22 script = "//tools/licenses.py" | 50 script = "//tools/licenses.py" |
23 | 51 |
24 inputs = [ | 52 inputs = [ |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 ] | 478 ] |
451 } | 479 } |
452 | 480 |
453 # GYP version: remoting/remoting_host_win.gypi:remoting_console | 481 # GYP version: remoting/remoting_host_win.gypi:remoting_console |
454 executable("remoting_console") { | 482 executable("remoting_console") { |
455 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 483 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
456 | 484 |
457 defines = [ "BINARY=BINARY_HOST_ME2ME" ] | 485 defines = [ "BINARY=BINARY_HOST_ME2ME" ] |
458 | 486 |
459 deps = [ | 487 deps = [ |
| 488 ":dpi_aware_exe_manifest", |
460 ":remoting_core", | 489 ":remoting_core", |
461 ":remoting_windows_resources", | 490 ":remoting_windows_resources", |
462 ] | 491 ] |
463 | 492 |
464 sources = [ | 493 sources = [ |
465 "$root_gen_dir/remoting/version.rc", | 494 "$root_gen_dir/remoting/version.rc", |
466 "win/entry_point.cc", | 495 "win/entry_point.cc", |
467 ] | 496 ] |
468 | 497 |
469 ldflags = [ | 498 ldflags = [ |
470 "/MANIFEST:EMBED", | |
471 "/MANIFESTINPUT:" + | |
472 rebase_path("win/dpi_aware.manifest", root_build_dir), | |
473 "/ENTRY:HostEntryPoint", | 499 "/ENTRY:HostEntryPoint", |
474 | |
475 # "/NODEFAULTLIB", | 500 # "/NODEFAULTLIB", |
476 ] | 501 ] |
477 } | 502 } |
478 | 503 |
479 # GYP version: //remoting/remoting_host_win.gypi:remoting_core | 504 # GYP version: //remoting/remoting_host_win.gypi:remoting_core |
480 shared_library("remoting_core") { | 505 shared_library("remoting_core") { |
481 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 506 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
482 | 507 |
483 defines = [ | 508 defines = [ |
484 "_ATL_APARTMENT_THREADED", | 509 "_ATL_APARTMENT_THREADED", |
(...skipping 24 matching lines...) Expand all Loading... |
509 | 534 |
510 deps = [ | 535 deps = [ |
511 ":remoting_lib_idl", | 536 ":remoting_lib_idl", |
512 ":remoting_lib_ps", | 537 ":remoting_lib_ps", |
513 ":remoting_me2me_host_static", | 538 ":remoting_me2me_host_static", |
514 ":remoting_windows_resources", | 539 ":remoting_windows_resources", |
515 "//base", | 540 "//base", |
516 "//base:base_static", | 541 "//base:base_static", |
517 "//base/allocator", | 542 "//base/allocator", |
518 "//base/third_party/dynamic_annotations", | 543 "//base/third_party/dynamic_annotations", |
| 544 "//build/win:default_exe_manifest", |
519 "//ipc", | 545 "//ipc", |
520 "//net", | 546 "//net", |
521 "//remoting/base", | 547 "//remoting/base", |
522 "//remoting/base:breakpad", | 548 "//remoting/base:breakpad", |
523 "//remoting/codec", | 549 "//remoting/codec", |
524 "//remoting/host", | 550 "//remoting/host", |
525 "//remoting/host:messages", | 551 "//remoting/host:messages", |
526 "//remoting/host/it2me:common", | 552 "//remoting/host/it2me:common", |
527 "//remoting/host/native_messaging", | 553 "//remoting/host/native_messaging", |
528 "//remoting/host/setup", | 554 "//remoting/host/setup", |
(...skipping 24 matching lines...) Expand all Loading... |
553 "win/rdp_desktop_session.cc", | 579 "win/rdp_desktop_session.cc", |
554 "win/rdp_desktop_session.h", | 580 "win/rdp_desktop_session.h", |
555 "win/unprivileged_process_delegate.cc", | 581 "win/unprivileged_process_delegate.cc", |
556 "win/unprivileged_process_delegate.h", | 582 "win/unprivileged_process_delegate.h", |
557 "win/wts_session_process_delegate.cc", | 583 "win/wts_session_process_delegate.cc", |
558 "win/wts_session_process_delegate.h", | 584 "win/wts_session_process_delegate.h", |
559 "worker_process_ipc_delegate.h", | 585 "worker_process_ipc_delegate.h", |
560 ] | 586 ] |
561 | 587 |
562 ldflags = [ | 588 ldflags = [ |
563 "/MANIFEST:EMBED", | |
564 "/MANIFESTINPUT:" + | |
565 rebase_path("win/common-controls.manifest", root_build_dir), | |
566 "/EXPORT:DllGetClassObject=PsDllGetClassObject,PRIVATE", | 589 "/EXPORT:DllGetClassObject=PsDllGetClassObject,PRIVATE", |
567 "/EXPORT:DllCanUnloadNow=PsDllCanUnloadNow,PRIVATE", | 590 "/EXPORT:DllCanUnloadNow=PsDllCanUnloadNow,PRIVATE", |
568 "/EXPORT:DllRegisterServer=PsDllRegisterServer,PRIVATE", | 591 "/EXPORT:DllRegisterServer=PsDllRegisterServer,PRIVATE", |
569 "/EXPORT:DllUnregisterServer=PsDllUnregisterServer,PRIVATE", | 592 "/EXPORT:DllUnregisterServer=PsDllUnregisterServer,PRIVATE", |
570 ] | 593 ] |
571 | 594 |
572 libs = [ | 595 libs = [ |
573 "comctl32.lib", | 596 "comctl32.lib", |
574 "rpcns4.lib", | 597 "rpcns4.lib", |
575 "rpcrt4.lib", | 598 "rpcrt4.lib", |
(...skipping 13 matching lines...) Expand all Loading... |
589 "//build/config/win:windowed", | 612 "//build/config/win:windowed", |
590 ] | 613 ] |
591 | 614 |
592 defines = [ "BINARY=BINARY_DESKTOP" ] | 615 defines = [ "BINARY=BINARY_DESKTOP" ] |
593 | 616 |
594 deps = [ | 617 deps = [ |
595 ":remoting_core", | 618 ":remoting_core", |
596 ":remoting_windows_resources", | 619 ":remoting_windows_resources", |
597 ] | 620 ] |
598 | 621 |
| 622 if (is_official_build) { |
| 623 deps += [ ":dpi_aware_elevated_exe_manifest" ] |
| 624 } else { |
| 625 deps += [ ":dpi_aware_exe_manifest" ] |
| 626 } |
| 627 |
599 sources = [ | 628 sources = [ |
600 "$root_gen_dir/remoting/version.rc", | 629 "$root_gen_dir/remoting/version.rc", |
601 "win/entry_point.cc", | 630 "win/entry_point.cc", |
602 ] | 631 ] |
603 | 632 |
604 ldflags = [ | 633 ldflags = [ |
605 "/MANIFEST:EMBED", | |
606 "/MANIFESTINPUT:" + | |
607 rebase_path("win/dpi_aware.manifest", root_build_dir), | |
608 "/ENTRY:HostEntryPoint", | 634 "/ENTRY:HostEntryPoint", |
609 | |
610 # "/NODEFAULTLIB", | 635 # "/NODEFAULTLIB", |
611 ] | 636 ] |
612 | |
613 if (is_official_build) { | |
614 ldflags += | |
615 [ "/MANIFESTUAC:level='requiresAdministrator' uiAccess='true'" ] | |
616 } else { | |
617 ldflags += [ "/MANIFESTUAC" ] | |
618 } | |
619 } | 637 } |
620 | 638 |
621 # GYP version: //remoting/remoting_host_win.gypi:remote_security_key | 639 # GYP version: //remoting/remoting_host_win.gypi:remote_security_key |
622 executable("remote_security_key") { | 640 executable("remote_security_key") { |
623 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 641 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
624 | 642 |
625 defines = [ "BINARY=BINARY_REMOTE_SECURITY_KEY" ] | 643 defines = [ "BINARY=BINARY_REMOTE_SECURITY_KEY" ] |
626 | 644 |
627 deps = [ | 645 deps = [ |
628 ":remoting_core", | 646 ":remoting_core", |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 # GYP version: //remoting/remoting_host_win.gypi:remoting_me2me_host | 818 # GYP version: //remoting/remoting_host_win.gypi:remoting_me2me_host |
801 executable("remoting_me2me_host") { | 819 executable("remoting_me2me_host") { |
802 configs += [ | 820 configs += [ |
803 "//build/config/compiler:wexit_time_destructors", | 821 "//build/config/compiler:wexit_time_destructors", |
804 "//build/config/win:windowed", | 822 "//build/config/win:windowed", |
805 ] | 823 ] |
806 | 824 |
807 defines = [ "BINARY=BINARY_HOST_ME2ME" ] | 825 defines = [ "BINARY=BINARY_HOST_ME2ME" ] |
808 | 826 |
809 deps = [ | 827 deps = [ |
| 828 ":dpi_aware_exe_manifest", |
810 ":remoting_core", | 829 ":remoting_core", |
811 ":remoting_windows_resources", | 830 ":remoting_windows_resources", |
812 ] | 831 ] |
813 | 832 |
814 sources = [ | 833 sources = [ |
815 "$root_gen_dir/remoting/version.rc", | 834 "$root_gen_dir/remoting/version.rc", |
816 "win/entry_point.cc", | 835 "win/entry_point.cc", |
817 ] | 836 ] |
818 | 837 |
819 output_name = "remoting_host" | 838 output_name = "remoting_host" |
820 | 839 |
821 ldflags = [ | 840 ldflags = [ |
822 "/MANIFEST:EMBED", | |
823 "/MANIFESTINPUT:" + | |
824 rebase_path("win/dpi_aware.manifest", root_build_dir), | |
825 "/ENTRY:HostEntryPoint", | 841 "/ENTRY:HostEntryPoint", |
826 | |
827 # "/NODEFAULTLIB", | 842 # "/NODEFAULTLIB", |
828 ] | 843 ] |
829 } | 844 } |
830 } else { | 845 } else { |
831 executable("remoting_me2me_host") { | 846 executable("remoting_me2me_host") { |
832 configs += [ "//remoting:version" ] | 847 configs += [ "//remoting:version" ] |
833 | 848 |
834 sources = [ | 849 sources = [ |
835 "host_main.cc", | 850 "host_main.cc", |
836 "host_main.h", | 851 "host_main.h", |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 "--target_arch", | 1135 "--target_arch", |
1121 "$target_cpu", | 1136 "$target_cpu", |
1122 rebase_path("$root_out_dir/remoting-me2me-host-$current_os.zip", | 1137 rebase_path("$root_out_dir/remoting-me2me-host-$current_os.zip", |
1123 root_build_dir), | 1138 root_build_dir), |
1124 rebase_path(outputs[0], root_build_dir), | 1139 rebase_path(outputs[0], root_build_dir), |
1125 ] | 1140 ] |
1126 } | 1141 } |
1127 } | 1142 } |
1128 } | 1143 } |
1129 } | 1144 } |
OLD | NEW |