-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
48 lines (48 loc) · 1.51 KB
/
BUILD
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
cc_library(
name = "libpng",
srcs = [
"Sources/libpng/png.c",
"Sources/libpng/include/pngdebug.h",
"Sources/libpng/pngerror.c",
"Sources/libpng/pngget.c",
"Sources/libpng/include/pnginfo.h",
"Sources/libpng/include/pnglibconf.h",
"Sources/libpng/pngmem.c",
"Sources/libpng/pngpread.c",
"Sources/libpng/include/pngpriv.h",
"Sources/libpng/pngread.c",
"Sources/libpng/pngrio.c",
"Sources/libpng/pngrtran.c",
"Sources/libpng/pngrutil.c",
"Sources/libpng/pngset.c",
"Sources/libpng/include/pngstruct.h",
"Sources/libpng/pngtrans.c",
"Sources/libpng/pngwio.c",
"Sources/libpng/pngwrite.c",
"Sources/libpng/pngwtran.c",
"Sources/libpng/pngwutil.c",
] + select({
"@platforms//cpu:arm64": [
"Sources/libpng/arm/arm_init.c",
"Sources/libpng/arm/filter_neon_intrinsics.c",
"Sources/libpng/arm/palette_neon_intrinsics.c",
],
"//conditions:default": [],
}),
hdrs = [
"Sources/libpng/include/libpng.h",
"Sources/libpng/include/png.h",
"Sources/libpng/include/pngconf.h"
],
includes = ["Sources/libpng/include"],
defines = select({
"@platforms//cpu:arm64": [
"PNG_ARM_NEON_OPT=2",
],
"//conditions:default": [],
}),
linkopts = ["-lm"],
deps = ["@zlib"],
visibility = ["//visibility:public"],
tags = ["swift_module=libpng"]
)