| 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") {
|
|
|