You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
828 B

genrule(
name = "prebuilt_pnglibconf",
srcs = ["scripts/pnglibconf.h.prebuilt"],
outs = ["pnglibconf.h"],
cmd = "cp $< $@",
)
cc_library(
name = "libpng",
hdrs = ["png.h"],
includes = ["."],
srcs = [
"png.c",
"pngerror.c",
"pngget.c",
"pngmem.c",
"pngpread.c",
"pngread.c",
"pngrio.c",
"pngrtran.c",
"pngrutil.c",
"pngset.c",
"pngtrans.c",
"pngwio.c",
"pngwrite.c",
"pngwtran.c",
"pngwutil.c",
] + [
":prebuilt_pnglibconf",
"pngconf.h",
"pngdebug.h",
"pnginfo.h",
"pngpriv.h",
"pngstruct.h",
], # TODO(mtklein): SSE/NEON srcs?
deps = ["@bazel_tools//third_party/zlib"],
visibility = ["//visibility:public"],
)