-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD.bazel
31 lines (27 loc) · 873 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("//lib:lib.bzl", "package_lib")
load("//toolchains/cmake:cmake.bzl", "cache_entries", "cmake_lib")
load(":package.bzl", "NAME", "STATIC_LIBS")
package(default_visibility = ["//:__subpackages__"])
package_lib(
github_release = ("lib{name}", "{name}"),
github_version_prefix = "",
)
CACHE_ENTRIES = cache_entries(
build_benchmarks = False,
build_shared_libs = False,
build_testing = False,
)
cmake_lib(
name = NAME,
cache_entries = {
"//config:wasm": cache_entries(
CACHE_ENTRIES,
# The C++ library uses exceptions, so enable them explicitly.
cmake_cxx_flags = "-fexceptions",
# Inlining causes duplicate symbols when linking with wasm-ld.
disable_geos_inline = True,
),
"//conditions:default": CACHE_ENTRIES,
},
out_static_libs = STATIC_LIBS,
)