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 | |
49 # Construct a target to combine the given manifest files into a .rc file. | 45 # Construct a target to combine the given manifest files into a .rc file. |
50 # | 46 # |
51 # Variables for the windows_manifest template: | 47 # Variables for the windows_manifest template: |
52 # | 48 # |
53 # sources: (required) | 49 # sources: (required) |
54 # List of source .manifest files to add. | 50 # List of source .manifest files to add. |
55 # | 51 # |
56 # type: "dll" or "exe" (required) | 52 # type: "dll" or "exe" (required) |
57 # Indicates the type of target that this manifest will be used for. | 53 # Indicates the type of target that this manifest will be used for. |
58 # DLLs and EXEs have different manifest resource IDs. | 54 # DLLs and EXEs have different manifest resource IDs. |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 template("windows_manifest") { | 169 template("windows_manifest") { |
174 group(target_name) { | 170 group(target_name) { |
175 # Prevent unused variable warnings on non-Windows platforms. | 171 # Prevent unused variable warnings on non-Windows platforms. |
176 assert(invoker.type == "exe" || invoker.type == "dll") | 172 assert(invoker.type == "exe" || invoker.type == "dll") |
177 assert(invoker.sources != "") | 173 assert(invoker.sources != "") |
178 assert(!defined(invoker.deps) || invoker.deps != "") | 174 assert(!defined(invoker.deps) || invoker.deps != "") |
179 assert(!defined(invoker.visibility) || invoker.visibility != "") | 175 assert(!defined(invoker.visibility) || invoker.visibility != "") |
180 } | 176 } |
181 } | 177 } |
182 } | 178 } |
OLD | NEW |