Sergiusz Bazanski | 0581bbf | 2020-05-11 03:21:32 +0200 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| 2 | load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") |
| 3 | |
| 4 | proto_library( |
| 5 | name = "proto_proto", |
| 6 | srcs = ["modproxy.proto"], |
| 7 | visibility = ["//visibility:public"], |
| 8 | ) |
| 9 | |
| 10 | go_proto_library( |
| 11 | name = "proto_go_proto", |
| 12 | compilers = ["@io_bazel_rules_go//proto:go_grpc"], |
| 13 | importpath = "code.hackerspace.pl/hscloud/games/factorio/modproxy/proto", |
| 14 | proto = ":proto_proto", |
| 15 | visibility = ["//visibility:public"], |
| 16 | ) |
| 17 | |
| 18 | go_library( |
| 19 | name = "go_default_library", |
| 20 | embed = [":proto_go_proto"], |
| 21 | importpath = "code.hackerspace.pl/hscloud/games/factorio/modproxy/proto", |
| 22 | visibility = ["//visibility:public"], |
| 23 | ) |