Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library") |
Sergiusz Bazanski | 838cf65 | 2019-07-16 23:31:25 +0200 | [diff] [blame] | 2 | load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") |
| 3 | |
| 4 | proto_library( |
| 5 | name = "proto_proto", |
| 6 | srcs = ["topo.proto"], |
| 7 | visibility = ["//visibility:public"], |
| 8 | ) |
| 9 | |
| 10 | go_proto_library( |
| 11 | name = "proto_go_proto", |
Sergiusz Bazanski | 61594bb | 2019-07-21 15:20:51 +0200 | [diff] [blame] | 12 | importpath = "code.hackerspace.pl/hscloud/dc/topo/proto", |
Sergiusz Bazanski | 838cf65 | 2019-07-16 23:31:25 +0200 | [diff] [blame] | 13 | proto = ":proto_proto", |
| 14 | visibility = ["//visibility:public"], |
| 15 | ) |
Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 16 | |
| 17 | go_library( |
| 18 | name = "go_default_library", |
Sergiusz Bazanski | 838cf65 | 2019-07-16 23:31:25 +0200 | [diff] [blame] | 19 | embed = [":proto_go_proto"], |
Sergiusz Bazanski | 61594bb | 2019-07-21 15:20:51 +0200 | [diff] [blame] | 20 | importpath = "code.hackerspace.pl/hscloud/dc/topo/proto", |
Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 21 | visibility = ["//visibility:public"], |
| 22 | ) |