github.com/gnattishness/bazel-go-ethereum@v0.0.0-20190929123618-7022a154f56d/p2p/nat/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "go_default_library", 5 srcs = [ 6 "nat.go", 7 "natpmp.go", 8 "natupnp.go", 9 ], 10 importpath = "github.com/ethereum/go-ethereum/p2p/nat", 11 visibility = ["//visibility:public"], 12 deps = [ 13 "//log:go_default_library", 14 "@com_github_huin_goupnp//:go_default_library", 15 "@com_github_huin_goupnp//dcps/internetgateway1:go_default_library", 16 "@com_github_huin_goupnp//dcps/internetgateway2:go_default_library", 17 "@com_github_jackpal_go_nat_pmp//:go_default_library", 18 ], 19 ) 20 21 go_test( 22 name = "go_default_test", 23 srcs = [ 24 "nat_test.go", 25 "natupnp_test.go", 26 ], 27 embed = [":go_default_library"], 28 deps = ["@com_github_huin_goupnp//httpu:go_default_library"], 29 )