| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//remoting/build/config/remoting_build.gni") | 5 import("//remoting/build/config/remoting_build.gni") |
| 6 import("//remoting/host/installer/win/generate_clsids.gni") | 6 import("//remoting/host/installer/win/generate_clsids.gni") |
| 7 import("//build/toolchain/win/midl.gni") | 7 import("//build/toolchain/win/midl.gni") |
| 8 import("//build/win/message_compiler.gni") | 8 import("//build/win/message_compiler.gni") |
| 9 | 9 |
| 10 group("all") { | 10 group("all") { |
| 11 testonly = true | 11 testonly = true |
| 12 | 12 |
| 13 deps = [ | 13 deps = [ |
| 14 ":remoting_console", | 14 ":remoting_console", |
| 15 ":remoting_desktop", | 15 ":remoting_desktop", |
| 16 ":remoting_me2me_host", | 16 ":remoting_me2me_host", |
| 17 ":remoting_native_messaging_host", | 17 ":remoting_native_messaging_host", |
| 18 "//remoting/host/security_key:remote_security_key", | 18 "//remoting/host/security_key:remote_security_key", |
| 19 ] | 19 ] |
| 20 } | 20 } |
| 21 | 21 |
| 22 # Reference this manifest to indicate that a process is per-monitor DPI aware. | 22 # Reference this manifest to indicate that a process is per-monitor DPI aware. |
| 23 dpi_aware_manifest = "//remoting/host/win/dpi_aware.manifest" | 23 dpi_aware_manifest = "//remoting/host/win/dpi_aware.manifest" |
| 24 | 24 |
| 25 # Reference this manifest to give the binary the uiAccess privilege. | 25 # Reference this manifest to give the binary the uiAccess privilege. |
| 26 enable_uiaccess_manifest = "//remoting/host/win/enable_uiaccess.manifest" | 26 enable_uiaccess_manifest = "//remoting/host/win/enable_uiaccess.manifest" |
| 27 enable_uiaccess_require_admin_manifest = |
| 28 "//remoting/host/win/enable_uiaccess_require_admin.manifest" |
| 27 | 29 |
| 28 # Depending on this target gives a default executable manifest with the addition | 30 # Depending on this target gives a default executable manifest with the addition |
| 29 # of the DPI aware tag. | 31 # of the DPI aware tag. |
| 30 windows_manifest("dpi_aware_exe_manifest") { | 32 windows_manifest("dpi_aware_exe_manifest") { |
| 31 sources = [ | 33 sources = [ |
| 32 as_invoker_manifest, | 34 as_invoker_manifest, |
| 33 common_controls_manifest, | 35 common_controls_manifest, |
| 34 default_compatibility_manifest, | 36 default_compatibility_manifest, |
| 35 dpi_aware_manifest, | 37 dpi_aware_manifest, |
| 36 ] | 38 ] |
| (...skipping 17 matching lines...) Expand all Loading... |
| 54 windows_manifest("dpi_aware_uiaccess_exe_manifest") { | 56 windows_manifest("dpi_aware_uiaccess_exe_manifest") { |
| 55 sources = [ | 57 sources = [ |
| 56 common_controls_manifest, | 58 common_controls_manifest, |
| 57 default_compatibility_manifest, | 59 default_compatibility_manifest, |
| 58 dpi_aware_manifest, | 60 dpi_aware_manifest, |
| 59 enable_uiaccess_manifest, | 61 enable_uiaccess_manifest, |
| 60 ] | 62 ] |
| 61 type = "exe" | 63 type = "exe" |
| 62 } | 64 } |
| 63 | 65 |
| 66 # Depending on this target gives the executable a default manifest with the |
| 67 # addition of the DPI aware tag and enables uiAccess. |
| 68 windows_manifest("dpi_aware_uiaccess_require_admin_exe_manifest") { |
| 69 sources = [ |
| 70 common_controls_manifest, |
| 71 default_compatibility_manifest, |
| 72 dpi_aware_manifest, |
| 73 enable_uiaccess_require_admin_manifest, |
| 74 ] |
| 75 type = "exe" |
| 76 } |
| 77 |
| 64 source_set("win") { | 78 source_set("win") { |
| 65 sources = [ | 79 sources = [ |
| 66 "com_imported_mstscax.tlh", | 80 "com_imported_mstscax.tlh", |
| 67 "com_security.cc", | 81 "com_security.cc", |
| 68 "com_security.h", | 82 "com_security.h", |
| 69 "elevation_helpers.cc", | 83 "elevation_helpers.cc", |
| 70 "elevation_helpers.h", | 84 "elevation_helpers.h", |
| 71 "launch_process_with_token.cc", | 85 "launch_process_with_token.cc", |
| 72 "launch_process_with_token.h", | 86 "launch_process_with_token.h", |
| 73 "omaha.cc", | 87 "omaha.cc", |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 ] | 421 ] |
| 408 | 422 |
| 409 defines = host_predefines + [ "BINARY=BINARY_DESKTOP" ] | 423 defines = host_predefines + [ "BINARY=BINARY_DESKTOP" ] |
| 410 | 424 |
| 411 deps = [ | 425 deps = [ |
| 412 ":remoting_core", | 426 ":remoting_core", |
| 413 ":remoting_windows_resources", | 427 ":remoting_windows_resources", |
| 414 ] | 428 ] |
| 415 | 429 |
| 416 if (is_official_build) { | 430 if (is_official_build) { |
| 417 deps += [ ":dpi_aware_elevated_exe_manifest" ] | 431 deps += [ ":dpi_aware_uiaccess_require_admin_exe_manifest" ] |
| 418 } else { | 432 } else { |
| 419 deps += [ ":dpi_aware_exe_manifest" ] | 433 deps += [ ":dpi_aware_exe_manifest" ] |
| 420 } | 434 } |
| 421 | 435 |
| 422 sources = [ | 436 sources = [ |
| 423 "$root_gen_dir/remoting/version.rc", | 437 "$root_gen_dir/remoting/version.rc", |
| 424 "entry_point.cc", | 438 "entry_point.cc", |
| 425 ] | 439 ] |
| 426 | 440 |
| 427 ldflags = [ | 441 ldflags = [ |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 | 479 |
| 466 output = "$root_gen_dir/remoting/{{source_name_part}}" | 480 output = "$root_gen_dir/remoting/{{source_name_part}}" |
| 467 | 481 |
| 468 locale_dir = webapp_locale_dir | 482 locale_dir = webapp_locale_dir |
| 469 | 483 |
| 470 encoding = "utf-16" | 484 encoding = "utf-16" |
| 471 | 485 |
| 472 locales = remoting_locales | 486 locales = remoting_locales |
| 473 } | 487 } |
| 474 # TODO(GYP) More Windows remoting targets from remoting_host_win.gypi | 488 # TODO(GYP) More Windows remoting targets from remoting_host_win.gypi |
| OLD | NEW |