Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") |
Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 2 | |
| 3 | go_library( |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame^] | 4 | name = "topo_lib", |
Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 5 | srcs = [ |
| 6 | "main.go", |
| 7 | "service.go", |
| 8 | ], |
Sergiusz Bazanski | 61594bb | 2019-07-21 15:20:51 +0200 | [diff] [blame] | 9 | importpath = "code.hackerspace.pl/hscloud/dc/topo", |
Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 10 | visibility = ["//visibility:private"], |
| 11 | deps = [ |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame^] | 12 | "//dc/proto", |
| 13 | "//dc/topo/assets", |
| 14 | "//dc/topo/graph", |
| 15 | "//dc/topo/proto", |
| 16 | "//dc/topo/state", |
| 17 | "//go/mirko", |
| 18 | "//go/statusz", |
| 19 | "@com_github_digitalocean_go_netbox//netbox", |
| 20 | "@com_github_digitalocean_go_netbox//netbox/client", |
| 21 | "@com_github_fvbommel_sortorder//:sortorder", |
| 22 | "@com_github_golang_glog//:glog", |
Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 23 | "@com_github_golang_protobuf//proto:go_default_library", |
Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 24 | ], |
| 25 | ) |
| 26 | |
| 27 | go_binary( |
| 28 | name = "topo", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame^] | 29 | embed = [":topo_lib"], |
Sergiusz Bazanski | 9dc4b68 | 2019-04-05 23:51:49 +0200 | [diff] [blame] | 30 | visibility = ["//visibility:public"], |
| 31 | ) |