Merge pull request #1167 from Skytrias/patch-1

raylib linux - add system dependencies
This commit is contained in:
Jeroen van Rijn
2021-09-14 18:23:56 +02:00
committed by GitHub

View File

@@ -18,7 +18,13 @@ when ODIN_OS == "windows" {
"system:Shell32.lib",
}
}
when ODIN_OS == "linux" { foreign import lib "linux/libraylib.a" }
when ODIN_OS == "linux" {
foreign import lib {
"linux/libraylib.a",
"system:dl",
"system:pthread",
}
}
when ODIN_OS == "darwin" { foreign import lib "macos/libraylib.a" }
VERSION :: "3.7"
@@ -1393,4 +1399,4 @@ foreign lib {
SetAudioStreamVolume :: proc(stream: AudioStream, volume: f32) --- // Set volume for audio stream (1.0 is max level)
SetAudioStreamPitch :: proc(stream: AudioStream, pitch: f32) --- // Set pitch for audio stream (1.0 is base level)
SetAudioStreamBufferSizeDefault :: proc(size: c.int) --- // Default size for new audio streams
}
}