forked from cloudflare/workerd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
31 lines (26 loc) · 949 Bytes
/
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
load("@capnp-cpp//src/capnp:cc_capnp_library.bzl", "cc_capnp_library")
load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands")
load("@aspect_rules_js//npm:defs.bzl", "npm_link_package", "npm_package")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@npm//:capnpc-ts/package_json.bzl", capnpc_ts_bin = "bin")
cc_capnp_library(
name = "icudata-embed",
srcs = ["icudata-embed.capnp"],
include_prefix = ".",
visibility = ["//visibility:public"],
data = ["@com_googlesource_chromium_icu//:icudata"],
defines = [ "WORKERD_ICU_DATA_EMBED" ],
)
refresh_compile_commands(
name = "refresh_compile_commands",
)
npm_link_all_packages(name = "node_modules")
npm_link_package(
name = "node_modules/@workerd/jsg",
src = "//src/workerd/jsg:jsg_js",
package = "@workerd/jsg",
)
capnpc_ts_bin.capnpc_ts_binary(
name = "capnpc_ts",
visibility = ["//visibility:public"],
)