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

Unified Diff: components/policy/proto/BUILD.gn

Issue 1069533002: GN Windows component build fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/dom_distiller/core/BUILD.gn ('k') | components/sessions/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/proto/BUILD.gn
diff --git a/components/policy/proto/BUILD.gn b/components/policy/proto/BUILD.gn
index cc84042c5d9c98733e9c8897b45e7a42001d21ce..3b6a7b26fa57d155e52f40eac65b23482cb82c0b 100644
--- a/components/policy/proto/BUILD.gn
+++ b/components/policy/proto/BUILD.gn
@@ -4,7 +4,18 @@
import("//third_party/protobuf/proto_library.gni")
-proto_library("proto") {
+# The proto files need to be a component to avoid duplicate symbols the way the
+# dependency structure is currently. Since proto_library generates a source
+# set, here we link the result into a component.
+component("proto") {
+ public_deps = [
+ ":proto_internal",
+ ]
+}
+
+proto_library("proto_internal") {
+ visibility = [ ":proto" ]
+
sources = [
"device_management_backend.proto",
"policy_signing_key.proto",
« no previous file with comments | « components/dom_distiller/core/BUILD.gn ('k') | components/sessions/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698