| 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/config/win/manifest.gni") |
| 8 import("//build/util/version.gni") | 8 import("//build/util/version.gni") |
| 9 import("//chrome/version.gni") | 9 import("//chrome/version.gni") |
| 10 import("//remoting/remoting_enable.gni") | 10 import("//remoting/remoting_enable.gni") |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 if (is_win) { | 25 if (is_win) { |
| 26 import("//remoting/host/predefines_win.gni") | 26 import("//remoting/host/predefines_win.gni") |
| 27 } else if (is_mac) { | 27 } else if (is_mac) { |
| 28 import("//build/config/mac/rules.gni") | 28 import("//build/config/mac/rules.gni") |
| 29 import("//third_party/icu/config.gni") | 29 import("//third_party/icu/config.gni") |
| 30 } | 30 } |
| 31 | 31 |
| 32 # Reference this manifest to indicate that a process is per-monitor DPI aware. | 32 # Reference this manifest to indicate that a process is per-monitor DPI aware. |
| 33 dpi_aware_manifest = "//remoting/host/win/dpi_aware.manifest" | 33 dpi_aware_manifest = "//remoting/host/win/dpi_aware.manifest" |
| 34 | 34 |
| 35 # Depending on this target gives a default executable manifest with the addition | 35 # Reference this manifest to give the binary the uiAccess privilege. |
| 36 # of the DPI aware tag. | 36 enable_uiaccess_manifest = "//remoting/host/win/enable_uiaccess.manifest" |
| 37 |
| 38 # Depending on this target gives the executable a default manifest with the |
| 39 # addition of the DPI aware tag. |
| 37 windows_manifest("dpi_aware_exe_manifest") { | 40 windows_manifest("dpi_aware_exe_manifest") { |
| 38 sources = [ | 41 sources = [ |
| 39 as_invoker_manifest, | 42 as_invoker_manifest, |
| 40 common_controls_manifest, | 43 common_controls_manifest, |
| 41 default_compatibility_manifest, | 44 default_compatibility_manifest, |
| 42 dpi_aware_manifest, | 45 dpi_aware_manifest, |
| 43 ] | 46 ] |
| 44 type = "exe" | 47 type = "exe" |
| 45 } | 48 } |
| 46 | 49 |
| 47 # Depending on this target gives a default executable manifest with the addition | 50 # Depending on this target gives the executable a default manifest with the |
| 48 # of the DPI aware tag and a requestedExecutionLevel of requireAdministrator. | 51 # addition of the DPI aware tag and requestedExecutionLevel of |
| 52 # requireAdministrator. |
| 49 windows_manifest("dpi_aware_elevated_exe_manifest") { | 53 windows_manifest("dpi_aware_elevated_exe_manifest") { |
| 50 sources = [ | 54 sources = [ |
| 51 common_controls_manifest, | 55 common_controls_manifest, |
| 52 default_compatibility_manifest, | 56 default_compatibility_manifest, |
| 53 dpi_aware_manifest, | 57 dpi_aware_manifest, |
| 54 require_administrator_manifest, | 58 require_administrator_manifest, |
| 55 ] | 59 ] |
| 56 type = "exe" | 60 type = "exe" |
| 57 } | 61 } |
| 58 | 62 |
| 63 # Depending on this target gives the executable a default manifest with the |
| 64 # addition of the DPI aware tag and enables uiAccess. |
| 65 windows_manifest("dpi_aware_uiaccess_exe_manifest") { |
| 66 sources = [ |
| 67 common_controls_manifest, |
| 68 default_compatibility_manifest, |
| 69 dpi_aware_manifest, |
| 70 enable_uiaccess_manifest, |
| 71 ] |
| 72 type = "exe" |
| 73 } |
| 74 |
| 59 # GYP version: remoting/remoting_host:remoting_host_credits | 75 # GYP version: remoting/remoting_host:remoting_host_credits |
| 60 action("credits") { | 76 action("credits") { |
| 61 # We put this in $root_build_dir/gen/remoting instead of | 77 # We put this in $root_build_dir/gen/remoting instead of |
| 62 # $root_build_dir/gen/remoting/host (target_gen_dir) for | 78 # $root_build_dir/gen/remoting/host (target_gen_dir) for |
| 63 # compatibility w/ GYP, since the installer needs the file to | 79 # compatibility w/ GYP, since the installer needs the file to |
| 64 # be at the same location. | 80 # be at the same location. |
| 65 about_credits_file = "$root_build_dir/gen/remoting/CREDITS.txt" | 81 about_credits_file = "$root_build_dir/gen/remoting/CREDITS.txt" |
| 66 script = "//tools/licenses.py" | 82 script = "//tools/licenses.py" |
| 67 | 83 |
| 68 inputs = [ | 84 inputs = [ |
| (...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1256 deps = [ | 1272 deps = [ |
| 1257 ":credits", | 1273 ":credits", |
| 1258 ":remote_security_key", | 1274 ":remote_security_key", |
| 1259 ":remoting_core", | 1275 ":remoting_core", |
| 1260 ":remoting_desktop", | 1276 ":remoting_desktop", |
| 1261 ":remoting_me2me_host", | 1277 ":remoting_me2me_host", |
| 1262 ":remoting_native_messaging_host", | 1278 ":remoting_native_messaging_host", |
| 1263 ":remoting_native_messaging_manifests", | 1279 ":remoting_native_messaging_manifests", |
| 1264 ":remoting_start_host", | 1280 ":remoting_start_host", |
| 1265 "it2me:remote_assistance_host", | 1281 "it2me:remote_assistance_host", |
| 1282 "it2me:remote_assistance_host_uiaccess", |
| 1266 "//third_party/icu:icudata", | 1283 "//third_party/icu:icudata", |
| 1267 ] | 1284 ] |
| 1268 | 1285 |
| 1269 _output = "$root_out_dir/remoting-me2me-host-$target_os.zip" | 1286 _output = "$root_out_dir/remoting-me2me-host-$target_os.zip" |
| 1270 | 1287 |
| 1271 outputs = [ | 1288 outputs = [ |
| 1272 _output, | 1289 _output, |
| 1273 ] | 1290 ] |
| 1274 if (is_chrome_branded) { | 1291 if (is_chrome_branded) { |
| 1275 _branding = "Chrome" | 1292 _branding = "Chrome" |
| 1276 } else { | 1293 } else { |
| 1277 _branding = "Chromium" | 1294 _branding = "Chromium" |
| 1278 } | 1295 } |
| 1279 | 1296 |
| 1280 if (is_official_build) { | 1297 if (is_official_build) { |
| 1281 _official_build = "1" | 1298 _official_build = "1" |
| 1282 } else { | 1299 } else { |
| 1283 _official_build = "0" | 1300 _official_build = "0" |
| 1284 } | 1301 } |
| 1285 | 1302 |
| 1286 # Due to GN build issue http://crbug.com/633650, we need to actively set | 1303 # Due to GN build issue http://crbug.com/633650, we need to actively set |
| 1287 # inputs parameter to tell GN to depend on these files. So change to each | 1304 # inputs parameter to tell GN to depend on these files. So change to each |
| 1288 # following files will trigger this target to be rebuilt. | 1305 # following files will trigger this target to be rebuilt. |
| 1289 # TODO(zijiehe): Remove inputs parameter once bug 633650 has been | 1306 # TODO(zijiehe): Remove inputs parameter once bug 633650 has been |
| 1290 # addressed. | 1307 # addressed. |
| 1291 inputs = [ | 1308 inputs = [ |
| 1292 "$root_out_dir/remote_assistance_host.exe", | 1309 "$root_out_dir/remote_assistance_host.exe", |
| 1310 "$root_out_dir/remote_assistance_host_uiaccess.exe", |
| 1293 "$root_out_dir/remote_security_key.exe", | 1311 "$root_out_dir/remote_security_key.exe", |
| 1294 "$root_out_dir/remoting_core.dll", | 1312 "$root_out_dir/remoting_core.dll", |
| 1295 "$root_out_dir/remoting_desktop.exe", | 1313 "$root_out_dir/remoting_desktop.exe", |
| 1296 "$root_out_dir/remoting_host.exe", | 1314 "$root_out_dir/remoting_host.exe", |
| 1297 "$root_out_dir/remoting_native_messaging_host.exe", | 1315 "$root_out_dir/remoting_native_messaging_host.exe", |
| 1298 "$root_out_dir/remoting_start_host.exe", | 1316 "$root_out_dir/remoting_start_host.exe", |
| 1299 "$root_gen_dir/remoting/CREDITS.txt", | 1317 "$root_gen_dir/remoting/CREDITS.txt", |
| 1300 "$root_out_dir/remoting/com.google.chrome.remote_assistance.json", | 1318 "$root_out_dir/remoting/com.google.chrome.remote_assistance.json", |
| 1301 "$root_out_dir/remoting/com.google.chrome.remote_desktop.json", | 1319 "$root_out_dir/remoting/com.google.chrome.remote_desktop.json", |
| 1302 "$root_out_dir/icudtl.dat", | 1320 "$root_out_dir/icudtl.dat", |
| 1303 ] | 1321 ] |
| 1304 | 1322 |
| 1305 _generated_files = rebase_path(inputs, root_build_dir) | 1323 _generated_files = rebase_path(inputs, root_build_dir) |
| 1306 _generated_files += [ rebase_path("//remoting/resources/chromoting.ico") ] | 1324 _generated_files += [ rebase_path("//remoting/resources/chromoting.ico") ] |
| 1307 | 1325 |
| 1308 # _generated_dst_files must contain the same files in the same order as | 1326 # _generated_dst_files must contain the same files in the same order as |
| 1309 # _generated_files, otherwise the Windows MSI will not be built correctly. | 1327 # _generated_files, otherwise the Windows MSI will not be built correctly. |
| 1310 _generated_dst_files = [ | 1328 _generated_dst_files = [ |
| 1311 "files/remote_assistance_host.exe", | 1329 "files/remote_assistance_host.exe", |
| 1330 "files/remote_assistance_host_uiaccess.exe", |
| 1312 "files/remote_security_key.exe", | 1331 "files/remote_security_key.exe", |
| 1313 "files/remoting_core.dll", | 1332 "files/remoting_core.dll", |
| 1314 "files/remoting_desktop.exe", | 1333 "files/remoting_desktop.exe", |
| 1315 "files/remoting_host.exe", | 1334 "files/remoting_host.exe", |
| 1316 "files/remoting_native_messaging_host.exe", | 1335 "files/remoting_native_messaging_host.exe", |
| 1317 "files/remoting_start_host.exe", | 1336 "files/remoting_start_host.exe", |
| 1318 "files/CREDITS.txt", | 1337 "files/CREDITS.txt", |
| 1319 "files/com.google.chrome.remote_assistance.json", | 1338 "files/com.google.chrome.remote_assistance.json", |
| 1320 "files/com.google.chrome.remote_desktop.json", | 1339 "files/com.google.chrome.remote_desktop.json", |
| 1321 "files/icudtl.dat", | 1340 "files/icudtl.dat", |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1667 root_build_dir), | 1686 root_build_dir), |
| 1668 rebase_path(outputs[0], root_build_dir), | 1687 rebase_path(outputs[0], root_build_dir), |
| 1669 ] | 1688 ] |
| 1670 } | 1689 } |
| 1671 } else { | 1690 } else { |
| 1672 group("remoting_host_installation") { | 1691 group("remoting_host_installation") { |
| 1673 } | 1692 } |
| 1674 } | 1693 } |
| 1675 } | 1694 } |
| 1676 } | 1695 } |
| OLD | NEW |