Serge Bazanski | b456c18 | 2020-11-16 22:46:15 +0100 | [diff] [blame] | 1 | load("@rules_proto//proto:defs.bzl", "proto_library") |
Sergiusz Bazanski | fb18c99 | 2019-05-01 12:27:03 +0200 | [diff] [blame] | 2 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
Sergiusz Bazanski | 1446e98 | 2019-07-21 16:04:23 +0200 | [diff] [blame] | 3 | load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") |
| 4 | |
| 5 | proto_library( |
| 6 | name = "proto_proto", |
Serge Bazanski | fa818da | 2021-05-06 00:12:53 +0200 | [diff] [blame] | 7 | srcs = [ |
| 8 | "invoice.proto", |
| 9 | "recurrent.proto", |
| 10 | ], |
Sergiusz Bazanski | 1446e98 | 2019-07-21 16:04:23 +0200 | [diff] [blame] | 11 | visibility = ["//visibility:public"], |
| 12 | ) |
| 13 | |
| 14 | go_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 Bazanski | fb18c99 | 2019-05-01 12:27:03 +0200 | [diff] [blame] | 21 | |
| 22 | go_library( |
| 23 | name = "go_default_library", |
Sergiusz Bazanski | 1446e98 | 2019-07-21 16:04:23 +0200 | [diff] [blame] | 24 | embed = [":proto_go_proto"], |
Sergiusz Bazanski | cea71e3 | 2019-07-21 15:30:08 +0200 | [diff] [blame] | 25 | importpath = "code.hackerspace.pl/hscloud/bgpwtf/invoice/proto", |
Sergiusz Bazanski | fb18c99 | 2019-05-01 12:27:03 +0200 | [diff] [blame] | 26 | visibility = ["//visibility:public"], |
Sergiusz Bazanski | fb18c99 | 2019-05-01 12:27:03 +0200 | [diff] [blame] | 27 | ) |