| 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 13 matching lines...) Expand all Loading... |
| 24 if (is_win) { | 24 if (is_win) { |
| 25 import("//remoting/host/predefines_win.gni") | 25 import("//remoting/host/predefines_win.gni") |
| 26 } else if (is_mac) { | 26 } else if (is_mac) { |
| 27 import("//build/config/mac/rules.gni") | 27 import("//build/config/mac/rules.gni") |
| 28 import("//third_party/icu/config.gni") | 28 import("//third_party/icu/config.gni") |
| 29 } | 29 } |
| 30 | 30 |
| 31 # Reference this manifest to indicate that a process is per-monitor DPI aware. | 31 # Reference this manifest to indicate that a process is per-monitor DPI aware. |
| 32 dpi_aware_manifest = "//remoting/host/win/dpi_aware.manifest" | 32 dpi_aware_manifest = "//remoting/host/win/dpi_aware.manifest" |
| 33 | 33 |
| 34 # Depending on this target gives a default executable manifest with the addition | 34 # Reference this manifest to give the binary the uiAccess privilege. |
| 35 # of the DPI aware tag. | 35 enable_uiaccess_manifest = "//remoting/host/win/enable_uiaccess.manifest" |
| 36 |
| 37 # Depending on this target gives the executable a default manifest with the |
| 38 # addition of the DPI aware tag. |
| 36 windows_manifest("dpi_aware_exe_manifest") { | 39 windows_manifest("dpi_aware_exe_manifest") { |
| 37 sources = [ | 40 sources = [ |
| 38 as_invoker_manifest, | 41 as_invoker_manifest, |
| 39 common_controls_manifest, | 42 common_controls_manifest, |
| 40 default_compatibility_manifest, | 43 default_compatibility_manifest, |
| 41 dpi_aware_manifest, | 44 dpi_aware_manifest, |
| 42 ] | 45 ] |
| 43 type = "exe" | 46 type = "exe" |
| 44 } | 47 } |
| 45 | 48 |
| 46 # Depending on this target gives a default executable manifest with the addition | 49 # Depending on this target gives the executable a default manifest with the |
| 47 # of the DPI aware tag and a requestedExecutionLevel of requireAdministrator. | 50 # addition of the DPI aware tag and requestedExecutionLevel of |
| 51 # requireAdministrator. |
| 48 windows_manifest("dpi_aware_elevated_exe_manifest") { | 52 windows_manifest("dpi_aware_elevated_exe_manifest") { |
| 49 sources = [ | 53 sources = [ |
| 50 common_controls_manifest, | 54 common_controls_manifest, |
| 51 default_compatibility_manifest, | 55 default_compatibility_manifest, |
| 52 dpi_aware_manifest, | 56 dpi_aware_manifest, |
| 53 require_administrator_manifest, | 57 require_administrator_manifest, |
| 54 ] | 58 ] |
| 55 type = "exe" | 59 type = "exe" |
| 56 } | 60 } |
| 57 | 61 |
| 62 # Depending on this target gives the executable a default manifest with the |
| 63 # addition of the DPI aware tag and enables uiAccess. |
| 64 windows_manifest("dpi_aware_uiaccess_exe_manifest") { |
| 65 sources = [ |
| 66 common_controls_manifest, |
| 67 default_compatibility_manifest, |
| 68 dpi_aware_manifest, |
| 69 enable_uiaccess_manifest, |
| 70 ] |
| 71 type = "exe" |
| 72 } |
| 73 |
| 58 # GYP version: remoting/remoting_host:remoting_host_credits | 74 # GYP version: remoting/remoting_host:remoting_host_credits |
| 59 action("credits") { | 75 action("credits") { |
| 60 # We put this in $root_build_dir/gen/remoting instead of | 76 # We put this in $root_build_dir/gen/remoting instead of |
| 61 # $root_build_dir/gen/remoting/host (target_gen_dir) for | 77 # $root_build_dir/gen/remoting/host (target_gen_dir) for |
| 62 # compatibility w/ GYP, since the installer needs the file to | 78 # compatibility w/ GYP, since the installer needs the file to |
| 63 # be at the same location. | 79 # be at the same location. |
| 64 about_credits_file = "$root_build_dir/gen/remoting/CREDITS.txt" | 80 about_credits_file = "$root_build_dir/gen/remoting/CREDITS.txt" |
| 65 script = "//tools/licenses.py" | 81 script = "//tools/licenses.py" |
| 66 | 82 |
| 67 inputs = [ | 83 inputs = [ |
| (...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1552 deps = [ | 1568 deps = [ |
| 1553 ":credits", | 1569 ":credits", |
| 1554 ":remote_security_key", | 1570 ":remote_security_key", |
| 1555 ":remoting_core", | 1571 ":remoting_core", |
| 1556 ":remoting_desktop", | 1572 ":remoting_desktop", |
| 1557 ":remoting_me2me_host", | 1573 ":remoting_me2me_host", |
| 1558 ":remoting_native_messaging_host", | 1574 ":remoting_native_messaging_host", |
| 1559 ":remoting_native_messaging_manifests", | 1575 ":remoting_native_messaging_manifests", |
| 1560 ":remoting_start_host", | 1576 ":remoting_start_host", |
| 1561 "it2me:remote_assistance_host", | 1577 "it2me:remote_assistance_host", |
| 1578 "it2me:remote_assistance_host_uiaccess", |
| 1562 "//third_party/icu:icudata", | 1579 "//third_party/icu:icudata", |
| 1563 ] | 1580 ] |
| 1564 | 1581 |
| 1565 _output = "$root_out_dir/remoting-me2me-host-$target_os.zip" | 1582 _output = "$root_out_dir/remoting-me2me-host-$target_os.zip" |
| 1566 | 1583 |
| 1567 outputs = [ | 1584 outputs = [ |
| 1568 _output, | 1585 _output, |
| 1569 ] | 1586 ] |
| 1570 if (is_chrome_branded) { | 1587 if (is_chrome_branded) { |
| 1571 _branding = "Chrome" | 1588 _branding = "Chrome" |
| 1572 } else { | 1589 } else { |
| 1573 _branding = "Chromium" | 1590 _branding = "Chromium" |
| 1574 } | 1591 } |
| 1575 | 1592 |
| 1576 if (is_official_build) { | 1593 if (is_official_build) { |
| 1577 _official_build = "1" | 1594 _official_build = "1" |
| 1578 } else { | 1595 } else { |
| 1579 _official_build = "0" | 1596 _official_build = "0" |
| 1580 } | 1597 } |
| 1581 | 1598 |
| 1582 # Due to GN build issue http://crbug.com/633650, we need to actively set | 1599 # Due to GN build issue http://crbug.com/633650, we need to actively set |
| 1583 # inputs parameter to tell GN to depend on these files. So change to each | 1600 # inputs parameter to tell GN to depend on these files. So change to each |
| 1584 # following files will trigger this target to be rebuilt. | 1601 # following files will trigger this target to be rebuilt. |
| 1585 # TODO(zijiehe): Remove inputs parameter once bug 633650 has been | 1602 # TODO(zijiehe): Remove inputs parameter once bug 633650 has been |
| 1586 # addressed. | 1603 # addressed. |
| 1587 inputs = [ | 1604 inputs = [ |
| 1588 "$root_out_dir/remote_assistance_host.exe", | 1605 "$root_out_dir/remote_assistance_host.exe", |
| 1606 "$root_out_dir/remote_assistance_host_uiaccess.exe", |
| 1589 "$root_out_dir/remote_security_key.exe", | 1607 "$root_out_dir/remote_security_key.exe", |
| 1590 "$root_out_dir/remoting_core.dll", | 1608 "$root_out_dir/remoting_core.dll", |
| 1591 "$root_out_dir/remoting_desktop.exe", | 1609 "$root_out_dir/remoting_desktop.exe", |
| 1592 "$root_out_dir/remoting_host.exe", | 1610 "$root_out_dir/remoting_host.exe", |
| 1593 "$root_out_dir/remoting_native_messaging_host.exe", | 1611 "$root_out_dir/remoting_native_messaging_host.exe", |
| 1594 "$root_out_dir/remoting_start_host.exe", | 1612 "$root_out_dir/remoting_start_host.exe", |
| 1595 "$root_gen_dir/remoting/CREDITS.txt", | 1613 "$root_gen_dir/remoting/CREDITS.txt", |
| 1596 "$root_out_dir/remoting/com.google.chrome.remote_assistance.json", | 1614 "$root_out_dir/remoting/com.google.chrome.remote_assistance.json", |
| 1597 "$root_out_dir/remoting/com.google.chrome.remote_desktop.json", | 1615 "$root_out_dir/remoting/com.google.chrome.remote_desktop.json", |
| 1598 "$root_out_dir/icudtl.dat", | 1616 "$root_out_dir/icudtl.dat", |
| 1599 ] | 1617 ] |
| 1600 | 1618 |
| 1601 _generated_files = rebase_path(inputs, root_build_dir) | 1619 _generated_files = rebase_path(inputs, root_build_dir) |
| 1602 _generated_files += [ rebase_path("//remoting/resources/chromoting.ico") ] | 1620 _generated_files += [ rebase_path("//remoting/resources/chromoting.ico") ] |
| 1603 | 1621 |
| 1604 # _generated_dst_files must contain the same files in the same order as | 1622 # _generated_dst_files must contain the same files in the same order as |
| 1605 # _generated_files, otherwise the Windows MSI will not be built correctly. | 1623 # _generated_files, otherwise the Windows MSI will not be built correctly. |
| 1606 _generated_dst_files = [ | 1624 _generated_dst_files = [ |
| 1607 "files/remote_assistance_host.exe", | 1625 "files/remote_assistance_host.exe", |
| 1626 "files/remote_assistance_host_uiaccess.exe", |
| 1608 "files/remote_security_key.exe", | 1627 "files/remote_security_key.exe", |
| 1609 "files/remoting_core.dll", | 1628 "files/remoting_core.dll", |
| 1610 "files/remoting_desktop.exe", | 1629 "files/remoting_desktop.exe", |
| 1611 "files/remoting_host.exe", | 1630 "files/remoting_host.exe", |
| 1612 "files/remoting_native_messaging_host.exe", | 1631 "files/remoting_native_messaging_host.exe", |
| 1613 "files/remoting_start_host.exe", | 1632 "files/remoting_start_host.exe", |
| 1614 "files/CREDITS.txt", | 1633 "files/CREDITS.txt", |
| 1615 "files/com.google.chrome.remote_assistance.json", | 1634 "files/com.google.chrome.remote_assistance.json", |
| 1616 "files/com.google.chrome.remote_desktop.json", | 1635 "files/com.google.chrome.remote_desktop.json", |
| 1617 "files/icudtl.dat", | 1636 "files/icudtl.dat", |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1963 root_build_dir), | 1982 root_build_dir), |
| 1964 rebase_path(outputs[0], root_build_dir), | 1983 rebase_path(outputs[0], root_build_dir), |
| 1965 ] | 1984 ] |
| 1966 } | 1985 } |
| 1967 } else { | 1986 } else { |
| 1968 group("remoting_host_installation") { | 1987 group("remoting_host_installation") { |
| 1969 } | 1988 } |
| 1970 } | 1989 } |
| 1971 } | 1990 } |
| 1972 } | 1991 } |
| OLD | NEW |