mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-09-10 04:18:25 +00:00
Added AVIF support. (#137)
This commit is contained in:
committed by
GitHub
parent
fd444471ab
commit
a021904836
@@ -33,8 +33,37 @@ project "bimg_decode"
|
||||
}
|
||||
end
|
||||
|
||||
defines {
|
||||
"AVIF_CODEC_DAV1D",
|
||||
}
|
||||
|
||||
includedirs {
|
||||
path.join(BIMG_DIR, "3rdparty/libavif"),
|
||||
path.join(BIMG_DIR, "3rdparty/libavif/include"),
|
||||
path.join(BIMG_DIR, "3rdparty/libavif/third_party/libyuv/include"),
|
||||
path.join(BIMG_DIR, "3rdparty/dav1d"),
|
||||
path.join(BIMG_DIR, "3rdparty/dav1d/include"),
|
||||
}
|
||||
|
||||
files {
|
||||
path.join(BIMG_DIR, "3rdparty/dav1d/dav1d-amalgamated.c"),
|
||||
path.join(BIMG_DIR, "3rdparty/dav1d/dav1d-bitdepth-8.c"),
|
||||
path.join(BIMG_DIR, "3rdparty/dav1d/dav1d-bitdepth-16.c"),
|
||||
path.join(BIMG_DIR, "3rdparty/libavif/libavif-amalgamated.c"),
|
||||
}
|
||||
|
||||
using_bx()
|
||||
|
||||
configuration { "vs*" }
|
||||
includedirs {
|
||||
path.join(BIMG_DIR, "3rdparty/dav1d/include/compat/msvc"),
|
||||
}
|
||||
|
||||
configuration { "gmake or xcode*" }
|
||||
buildoptions_c {
|
||||
"-std=c11",
|
||||
}
|
||||
|
||||
configuration { "linux-*" }
|
||||
buildoptions {
|
||||
"-fPIC",
|
||||
|
||||
Reference in New Issue
Block a user