og-edopro/sfAudio/premake5.lua
Edoardo Lolletti ab4e33086d use externalincludedirs instead of sysincludedirs for xcode compat
sysincludedirs had been deprecated since the beginning of premake5, and is now removed, also removes the need for the workaround to be used only with xcode4
For oldwindows+vs2019 and newer, keep using includedirs, as premake cannot properly handle that configuration and will use an incompatible flag
2026-08-19 10:54:54 +02:00

19 lines
534 B
Lua

project "sfAudio"
kind "StaticLib"
cppdialect "C++17"
externalincludedirs { "include", "external/headers" }
files { "src/**" }
filter {'action:not vs*'}
disablewarnings {"unused-variable"}
filter {}
if _OPTIONS["use-mpg123"] then
defines "SFAUDIO_USE_MPG123"
excludes { "src/SoundFileReaderMp3_minimp3.cpp" }
else
excludes { "src/SoundFileReaderMp3_mpg123.cpp" }
end
filter "system:not windows"
links { "FLAC", "vorbisfile", "vorbis", "ogg", "openAL" }
if _OPTIONS["use-mpg123"] then
links { "mpg123" }
end