vendor: raylib: simplify foreign import

This commit is contained in:
Sébastien Marie
2022-03-02 18:44:29 +00:00
parent d3f3528d1d
commit 5b783d6376
2 changed files with 12 additions and 6 deletions
+5 -3
View File
@@ -99,15 +99,17 @@ when ODIN_OS == .Windows {
"system:User32.lib",
"system:Shell32.lib",
}
}
when ODIN_OS == .Linux {
} else when ODIN_OS == .Linux {
foreign import lib {
"linux/libraylib.a",
"system:dl",
"system:pthread",
}
} else when ODIN_OS == .Darwin {
foreign import lib "macos/libraylib.a"
} else {
foreign import lib "system:raylib"
}
when ODIN_OS == .Darwin { foreign import lib "macos/libraylib.a" }
VERSION :: "4.0"