1
0

ext-mpg123.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. project "mpg123"
  2. uuid "7adfafb9-0a83-4d35-9891-fb24fdf30b53"
  3. language "C"
  4. location ( "../../build/" .. mpt_projectpathname .. "/ext" )
  5. mpt_projectname = "mpg123"
  6. dofile "../../build/premake/premake-defaults-DLL.lua"
  7. dofile "../../build/premake/premake-defaults.lua"
  8. targetname "openmpt-mpg123"
  9. includedirs {
  10. "../../include/mpg123/ports/MSVC++",
  11. "../../include/mpg123/src/libmpg123",
  12. "../../include/mpg123/src/compat",
  13. "../../include/mpg123/src",
  14. }
  15. filter {}
  16. filter { "action:vs*" }
  17. characterset "Unicode"
  18. filter {}
  19. files {
  20. "../../include/mpg123/src/compat/compat.c",
  21. "../../include/mpg123/src/compat/compat_str.c",
  22. }
  23. files {
  24. --"../../include/mpg123/src/libmpg123/calctables.c",
  25. "../../include/mpg123/src/libmpg123/dct64.c",
  26. --"../../include/mpg123/src/libmpg123/dither.c",
  27. "../../include/mpg123/src/libmpg123/equalizer.c",
  28. "../../include/mpg123/src/libmpg123/feature.c",
  29. "../../include/mpg123/src/libmpg123/format.c",
  30. "../../include/mpg123/src/libmpg123/frame.c",
  31. "../../include/mpg123/src/libmpg123/icy.c",
  32. "../../include/mpg123/src/libmpg123/icy2utf8.c",
  33. "../../include/mpg123/src/libmpg123/id3.c",
  34. "../../include/mpg123/src/libmpg123/index.c",
  35. "../../include/mpg123/src/libmpg123/layer1.c",
  36. "../../include/mpg123/src/libmpg123/layer2.c",
  37. "../../include/mpg123/src/libmpg123/layer3.c",
  38. --"../../include/mpg123/src/libmpg123/lfs_alias.c",
  39. --"../../include/mpg123/src/libmpg123/lfs_wrap.c",
  40. "../../include/mpg123/src/libmpg123/libmpg123.c",
  41. "../../include/mpg123/src/libmpg123/ntom.c",
  42. "../../include/mpg123/src/libmpg123/optimize.c",
  43. "../../include/mpg123/src/libmpg123/parse.c",
  44. "../../include/mpg123/src/libmpg123/readers.c",
  45. "../../include/mpg123/src/libmpg123/stringbuf.c",
  46. "../../include/mpg123/src/libmpg123/synth.c",
  47. "../../include/mpg123/src/libmpg123/synth_8bit.c",
  48. "../../include/mpg123/src/libmpg123/synth_real.c",
  49. "../../include/mpg123/src/libmpg123/synth_s32.c",
  50. "../../include/mpg123/src/libmpg123/tabinit.c",
  51. }
  52. defines { "DYNAMIC_BUILD", "OPT_GENERIC" }
  53. links {
  54. "shlwapi",
  55. }
  56. filter {}
  57. filter { "action:vs*" }
  58. buildoptions { "/wd4018", "/wd4244", "/wd4267", "/wd4305", "/wd4334" }
  59. filter {}
  60. filter { "action:vs*" }
  61. buildoptions { "/wd6011", "/wd6285", "/wd6297", "/wd6305", "/wd6385", "/wd6386" } -- /analyze
  62. filter {}