Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Unified Diff: components/policy/BUILD.gn

Issue 957283003: Add policy_templates target for GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Scope outputs by {policy_templates} as Gn variables are global. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/policy/BUILD.gn
diff --git a/components/policy/BUILD.gn b/components/policy/BUILD.gn
index c8266dea07a3f8582ad32ff99ac22f2b8ca198a4..8c4b9dd2b125ddc79215fbb541bccace4d49dcac 100644
--- a/components/policy/BUILD.gn
+++ b/components/policy/BUILD.gn
@@ -117,6 +117,26 @@ if (enable_configuration_policy) {
]
}
+ grit("policy_templates") {
+ import("resources/policy_templates.gni")
+ source = "resources/policy_templates.grd"
+ use_qualified_include = true
+ output_dir = "$root_gen_dir/chrome"
+ outputs = policy_templates_doc_outputs
+ if (is_android) {
+ outputs += policy_templates_android_outputs
+ }
+ if (is_linux) {
+ outputs += policy_templates_linux_outputs
+ }
+ if (is_mac) {
+ outputs += policy_templates_mac_outputs
+ }
+ if (is_win) {
+ outputs += policy_templates_windows_outputs
+ }
+ }
+
proto_library("cloud_policy_proto_generated_compile") {
sources = [
cloud_policy_proto_path,
@@ -218,4 +238,4 @@ if (enable_configuration_policy) {
]
}
}
-#TODO(GYP) policy templates, chrome_manifest_bundle
+#TODO(GYP) chrome_manifest_bundle
« no previous file with comments | « no previous file | components/policy/resources/policy_templates.gni » ('j') | components/policy/resources/policy_templates.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698