ext-opusfile.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. project "opusfile"
  2. uuid "f8517509-9317-4a46-b5ed-06ae5a399e6c"
  3. language "C"
  4. location ( "../../build/" .. mpt_projectpathname .. "/ext" )
  5. mpt_projectname = "opusfile"
  6. dofile "../../build/premake/premake-defaults-LIBorDLL.lua"
  7. dofile "../../build/premake/premake-defaults.lua"
  8. targetname "openmpt-opusfile"
  9. local extincludedirs = {
  10. "../../include/ogg/include",
  11. "../../include/opus/include",
  12. }
  13. filter { "action:vs*" }
  14. includedirs ( extincludedirs )
  15. filter { "not action:vs*" }
  16. sysincludedirs ( extincludedirs )
  17. filter {}
  18. includedirs {
  19. "../../include/opusfile/include",
  20. }
  21. filter {}
  22. filter { "action:vs*" }
  23. characterset "Unicode"
  24. filter {}
  25. files {
  26. "../../include/opusfile/include/opusfile.h",
  27. }
  28. files {
  29. "../../include/opusfile/src/*.c",
  30. "../../include/opusfile/src/*.h",
  31. }
  32. links { "ogg", "opus" }
  33. filter { "action:vs*" }
  34. buildoptions { "/wd4267" }
  35. filter {}
  36. filter { "kind:SharedLib" }
  37. files { "../../build/premake/def/ext-opusfile.def" }
  38. filter {}