add build targets
This commit is contained in:
@ -12,6 +12,6 @@ alias(
|
||||
go_library(
|
||||
name = "beornextract_lib",
|
||||
srcs = ["main.go"],
|
||||
importpath = "github.com/squk/lotr/beornextract",
|
||||
importpath = "github.com/squk/lotr/cmd/beornextract",
|
||||
deps = ["@com_github_davecgh_go_spew//spew"],
|
||||
)
|
||||
|
@ -3,6 +3,6 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
go_library(
|
||||
name = "types",
|
||||
srcs = ["card.go"],
|
||||
importpath = "github.com/squk/lotr/beornextract/types",
|
||||
importpath = "github.com/squk/lotr/cmd/beornextract/types",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
18
cmd/test/BUILD
Normal file
18
cmd/test/BUILD
Normal file
@ -0,0 +1,18 @@
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "test_lib",
|
||||
srcs = ["main.go"],
|
||||
importpath = "github.com/squk/lotr/cmd/test",
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"@com_github_davecgh_go_spew//spew",
|
||||
"@com_github_mattn_go_sqlite3//:go-sqlite3",
|
||||
],
|
||||
)
|
||||
|
||||
go_binary(
|
||||
name = "test",
|
||||
embed = [":test_lib"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
@ -1,18 +0,0 @@
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "cmd_lib",
|
||||
srcs = ["main.go"],
|
||||
importpath = "github.com/squk/lotr/sqlgen/cmd",
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"@com_github_davecgh_go_spew//spew",
|
||||
"@com_github_mattn_go_sqlite3//:go-sqlite3",
|
||||
],
|
||||
)
|
||||
|
||||
go_binary(
|
||||
name = "cmd",
|
||||
embed = [":cmd_lib"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
Reference in New Issue
Block a user