OLD | NEW |
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 185 } |
186 } | 186 } |
187 | 187 |
188 # Run the proto compiler over the generated file and make it a component. | 188 # Run the proto compiler over the generated file and make it a component. |
189 component("cloud_policy_proto_generated_compile") { | 189 component("cloud_policy_proto_generated_compile") { |
190 public_deps = [ | 190 public_deps = [ |
191 ":cloud_policy_proto_generated_compile_proto", | 191 ":cloud_policy_proto_generated_compile_proto", |
192 ] | 192 ] |
193 } | 193 } |
194 proto_library("cloud_policy_proto_generated_compile_proto") { | 194 proto_library("cloud_policy_proto_generated_compile_proto") { |
195 visibility = [ | 195 visibility = [ ":cloud_policy_proto_generated_compile" ] |
196 ":cloud_policy_proto_generated_compile", | |
197 ":chrome_settings_proto_generated_compile", | |
198 ] | |
199 sources = [ | 196 sources = [ |
200 cloud_policy_proto_path, | 197 cloud_policy_proto_path, |
201 ] | 198 ] |
202 | 199 |
203 proto_out_dir = "components/policy/proto" | 200 proto_out_dir = "components/policy/proto" |
204 cc_generator_options = "dllexport_decl=POLICY_PROTO_EXPORT:" | 201 cc_generator_options = "dllexport_decl=POLICY_PROTO_EXPORT:" |
205 cc_include = "components/policy/proto/policy_proto_export.h" | 202 cc_include = "components/policy/proto/policy_proto_export.h" |
206 component_build_force_source_set = true | 203 component_build_force_source_set = true |
207 defines = [ "POLICY_PROTO_COMPILATION" ] | 204 defines = [ "POLICY_PROTO_COMPILATION" ] |
208 | 205 |
209 deps = [ | 206 deps = [ |
210 ":cloud_policy_code_generate", | 207 ":cloud_policy_code_generate", |
211 ] | 208 ] |
212 } | 209 } |
213 | 210 |
214 # This target builds the "full" protobuf, used for tests only. | 211 # This target builds the "full" protobuf, used for tests only. |
215 component("chrome_settings_proto_generated_compile") { | 212 proto_library("chrome_settings_proto") { |
216 testonly = true | 213 testonly = true |
217 public_deps = [ | |
218 ":chrome_settings_proto_generated_compile_proto", | |
219 ":cloud_policy_proto_generated_compile_proto", | |
220 ] | |
221 } | |
222 proto_library("chrome_settings_proto_generated_compile_proto") { | |
223 testonly = true | |
224 visibility = [ ":chrome_settings_proto_generated_compile" ] | |
225 sources = [ | 214 sources = [ |
226 chrome_settings_proto_path, | 215 chrome_settings_proto_path, |
227 ] | 216 ] |
228 | |
229 proto_out_dir = "components/policy/proto" | 217 proto_out_dir = "components/policy/proto" |
230 cc_generator_options = "dllexport_decl=POLICY_PROTO_EXPORT:" | |
231 cc_include = "components/policy/proto/policy_proto_export.h" | |
232 component_build_force_source_set = true | |
233 defines = [ "POLICY_PROTO_COMPILATION" ] | |
234 | 218 |
235 deps = [ | 219 deps = [ |
236 ":cloud_policy_code_generate", | 220 ":cloud_policy_code_generate", |
| 221 ":cloud_policy_proto_generated_compile", |
237 ] | 222 ] |
238 } | 223 } |
239 | 224 |
240 static_library("generated") { | 225 static_library("generated") { |
241 sources = [ | 226 sources = [ |
242 constants_header_path, | 227 constants_header_path, |
243 constants_source_path, | 228 constants_source_path, |
244 protobuf_decoder_path, | 229 protobuf_decoder_path, |
245 risk_tag_header_path, | 230 risk_tag_header_path, |
246 ] | 231 ] |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 ] + grit_defines | 384 ] + grit_defines |
400 if (is_chrome_branded) { | 385 if (is_chrome_branded) { |
401 args += [ "--include_google_admx" ] | 386 args += [ "--include_google_admx" ] |
402 } | 387 } |
403 deps = [ | 388 deps = [ |
404 ":add_version", | 389 ":add_version", |
405 ":policy_templates", | 390 ":policy_templates", |
406 ] | 391 ] |
407 } | 392 } |
408 } | 393 } |
OLD | NEW |