2021-06-10 00:43:03 +02:00
|
|
|
# Description:
|
|
|
|
# Single-file C++ image decoding and encoding libraries
|
|
|
|
|
|
|
|
package(
|
|
|
|
default_visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
licenses(["notice"]) # MIT license
|
|
|
|
|
2022-10-01 14:26:59 +02:00
|
|
|
COPTS = select({
|
|
|
|
"@platforms//os:windows": [],
|
|
|
|
"//conditions:default": [
|
|
|
|
"-Wno-unused-function",
|
|
|
|
"$(STACK_FRAME_UNLIMITED)",
|
|
|
|
],
|
|
|
|
})
|
2021-06-10 00:43:03 +02:00
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "stb_image",
|
|
|
|
srcs = ["stb_image.c"],
|
|
|
|
hdrs = ["stb_image.h"],
|
2022-10-01 14:26:59 +02:00
|
|
|
copts = COPTS,
|
2021-06-10 00:43:03 +02:00
|
|
|
includes = ["."],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "stb_image_write",
|
|
|
|
srcs = ["stb_image_write.c"],
|
|
|
|
hdrs = ["stb_image_write.h"],
|
2022-10-01 14:26:59 +02:00
|
|
|
copts = COPTS,
|
2021-06-10 00:43:03 +02:00
|
|
|
includes = ["."],
|
|
|
|
)
|