blob: 109ca515fc2d803df6d17ee89b353edb92716612 [file] [log] [blame]
Mike Kleinc1cc1d82020-09-11 11:11:33 -05001genrule(
2 name = "prebuilt_pnglibconf",
3 srcs = ["scripts/pnglibconf.h.prebuilt"],
4 outs = ["pnglibconf.h"],
5 cmd = "cp $< $@",
6)
7
8cc_library(
9 name = "libpng",
10 hdrs = ["png.h"],
11 includes = ["."],
12 srcs = [
13 "png.c",
14 "pngerror.c",
15 "pngget.c",
16 "pngmem.c",
17 "pngpread.c",
18 "pngread.c",
19 "pngrio.c",
20 "pngrtran.c",
21 "pngrutil.c",
22 "pngset.c",
23 "pngtrans.c",
24 "pngwio.c",
25 "pngwrite.c",
26 "pngwtran.c",
27 "pngwutil.c",
28 ] + [
29 ":prebuilt_pnglibconf",
30 "pngconf.h",
31 "pngdebug.h",
32 "pnginfo.h",
33 "pngpriv.h",
34 "pngstruct.h",
35 ], # TODO(mtklein): SSE/NEON srcs?
36 deps = ["@bazel_tools//third_party/zlib"],
37 visibility = ["//visibility:public"],
38)