ext-lame.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. project "lame"
  2. uuid "b545694a-ce2a-44f8-ba88-147c36369308"
  3. language "C"
  4. location ( "../../build/" .. mpt_projectpathname .. "/ext" )
  5. mpt_projectname = "lame"
  6. dofile "../../build/premake/premake-defaults-DLL.lua"
  7. dofile "../../build/premake/premake-defaults.lua"
  8. targetname "openmpt-lame"
  9. includedirs { "../../include/lame/include" }
  10. includedirs { "../../include/lame/mpglib" }
  11. includedirs { "../../include/lame/libmp3lame" }
  12. includedirs { "../../build/premake/inc/lame" }
  13. filter {}
  14. filter { "action:vs*" }
  15. characterset "Unicode"
  16. filter {}
  17. files {
  18. "../../include/lame/include/lame.def",
  19. }
  20. files {
  21. "../../include/lame/include/lame.h",
  22. }
  23. files {
  24. "../../include/lame/mpglib/common.c",
  25. "../../include/lame/mpglib/dct64_i386.c",
  26. "../../include/lame/mpglib/decode_i386.c",
  27. "../../include/lame/mpglib/interface.c",
  28. "../../include/lame/mpglib/layer1.c",
  29. "../../include/lame/mpglib/layer2.c",
  30. "../../include/lame/mpglib/layer3.c",
  31. "../../include/lame/mpglib/tabinit.c",
  32. }
  33. files {
  34. "../../include/lame/libmp3lame/bitstream.c",
  35. "../../include/lame/libmp3lame/encoder.c",
  36. "../../include/lame/libmp3lame/fft.c",
  37. "../../include/lame/libmp3lame/gain_analysis.c",
  38. "../../include/lame/libmp3lame/id3tag.c",
  39. "../../include/lame/libmp3lame/lame.c",
  40. "../../include/lame/libmp3lame/mpglib_interface.c",
  41. "../../include/lame/libmp3lame/newmdct.c",
  42. "../../include/lame/libmp3lame/presets.c",
  43. "../../include/lame/libmp3lame/psymodel.c",
  44. "../../include/lame/libmp3lame/quantize.c",
  45. "../../include/lame/libmp3lame/quantize_pvt.c",
  46. "../../include/lame/libmp3lame/reservoir.c",
  47. "../../include/lame/libmp3lame/set_get.c",
  48. "../../include/lame/libmp3lame/tables.c",
  49. "../../include/lame/libmp3lame/takehiro.c",
  50. "../../include/lame/libmp3lame/util.c",
  51. "../../include/lame/libmp3lame/vbrquantize.c",
  52. "../../include/lame/libmp3lame/VbrTag.c",
  53. "../../include/lame/libmp3lame/version.c",
  54. }
  55. files {
  56. "../../include/lame/libmp3lame/vector/xmm_quantize_sub.c",
  57. }
  58. defines { "HAVE_CONFIG_H", "HAVE_MPGLIB", "USE_LAYER_2" }
  59. filter {}
  60. filter { "action:vs*" }
  61. buildoptions { "/wd4267", "/wd4334" }
  62. filter {}
  63. filter { "action:vs*" }
  64. buildoptions { "/wd6031", "/wd6262" } -- analyze
  65. filter {}