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