-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD.bazel
87 lines (76 loc) · 1.91 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
load("@crate_index//:defs.bzl", "aliases", "all_crate_deps")
load("@rules_rust//rust:defs.bzl", "rust_shared_library")
load("//toolchains/cc:clang.bzl", "clang_toolchain")
clang_toolchain(name = "linux_x86_64_clang")
# TODO: Try moving this rule to //src.
rust_shared_library(
name = "runtime_lib",
srcs = ["//src:runtime_files"],
aliases = aliases(normal = True),
compile_data = [
"//src/html:layout",
"//src/html:code_block",
],
proc_macro_deps = all_crate_deps(
proc_macro = True,
),
rustc_env = {
"LAYOUT_HTML": "$(location //src/html:layout)",
"CODE_BLOCK_HTML": "$(location //src/html:code_block)",
},
visibility = ["//src:__pkg__"],
deps = all_crate_deps(normal = True),
)
# gazelle:prefix github.com/attilaolah/wasm
gazelle(name = "gazelle")
buildifier(name = "buildifier")
exports_files(
[
".github/workflows/main.yml",
"docker/Dockerfile",
"package.json",
"tsconfig.json",
],
visibility = ["//visibility:public"],
)
filegroup(
name = "go_mod",
srcs = [
"go.mod",
"go.sum",
],
visibility = ["//tests:consistency_tests"],
)
filegroup(
name = "readme",
srcs = ["README.md"],
visibility = ["//tests:__pkg__"],
)
bzl_library(
name = "workspace",
srcs = ["workspace.bzl"],
)
bzl_library(
name = "deps",
srcs = ["deps.bzl"],
deps = [
"//lib:package",
"//tools:package",
],
)
bzl_library(
name = "http_archive",
srcs = ["http_archive.bzl"],
visibility = [":__subpackages__"],
)
bzl_library(
name = "versions",
srcs = ["versions.bzl"],
visibility = [
"//tests:consistency_tests",
"//tools/llvm:__pkg__",
],
)