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

Unified Diff: components/policy/BUILD.gn

Issue 2690563002: Full runtime cloud policy proto will not be generated by default.. (Closed)
Patch Set: Created 3 years, 10 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/tools/generate_policy_source.py » ('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 e6aea95c79616abde1925c88193b90980fed02ee..e4c423ac4e23faa03f36983c57d230180bd1ceff 100644
--- a/components/policy/BUILD.gn
+++ b/components/policy/BUILD.gn
@@ -84,7 +84,6 @@ action("cloud_policy_code_generate") {
protobuf_decoder_path,
chrome_settings_proto_path,
cloud_policy_proto_path,
- cloud_policy_full_runtime_proto_path,
app_restrictions_path,
risk_tag_header_path,
]
@@ -102,8 +101,6 @@ action("cloud_policy_code_generate") {
rebase_path(chrome_settings_proto_path, root_build_dir),
"--cloud-policy-protobuf=" +
rebase_path(cloud_policy_proto_path, root_build_dir),
- "--cloud-policy-full-runtime-protobuf=" +
- rebase_path(cloud_policy_full_runtime_proto_path, root_build_dir),
"--cloud-policy-decoder=" +
rebase_path(protobuf_decoder_path, root_build_dir),
"--app-restrictions-definition=" +
@@ -116,6 +113,35 @@ action("cloud_policy_code_generate") {
]
}
+action("cloud_policy_full_runtime_code_generate") {
+ script = "tools/generate_policy_source.py"
+ chrome_version_abspath = "//chrome/VERSION"
+ chrome_version_path = rebase_path(chrome_version_abspath, root_build_dir)
+
+ if (is_chromeos) {
+ chromeos_flag = "1"
+ } else {
+ chromeos_flag = "0"
+ }
+
+ inputs = [
+ chrome_version_abspath,
+ "resources/policy_templates.json",
+ ]
+ outputs = [
+ cloud_policy_full_runtime_proto_path,
+ ]
+
+ args = [
+ "--cloud-policy-full-runtime-protobuf=" +
+ rebase_path(cloud_policy_full_runtime_proto_path, root_build_dir),
+ chrome_version_path,
+ target_os,
+ chromeos_flag,
+ rebase_path("resources/policy_templates.json", root_build_dir),
+ ]
+}
+
policy_templates_grd_file = "resources/policy_templates.grd"
grit("grit_policy_templates") {
« no previous file with comments | « no previous file | components/policy/tools/generate_policy_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698