mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
use #exists to provide good errors for common missing libraries
This commit is contained in:
Vendored
+8
-4
@@ -8,12 +8,16 @@ when MINIAUDIO_SHARED {
|
||||
#panic("Shared linking for miniaudio is not supported yet")
|
||||
}
|
||||
|
||||
when ODIN_OS == .Windows {
|
||||
foreign import lib "lib/miniaudio.lib"
|
||||
} else {
|
||||
foreign import lib "lib/miniaudio.a"
|
||||
@(private)
|
||||
LIB :: "lib/miniaudio.lib" when ODIN_OS == .Windows else "lib/miniaudio.a"
|
||||
|
||||
when !#exists(LIB) {
|
||||
// Windows library is shipped with the compiler, so a Windows specific message should not be needed.
|
||||
#panic("Could not find the compiled miniaudio library, it can be compiled by running `make -C \"" + ODIN_ROOT + "vendor/miniaudio/src\"`")
|
||||
}
|
||||
|
||||
foreign import lib { LIB }
|
||||
|
||||
BINDINGS_VERSION_MAJOR :: 0
|
||||
BINDINGS_VERSION_MINOR :: 11
|
||||
BINDINGS_VERSION_REVISION :: 21
|
||||
|
||||
Reference in New Issue
Block a user