blob: a1a703310a72b6b12ac9871c444e821cd4df5484 [file] [log] [blame]
Serge Bazanskib456c182020-11-16 22:46:15 +01001load("@rules_proto//proto:defs.bzl", "proto_library")
Sergiusz Bazanskifb18c992019-05-01 12:27:03 +02002load("@io_bazel_rules_go//go:def.bzl", "go_library")
Sergiusz Bazanski1446e982019-07-21 16:04:23 +02003load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
4
5proto_library(
6 name = "proto_proto",
Serge Bazanskifa818da2021-05-06 00:12:53 +02007 srcs = [
8 "invoice.proto",
9 "recurrent.proto",
10 ],
Sergiusz Bazanski1446e982019-07-21 16:04:23 +020011 visibility = ["//visibility:public"],
12)
13
14go_proto_library(
15 name = "proto_go_proto",
16 compilers = ["@io_bazel_rules_go//proto:go_grpc"],
17 importpath = "code.hackerspace.pl/hscloud/bgpwtf/invoice/proto",
18 proto = ":proto_proto",
19 visibility = ["//visibility:public"],
20)
Sergiusz Bazanskifb18c992019-05-01 12:27:03 +020021
22go_library(
23 name = "go_default_library",
Sergiusz Bazanski1446e982019-07-21 16:04:23 +020024 embed = [":proto_go_proto"],
Sergiusz Bazanskicea71e32019-07-21 15:30:08 +020025 importpath = "code.hackerspace.pl/hscloud/bgpwtf/invoice/proto",
Sergiusz Bazanskifb18c992019-05-01 12:27:03 +020026 visibility = ["//visibility:public"],
Sergiusz Bazanskifb18c992019-05-01 12:27:03 +020027)