40 lines
1.0 KiB
Lua
40 lines
1.0 KiB
Lua
|
|
||
|
project "opusfile"
|
||
|
uuid "f8517509-9317-4a46-b5ed-06ae5a399e6c"
|
||
|
language "C"
|
||
|
location ( "../../build/" .. mpt_projectpathname .. "/ext" )
|
||
|
mpt_projectname = "opusfile"
|
||
|
dofile "../../build/premake/premake-defaults-LIBorDLL.lua"
|
||
|
dofile "../../build/premake/premake-defaults.lua"
|
||
|
targetname "openmpt-opusfile"
|
||
|
local extincludedirs = {
|
||
|
"../../include/ogg/include",
|
||
|
"../../include/opus/include",
|
||
|
}
|
||
|
filter { "action:vs*" }
|
||
|
includedirs ( extincludedirs )
|
||
|
filter { "not action:vs*" }
|
||
|
sysincludedirs ( extincludedirs )
|
||
|
filter {}
|
||
|
includedirs {
|
||
|
"../../include/opusfile/include",
|
||
|
}
|
||
|
filter {}
|
||
|
filter { "action:vs*" }
|
||
|
characterset "Unicode"
|
||
|
filter {}
|
||
|
files {
|
||
|
"../../include/opusfile/include/opusfile.h",
|
||
|
}
|
||
|
files {
|
||
|
"../../include/opusfile/src/*.c",
|
||
|
"../../include/opusfile/src/*.h",
|
||
|
}
|
||
|
links { "ogg", "opus" }
|
||
|
filter { "action:vs*" }
|
||
|
buildoptions { "/wd4267" }
|
||
|
filter {}
|
||
|
filter { "kind:SharedLib" }
|
||
|
files { "../../build/premake/def/ext-opusfile.def" }
|
||
|
filter {}
|