| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # HOW MANIFESTS WORK IN THE GN BUILD | 5 # HOW MANIFESTS WORK IN THE GN BUILD |
| 6 # | 6 # |
| 7 # Use the windows_manifest template to declare a manifest generation step. | 7 # Use the windows_manifest template to declare a manifest generation step. |
| 8 # This will combine all listed .manifest files and generate a resource file | 8 # This will combine all listed .manifest files and generate a resource file |
| 9 # referencing the resulting manifest. To link this manifest, just depend on | 9 # referencing the resulting manifest. To link this manifest, just depend on |
| 10 # the manifest target from your executable or shared library. | 10 # the manifest target from your executable or shared library. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 # Reference this manifest as a source from windows_manifest targets to get | 36 # Reference this manifest as a source from windows_manifest targets to get |
| 37 # the default Chrome common constrols compatibility. | 37 # the default Chrome common constrols compatibility. |
| 38 common_controls_manifest = "//build/win/common_controls.manifest" | 38 common_controls_manifest = "//build/win/common_controls.manifest" |
| 39 | 39 |
| 40 # Reference this manifest to request that Windows not perform any elevation | 40 # Reference this manifest to request that Windows not perform any elevation |
| 41 # when running your program. Otherwise, it might do some autodetection and | 41 # when running your program. Otherwise, it might do some autodetection and |
| 42 # request elevated privileges from the user. This is normally what you want. | 42 # request elevated privileges from the user. This is normally what you want. |
| 43 as_invoker_manifest = "//build/win/as_invoker.manifest" | 43 as_invoker_manifest = "//build/win/as_invoker.manifest" |
| 44 | 44 |
| 45 # An alternative to as_invoker_manifest when you want the application to always |
| 46 # elevate. |
| 47 require_administrator_manifest = "//build/win/require_administrator.manifest" |
| 48 |
| 45 # Construct a target to combine the given manifest files into a .rc file. | 49 # Construct a target to combine the given manifest files into a .rc file. |
| 46 # | 50 # |
| 47 # Variables for the windows_manifest template: | 51 # Variables for the windows_manifest template: |
| 48 # | 52 # |
| 49 # sources: (required) | 53 # sources: (required) |
| 50 # List of source .manifest files to add. | 54 # List of source .manifest files to add. |
| 51 # | 55 # |
| 52 # type: "dll" or "exe" (required) | 56 # type: "dll" or "exe" (required) |
| 53 # Indicates the type of target that this manifest will be used for. | 57 # Indicates the type of target that this manifest will be used for. |
| 54 # DLLs and EXEs have different manifest resource IDs. | 58 # DLLs and EXEs have different manifest resource IDs. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 template("windows_manifest") { | 173 template("windows_manifest") { |
| 170 group(target_name) { | 174 group(target_name) { |
| 171 # Prevent unused variable warnings on non-Windows platforms. | 175 # Prevent unused variable warnings on non-Windows platforms. |
| 172 assert(invoker.type == "exe" || invoker.type == "dll") | 176 assert(invoker.type == "exe" || invoker.type == "dll") |
| 173 assert(invoker.sources != "") | 177 assert(invoker.sources != "") |
| 174 assert(!defined(invoker.deps) || invoker.deps != "") | 178 assert(!defined(invoker.deps) || invoker.deps != "") |
| 175 assert(!defined(invoker.visibility) || invoker.visibility != "") | 179 assert(!defined(invoker.visibility) || invoker.visibility != "") |
| 176 } | 180 } |
| 177 } | 181 } |
| 178 } | 182 } |
| OLD | NEW |