9568de0570
PiperOrigin-RevId: 478192521
33 lines
622 B
Plaintext
33 lines
622 B
Plaintext
# Description:
|
|
# Single-file C++ image decoding and encoding libraries
|
|
|
|
package(
|
|
default_visibility = ["//visibility:public"],
|
|
)
|
|
|
|
licenses(["notice"]) # MIT license
|
|
|
|
COPTS = select({
|
|
"@platforms//os:windows": [],
|
|
"//conditions:default": [
|
|
"-Wno-unused-function",
|
|
"$(STACK_FRAME_UNLIMITED)",
|
|
],
|
|
})
|
|
|
|
cc_library(
|
|
name = "stb_image",
|
|
srcs = ["stb_image.c"],
|
|
hdrs = ["stb_image.h"],
|
|
copts = COPTS,
|
|
includes = ["."],
|
|
)
|
|
|
|
cc_library(
|
|
name = "stb_image_write",
|
|
srcs = ["stb_image_write.c"],
|
|
hdrs = ["stb_image_write.h"],
|
|
copts = COPTS,
|
|
includes = ["."],
|
|
)
|