mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 12:42:35 +01:00
Added option to build with libheif.
This commit is contained in:
@@ -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-*" }
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -21,6 +21,14 @@ project "texturec"
|
||||
"bimg",
|
||||
}
|
||||
|
||||
if _OPTIONS["with-libheif"] then
|
||||
links {
|
||||
"heif",
|
||||
}
|
||||
|
||||
configuration {}
|
||||
end
|
||||
|
||||
using_bx()
|
||||
|
||||
configuration { "mingw-*" }
|
||||
|
||||
Reference in New Issue
Block a user