-
Notifications
You must be signed in to change notification settings - Fork 5
/
BUILD.bazel
37 lines (33 loc) · 1.15 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
# gazelle:prefix github.com/grahamjenson/bazel-golang-wasm-proto
gazelle(name = "gazelle")
buildifier(name = "buildifier")
go_library(
name = "go_default_library",
srcs = ["//wasm:files"],
importpath = "github.com/grahamjenson/bazel-golang-wasm-proto",
visibility = ["//visibility:private"],
deps = [
"//protos/api:go_default_library",
"//server:go_default_library",
"@com_github_maxence_charriere_go_app_v9//pkg/app:go_default_library",
],
)
go_binary(
name = "server",
args = [
"--bootstrap-css-path=$(location @com_github_bootstrap//file:bootstrap.css)",
"--wasm-path=$(location //wasm:app.wasm)",
"--icon-path=$(location //wasm:icon)",
],
data = [
"//wasm:app.wasm",
"//wasm:icon",
"@com_github_bootstrap//file:bootstrap.css",
"@com_github_ec2instances//file:instances.json",
],
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)