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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/policy/tools/generate_policy_source.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/toolchain/toolchain.gni") 7 import("//build/toolchain/toolchain.gni")
8 import("//components/policy/resources/policy_templates.gni") 8 import("//components/policy/resources/policy_templates.gni")
9 import("//third_party/protobuf/proto_library.gni") 9 import("//third_party/protobuf/proto_library.gni")
10 import("//tools/grit/grit_rule.gni") 10 import("//tools/grit/grit_rule.gni")
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 inputs = [ 77 inputs = [
78 chrome_version_abspath, 78 chrome_version_abspath,
79 "resources/policy_templates.json", 79 "resources/policy_templates.json",
80 ] 80 ]
81 outputs = [ 81 outputs = [
82 constants_header_path, 82 constants_header_path,
83 constants_source_path, 83 constants_source_path,
84 protobuf_decoder_path, 84 protobuf_decoder_path,
85 chrome_settings_proto_path, 85 chrome_settings_proto_path,
86 cloud_policy_proto_path, 86 cloud_policy_proto_path,
87 cloud_policy_full_runtime_proto_path,
88 app_restrictions_path, 87 app_restrictions_path,
89 risk_tag_header_path, 88 risk_tag_header_path,
90 ] 89 ]
91 90
92 if (target_os != "android") { 91 if (target_os != "android") {
93 outputs -= [ app_restrictions_path ] 92 outputs -= [ app_restrictions_path ]
94 } 93 }
95 94
96 args = [ 95 args = [
97 "--policy-constants-header=" + 96 "--policy-constants-header=" +
98 rebase_path(constants_header_path, root_build_dir), 97 rebase_path(constants_header_path, root_build_dir),
99 "--policy-constants-source=" + 98 "--policy-constants-source=" +
100 rebase_path(constants_source_path, root_build_dir), 99 rebase_path(constants_source_path, root_build_dir),
101 "--chrome-settings-protobuf=" + 100 "--chrome-settings-protobuf=" +
102 rebase_path(chrome_settings_proto_path, root_build_dir), 101 rebase_path(chrome_settings_proto_path, root_build_dir),
103 "--cloud-policy-protobuf=" + 102 "--cloud-policy-protobuf=" +
104 rebase_path(cloud_policy_proto_path, root_build_dir), 103 rebase_path(cloud_policy_proto_path, root_build_dir),
105 "--cloud-policy-full-runtime-protobuf=" +
106 rebase_path(cloud_policy_full_runtime_proto_path, root_build_dir),
107 "--cloud-policy-decoder=" + 104 "--cloud-policy-decoder=" +
108 rebase_path(protobuf_decoder_path, root_build_dir), 105 rebase_path(protobuf_decoder_path, root_build_dir),
109 "--app-restrictions-definition=" + 106 "--app-restrictions-definition=" +
110 rebase_path(app_restrictions_path, root_build_dir), 107 rebase_path(app_restrictions_path, root_build_dir),
111 "--risk-tag-header=" + rebase_path(risk_tag_header_path, root_build_dir), 108 "--risk-tag-header=" + rebase_path(risk_tag_header_path, root_build_dir),
112 chrome_version_path, 109 chrome_version_path,
113 target_os, 110 target_os,
114 chromeos_flag, 111 chromeos_flag,
115 rebase_path("resources/policy_templates.json", root_build_dir), 112 rebase_path("resources/policy_templates.json", root_build_dir),
116 ] 113 ]
117 } 114 }
118 115
116 action("cloud_policy_full_runtime_code_generate") {
117 script = "tools/generate_policy_source.py"
118 chrome_version_abspath = "//chrome/VERSION"
119 chrome_version_path = rebase_path(chrome_version_abspath, root_build_dir)
120
121 if (is_chromeos) {
122 chromeos_flag = "1"
123 } else {
124 chromeos_flag = "0"
125 }
126
127 inputs = [
128 chrome_version_abspath,
129 "resources/policy_templates.json",
130 ]
131 outputs = [
132 cloud_policy_full_runtime_proto_path,
133 ]
134
135 args = [
136 "--cloud-policy-full-runtime-protobuf=" +
137 rebase_path(cloud_policy_full_runtime_proto_path, root_build_dir),
138 chrome_version_path,
139 target_os,
140 chromeos_flag,
141 rebase_path("resources/policy_templates.json", root_build_dir),
142 ]
143 }
144
119 policy_templates_grd_file = "resources/policy_templates.grd" 145 policy_templates_grd_file = "resources/policy_templates.grd"
120 146
121 grit("grit_policy_templates") { 147 grit("grit_policy_templates") {
122 source = policy_templates_grd_file 148 source = policy_templates_grd_file
123 use_qualified_include = true 149 use_qualified_include = true
124 output_dir = "$root_gen_dir/chrome" 150 output_dir = "$root_gen_dir/chrome"
125 outputs = [] 151 outputs = []
126 defines = [] 152 defines = []
127 153
128 if (gen_policy_templates_common) { 154 if (gen_policy_templates_common) {
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 ] + grit_defines 415 ] + grit_defines
390 if (is_chrome_branded) { 416 if (is_chrome_branded) {
391 args += [ "--include_google_admx" ] 417 args += [ "--include_google_admx" ]
392 } 418 }
393 deps = [ 419 deps = [
394 ":add_version", 420 ":add_version",
395 ":policy_templates", 421 ":policy_templates",
396 ] 422 ]
397 } 423 }
398 } 424 }
OLDNEW
« 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