-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD.bazel
40 lines (37 loc) · 1.16 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
load("//lib:lib.bzl", "package_lib")
load("//lib/jpegturbo:package.bzl", JPEGTURBO_SPEC = "SPEC")
load("//toolchains/cmake:cmake.bzl", "cache_entries", "cmake_lib")
load(":package.bzl", "NAME", "STATIC_LIBS")
package(default_visibility = ["//:__subpackages__"])
package_lib()
cmake_lib(
name = NAME,
cache_entries = cache_entries(
build_shared_libs = False,
upcase = False, # WebP uses lower-case cache entries.
webp_build_anim_utils = False,
webp_build_cwebp = False,
webp_build_dwebp = False,
webp_build_extras = False,
webp_build_gif2_webp = False,
webp_build_img2_webp = False,
webp_build_vwebp = False,
webp_build_webpinfo = False,
webp_build_webpmux = False,
deps = {
"gif": {},
"jpeg": JPEGTURBO_SPEC,
"png": {},
"z": {},
},
),
out_static_libs = STATIC_LIBS,
# NOTE: //lib/tiff would be a dependency for some tools,
# but that would introduce a cyclic dependency, so we don't list it here.
deps = [
"//lib/gif",
"//lib/jpegturbo",
"//lib/png",
"//lib/z",
],
)