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

Unified Diff: components/policy/BUILD.gn

Issue 929353002: Fix generate_policy_source.py to honour supported_on ranges. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Mattias' final nit. Created 5 years, 8 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 | « components/policy.gypi ('k') | 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 a708c2a63a24223dbf6d26a8f137292bf2638a47..27e3007206e540efa834d78c1c7f5d496b1d5bf8 100644
--- a/components/policy/BUILD.gn
+++ b/components/policy/BUILD.gn
@@ -64,6 +64,8 @@ if (enable_configuration_policy) {
action("cloud_policy_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"
@@ -72,6 +74,7 @@ if (enable_configuration_policy) {
}
inputs = [
+ chrome_version_abspath,
"resources/policy_templates.json",
]
outputs = [
@@ -100,6 +103,7 @@ if (enable_configuration_policy) {
rebase_path(protobuf_decoder_path, root_build_dir),
"--app-restrictions-definition=" +
rebase_path(app_restrictions_path, root_build_dir),
+ chrome_version_path,
target_os,
chromeos_flag,
rebase_path("resources/policy_templates.json", root_build_dir),
« no previous file with comments | « components/policy.gypi ('k') | components/policy/tools/generate_policy_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698