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

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: Mac fix 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
« no previous file with comments | « no previous file | components/policy/resources/policy_templates.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/BUILD.gn
diff --git a/components/policy/BUILD.gn b/components/policy/BUILD.gn
index c8266dea07a3f8582ad32ff99ac22f2b8ca198a4..61961e503758ea9de482f7f54a13383654da545f 100644
--- a/components/policy/BUILD.gn
+++ b/components/policy/BUILD.gn
@@ -117,6 +117,34 @@ 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
+
+ # TODO(knn) : Move this out once more targets use this.
+ if (is_chrome_branded) {
+ mac_bundle_id = "com.google.Chrome"
+ } else {
+ mac_bundle_id = "org.chromium.Chromium"
+ }
+ defines = [ "mac_bundle_id=$mac_bundle_id" ]
+ }
+ if (is_win) {
+ outputs += policy_templates_windows_outputs
+ }
+ }
+
proto_library("cloud_policy_proto_generated_compile") {
sources = [
cloud_policy_proto_path,
@@ -218,4 +246,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698