ext-vorbis.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. project "vorbis"
  2. -- NOTE: Unlike the official libvorbis, we built everything into a single library instead of the vorbis, vorbisenc, vorbisfile split.
  3. uuid "b544dcb7-16e5-41bc-b51b-7ead8cfdfa05"
  4. language "C"
  5. location ( "../../build/" .. mpt_projectpathname .. "/ext" )
  6. mpt_projectname = "vorbis"
  7. dofile "../../build/premake/premake-defaults-LIBorDLL.lua"
  8. dofile "../../build/premake/premake-defaults.lua"
  9. targetname "openmpt-vorbis"
  10. local extincludedirs = {
  11. "../../include/ogg/include",
  12. }
  13. filter { "action:vs*" }
  14. includedirs ( extincludedirs )
  15. filter { "not action:vs*" }
  16. sysincludedirs ( extincludedirs )
  17. filter {}
  18. includedirs {
  19. "../../include/vorbis/include",
  20. "../../include/vorbis/lib",
  21. }
  22. filter {}
  23. filter { "action:vs*" }
  24. characterset "Unicode"
  25. filter {}
  26. files {
  27. "../../include/vorbis/include/vorbis/codec.h",
  28. "../../include/vorbis/include/vorbis/vorbisenc.h",
  29. "../../include/vorbis/include/vorbis/vorbisfile.h",
  30. }
  31. files {
  32. "../../include/vorbis/lib/analysis.c",
  33. "../../include/vorbis/lib/backends.h",
  34. --"../../include/vorbis/lib/barkmel.c",
  35. "../../include/vorbis/lib/bitrate.c",
  36. "../../include/vorbis/lib/bitrate.h",
  37. "../../include/vorbis/lib/block.c",
  38. "../../include/vorbis/lib/codebook.c",
  39. "../../include/vorbis/lib/codebook.h",
  40. "../../include/vorbis/lib/codec_internal.h",
  41. "../../include/vorbis/lib/envelope.c",
  42. "../../include/vorbis/lib/envelope.h",
  43. "../../include/vorbis/lib/floor0.c",
  44. "../../include/vorbis/lib/floor1.c",
  45. "../../include/vorbis/lib/highlevel.h",
  46. "../../include/vorbis/lib/info.c",
  47. "../../include/vorbis/lib/lookup.c",
  48. "../../include/vorbis/lib/lookup.h",
  49. "../../include/vorbis/lib/lookup_data.h",
  50. "../../include/vorbis/lib/lpc.c",
  51. "../../include/vorbis/lib/lpc.h",
  52. "../../include/vorbis/lib/lsp.c",
  53. "../../include/vorbis/lib/lsp.h",
  54. "../../include/vorbis/lib/mapping0.c",
  55. "../../include/vorbis/lib/masking.h",
  56. "../../include/vorbis/lib/mdct.c",
  57. "../../include/vorbis/lib/mdct.h",
  58. "../../include/vorbis/lib/misc.h",
  59. "../../include/vorbis/lib/os.h",
  60. "../../include/vorbis/lib/psy.c",
  61. "../../include/vorbis/lib/psy.h",
  62. -- "../../include/vorbis/lib/psytune.c",
  63. "../../include/vorbis/lib/registry.c",
  64. "../../include/vorbis/lib/registry.h",
  65. "../../include/vorbis/lib/res0.c",
  66. "../../include/vorbis/lib/scales.h",
  67. "../../include/vorbis/lib/sharedbook.c",
  68. "../../include/vorbis/lib/smallft.c",
  69. "../../include/vorbis/lib/smallft.h",
  70. "../../include/vorbis/lib/synthesis.c",
  71. -- "../../include/vorbis/lib/tone.c",
  72. "../../include/vorbis/lib/vorbisenc.c",
  73. "../../include/vorbis/lib/vorbisfile.c",
  74. "../../include/vorbis/lib/window.c",
  75. "../../include/vorbis/lib/window.h",
  76. "../../include/vorbis/lib/books/coupled/res_books_51.h",
  77. "../../include/vorbis/lib/books/coupled/res_books_stereo.h",
  78. "../../include/vorbis/lib/books/floor/floor_books.h",
  79. "../../include/vorbis/lib/books/uncoupled/res_books_uncoupled.h",
  80. "../../include/vorbis/lib/modes/floor_all.h",
  81. "../../include/vorbis/lib/modes/psych_8.h",
  82. "../../include/vorbis/lib/modes/psych_11.h",
  83. "../../include/vorbis/lib/modes/psych_16.h",
  84. "../../include/vorbis/lib/modes/psych_44.h",
  85. "../../include/vorbis/lib/modes/residue_8.h",
  86. "../../include/vorbis/lib/modes/residue_16.h",
  87. "../../include/vorbis/lib/modes/residue_44.h",
  88. "../../include/vorbis/lib/modes/residue_44p51.h",
  89. "../../include/vorbis/lib/modes/residue_44u.h",
  90. "../../include/vorbis/lib/modes/setup_8.h",
  91. "../../include/vorbis/lib/modes/setup_11.h",
  92. "../../include/vorbis/lib/modes/setup_16.h",
  93. "../../include/vorbis/lib/modes/setup_22.h",
  94. "../../include/vorbis/lib/modes/setup_32.h",
  95. "../../include/vorbis/lib/modes/setup_44.h",
  96. "../../include/vorbis/lib/modes/setup_44p51.h",
  97. "../../include/vorbis/lib/modes/setup_44u.h",
  98. "../../include/vorbis/lib/modes/setup_X.h",
  99. }
  100. filter { "action:vs*" }
  101. buildoptions { "/wd4101", "/wd4244", "/wd4267", "/wd4305", "/wd4703" }
  102. filter {}
  103. filter { "action:vs*" }
  104. buildoptions { "/wd6001", "/wd6011", "/wd6255", "/wd6262", "/wd6263", "/wd6297", "/wd6308", "/wd6385", "/wd6386", "/wd6387", "/wd28182" } -- /analyze
  105. filter {}
  106. links { "ogg" }
  107. filter {}
  108. filter { "kind:SharedLib" }
  109. files { "../../build/premake/def/ext-vorbis.def" }
  110. filter {}