skia2/bazel/libpng.bazel

39 lines
828 B
Plaintext
Raw Normal View History

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"],
)