summaryrefslogtreecommitdiff
path: root/chromium/chrome/updater/protos
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/updater/protos')
-rw-r--r--chromium/chrome/updater/protos/BUILD.gn25
1 files changed, 25 insertions, 0 deletions
diff --git a/chromium/chrome/updater/protos/BUILD.gn b/chromium/chrome/updater/protos/BUILD.gn
new file mode 100644
index 00000000000..c035f2c0f47
--- /dev/null
+++ b/chromium/chrome/updater/protos/BUILD.gn
@@ -0,0 +1,25 @@
+# Copyright 2020 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//third_party/protobuf/proto_library.gni")
+
+# This wrapper with empty |sources| is required to add "protobuf_config" as
+# |all_dependent_configs|, in order to set proper |include_dirs| and |defines|.
+# A "proto_library" target cannot set |all_dependent_configs| variable.
+group("omaha_proto") {
+ all_dependent_configs = [ "//third_party/protobuf:protobuf_config" ]
+ public_deps = [
+ ":proto",
+ "//third_party/protobuf:protobuf_lite",
+ ]
+}
+
+proto_library("proto") {
+ proto_in_dir = "."
+ sources = [
+ "message_set.proto",
+ "omaha_settings.proto",
+ ]
+ visibility = [ ":omaha_proto" ]
+}