Files
NazaraEngine/build/scripts/module/audio.lua
Lynix 67000134f0 Fixed audio build script not defining NAZARA_AUDIO_OPENAL
Former-commit-id: a2fcdc463e47bc1b6d8a0799fb5f667f96e9dd07
2014-02-18 00:18:11 +01:00

38 lines
768 B
Lua

if (not _OPTIONS["united"]) then
project "NazaraAudio"
end
defines "NAZARA_AUDIO_OPENAL"
files
{
"../include/Nazara/Audio/**.hpp",
"../include/Nazara/Audio/**.inl",
"../src/Nazara/Audio/**.hpp",
"../src/Nazara/Audio/**.cpp"
}
if (os.is("windows")) then
excludes { "../src/Nazara/Audio/Posix/*.hpp", "../src/Nazara/Audio/Posix/*.cpp" }
links "sndfile-1"
else
excludes { "../src/Nazara/Audio/Win32/*.hpp", "../src/Nazara/Audio/Win32/*.cpp" }
-- Link posix ?
end
if (_OPTIONS["united"]) then
excludes "../src/Nazara/Audio/Debug/Leaks.cpp"
else
configuration "DebugStatic"
links "NazaraCore-s-d"
configuration "ReleaseStatic"
links "NazaraCore-s"
configuration "DebugDLL"
links "NazaraCore-d"
configuration "ReleaseDLL"
links "NazaraCore"
end