mirror of
https://github.com/edo9300/edopro
synced 2026-08-23 22:26:05 -04:00
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
19 lines
534 B
Lua
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
|