1
0

ext-flac.lua 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. project "flac"
  2. uuid "E599F5AA-F9A3-46CC-8DB0-C8DEFCEB90C5"
  3. language "C"
  4. location ( "../../build/" .. mpt_projectpathname .. "/ext" )
  5. mpt_projectname = "flac"
  6. dofile "../../build/premake/premake-defaults-LIBorDLL.lua"
  7. dofile "../../build/premake/premake-defaults.lua"
  8. targetname "openmpt-flac"
  9. local extincludedirs = {
  10. "../../include/ogg/include",
  11. }
  12. filter { "action:vs*" }
  13. includedirs ( extincludedirs )
  14. filter { "not action:vs*" }
  15. sysincludedirs ( extincludedirs )
  16. filter {}
  17. includedirs {
  18. "../../include/flac/include",
  19. "../../include/flac/src/libFLAC/include",
  20. }
  21. filter {}
  22. filter { "action:vs*" }
  23. characterset "Unicode"
  24. filter {}
  25. files {
  26. "../../include/flac/src/libFLAC/bitmath.c",
  27. "../../include/flac/src/libFLAC/bitreader.c",
  28. "../../include/flac/src/libFLAC/bitwriter.c",
  29. "../../include/flac/src/libFLAC/cpu.c",
  30. "../../include/flac/src/libFLAC/crc.c",
  31. "../../include/flac/src/libFLAC/fixed.c",
  32. "../../include/flac/src/libFLAC/fixed_intrin_sse2.c",
  33. "../../include/flac/src/libFLAC/fixed_intrin_ssse3.c",
  34. "../../include/flac/src/libFLAC/float.c",
  35. "../../include/flac/src/libFLAC/format.c",
  36. "../../include/flac/src/libFLAC/lpc.c",
  37. "../../include/flac/src/libFLAC/lpc_intrin_avx2.c",
  38. "../../include/flac/src/libFLAC/lpc_intrin_sse2.c",
  39. "../../include/flac/src/libFLAC/lpc_intrin_sse41.c",
  40. "../../include/flac/src/libFLAC/lpc_intrin_sse.c",
  41. "../../include/flac/src/libFLAC/md5.c",
  42. "../../include/flac/src/libFLAC/memory.c",
  43. "../../include/flac/src/libFLAC/metadata_iterators.c",
  44. "../../include/flac/src/libFLAC/metadata_object.c",
  45. "../../include/flac/src/libFLAC/ogg_decoder_aspect.c",
  46. "../../include/flac/src/libFLAC/ogg_encoder_aspect.c",
  47. "../../include/flac/src/libFLAC/ogg_helper.c",
  48. "../../include/flac/src/libFLAC/ogg_mapping.c",
  49. "../../include/flac/src/libFLAC/stream_decoder.c",
  50. "../../include/flac/src/libFLAC/stream_encoder.c",
  51. "../../include/flac/src/libFLAC/stream_encoder_intrin_avx2.c",
  52. "../../include/flac/src/libFLAC/stream_encoder_intrin_sse2.c",
  53. "../../include/flac/src/libFLAC/stream_encoder_intrin_ssse3.c",
  54. "../../include/flac/src/libFLAC/stream_encoder_framing.c",
  55. "../../include/flac/src/libFLAC/window.c",
  56. "../../include/flac/src/libFLAC/windows_unicode_filenames.c",
  57. }
  58. files {
  59. "../../include/flac/src/libFLAC/include/private/all.h",
  60. "../../include/flac/src/libFLAC/include/private/bitmath.h",
  61. "../../include/flac/src/libFLAC/include/private/bitreader.h",
  62. "../../include/flac/src/libFLAC/include/private/bitwriter.h",
  63. "../../include/flac/src/libFLAC/include/private/cpu.h",
  64. "../../include/flac/src/libFLAC/include/private/crc.h",
  65. "../../include/flac/src/libFLAC/include/private/fixed.h",
  66. "../../include/flac/src/libFLAC/include/private/float.h",
  67. "../../include/flac/src/libFLAC/include/private/format.h",
  68. "../../include/flac/src/libFLAC/include/private/lpc.h",
  69. "../../include/flac/src/libFLAC/include/private/md5.h",
  70. "../../include/flac/src/libFLAC/include/private/memory.h",
  71. "../../include/flac/src/libFLAC/include/private/metadata.h",
  72. "../../include/flac/src/libFLAC/include/private/ogg_decoder_aspect.h",
  73. "../../include/flac/src/libFLAC/include/private/ogg_encoder_aspect.h",
  74. "../../include/flac/src/libFLAC/include/private/ogg_helper.h",
  75. "../../include/flac/src/libFLAC/include/private/ogg_mapping.h",
  76. "../../include/flac/src/libFLAC/include/private/stream_encoder.h",
  77. "../../include/flac/src/libFLAC/include/private/stream_encoder_framing.h",
  78. "../../include/flac/src/libFLAC/include/private/window.h",
  79. "../../include/flac/src/libFLAC/include/protected/all.h",
  80. "../../include/flac/src/libFLAC/include/protected/stream_decoder.h",
  81. "../../include/flac/src/libFLAC/include/protected/stream_encoder.h",
  82. }
  83. filter { "action:vs*" }
  84. files {
  85. "../../include/flac/src/share/win_utf8_io/win_utf8_io.c",
  86. }
  87. filter {}
  88. files {
  89. "../../include/flac/include/FLAC/all.h",
  90. "../../include/flac/include/FLAC/assert.h",
  91. "../../include/flac/include/FLAC/callback.h",
  92. "../../include/flac/include/FLAC/export.h",
  93. "../../include/flac/include/FLAC/format.h",
  94. "../../include/flac/include/FLAC/metadata.h",
  95. "../../include/flac/include/FLAC/ordinals.h",
  96. "../../include/flac/include/FLAC/stream_decoder.h",
  97. "../../include/flac/include/FLAC/stream_encoder.h",
  98. }
  99. files {
  100. "../../include/flac/include/share/alloc.h",
  101. "../../include/flac/include/share/compat.h",
  102. "../../include/flac/include/share/endswap.h",
  103. "../../include/flac/include/share/macros.h",
  104. "../../include/flac/include/share/private.h",
  105. "../../include/flac/include/share/safe_str.h",
  106. }
  107. filter { "action:vs*" }
  108. files {
  109. "../../include/flac/include/share/win_utf8_io.h",
  110. "../../include/flac/include/share/windows_unicode_filenames.h",
  111. }
  112. filter {}
  113. filter { "action:vs*" }
  114. buildoptions { "/wd4101", "/wd4244", "/wd4267", "/wd4334" }
  115. filter {}
  116. filter { "action:vs*" }
  117. buildoptions { "/wd6001", "/wd6011", "/wd6031", "/wd6297", "/wd28182" } -- /analyze
  118. filter {}
  119. defines { "FLAC__HAS_OGG=1" }
  120. links { "ogg" }
  121. defines { "PACKAGE_VERSION=\"1.3.4\"" }
  122. filter {}
  123. filter { "kind:StaticLib" }
  124. defines { "FLAC__NO_DLL" }
  125. filter { "kind:SharedLib" }
  126. defines { "FLAC_API_EXPORTS" }
  127. filter {}