Added option to build with libheif.

This commit is contained in:
Бранимир Караџић
2024-06-11 17:58:39 -07:00
parent 98a40e8533
commit c4268ed766
5 changed files with 78 additions and 3 deletions

View File

@@ -17,6 +17,12 @@ project "bimg_decode"
path.join(BIMG_DIR, "src/image_decode.*"),
}
if _OPTIONS["with-libheif"] then
defines {
"BIMG_DECODE_HEIF=1",
}
end
using_bx()
configuration { "linux-*" }

View File

@@ -18,6 +18,11 @@ newoption {
description = "Enable building tools.",
}
newoption {
trigger = "with-libheif",
description = "Enable building with libheif HEIF and AVIF file format decoder.",
}
solution "bimg"
configurations {
"Debug",

View File

@@ -21,6 +21,14 @@ project "texturec"
"bimg",
}
if _OPTIONS["with-libheif"] then
links {
"heif",
}
configuration {}
end
using_bx()
configuration { "mingw-*" }