|
|
@ -1,4 +1,4 @@
|
|
|
|
load("@rules_go//go:def.bzl", "go_binary", "go_library")
|
|
|
|
load("@rules_go//go:def.bzl", "go_binary", "go_library", "go_cross_binary")
|
|
|
|
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
go_library(
|
|
|
|
name = "echo_lib",
|
|
|
|
name = "echo_lib",
|
|
|
@ -6,11 +6,9 @@ go_library(
|
|
|
|
importpath = "code.ndumas.com/ndumas/gomud/cmd/echo",
|
|
|
|
importpath = "code.ndumas.com/ndumas/gomud/cmd/echo",
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
deps = [
|
|
|
|
deps = [
|
|
|
|
"//:gomud",
|
|
|
|
|
|
|
|
"//engine",
|
|
|
|
|
|
|
|
"//logger",
|
|
|
|
"//logger",
|
|
|
|
"//telnet",
|
|
|
|
"//telnet",
|
|
|
|
"@com_github_engoengine_ecs//:ecs",
|
|
|
|
"@com_github_threedotslabs_watermill//:watermill",
|
|
|
|
"@com_github_threedotslabs_watermill//message",
|
|
|
|
"@com_github_threedotslabs_watermill//message",
|
|
|
|
"@com_github_threedotslabs_watermill//message/router/middleware",
|
|
|
|
"@com_github_threedotslabs_watermill//message/router/middleware",
|
|
|
|
"@com_github_threedotslabs_watermill//message/router/plugin",
|
|
|
|
"@com_github_threedotslabs_watermill//message/router/plugin",
|
|
|
@ -23,11 +21,19 @@ go_binary(
|
|
|
|
embed = [":echo_lib"],
|
|
|
|
embed = [":echo_lib"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
x_defs = {
|
|
|
|
x_defs = {
|
|
|
|
"code.ndumas.com/ndumas/gomud.Version": "STABLE_GIT_VERSION",
|
|
|
|
"code.ndumas.com/ndumas/gomud.Version":"STABLE_GIT_VERSION",
|
|
|
|
"code.ndumas.com/ndumas/gomud.Build": "STABLE_GIT_COMMIT",
|
|
|
|
"code.ndumas.com/ndumas/gomud.Build":"STABLE_GIT_COMMIT",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
go_cross_binary(
|
|
|
|
|
|
|
|
name = "cross_binary",
|
|
|
|
|
|
|
|
target = ":echo",
|
|
|
|
|
|
|
|
sdk_version = "1.21.0",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
load("@rules_pkg//:pkg.bzl", "pkg_tar")
|
|
|
|
load("@rules_pkg//:pkg.bzl", "pkg_tar")
|
|
|
|
|
|
|
|
|
|
|
|
pkg_tar(
|
|
|
|
pkg_tar(
|
|
|
|