The Android renderer artifact declares WebP, dav1d AVIF and Opus archives, with libaom reserved for AVIF encoding. Assert the three archives and their licenses, and link the decode APIs.
13 lines
496 B
Ziran
13 lines
496 B
Ziran
// Link the decode codec APIs through the dependency-owned Android artifact.
|
|
// libaom is encode-only and comes from the encode artifact.
|
|
codec :: #system_library "c";
|
|
WebPVersion :: () -> s32 #foreign codec "WebPGetDecoderVersion";
|
|
AVIFVersion :: () -> *u8 #foreign codec "avifVersion";
|
|
OpusVersion :: () -> *u8 #foreign codec "opus_get_version_string";
|
|
|
|
#program_export
|
|
main :: () -> s32 {
|
|
if WebPVersion() <= 0 || AVIFVersion() == null || OpusVersion() == null { return 1 }
|
|
return 0
|
|
}
|