1
0

ext-zlib.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. project "zlib"
  2. uuid "1654FB18-FDE6-406F-9D84-BA12BFBD67B2"
  3. language "C"
  4. location ( "../../build/" .. mpt_projectpathname .. "/ext" )
  5. mpt_projectname = "zlib"
  6. dofile "../../build/premake/premake-defaults-LIBorDLL.lua"
  7. dofile "../../build/premake/premake-defaults.lua"
  8. targetname "openmpt-zlib"
  9. includedirs { "../../include/zlib" }
  10. filter {}
  11. filter { "action:vs*" }
  12. characterset "Unicode"
  13. filter {}
  14. files {
  15. "../../include/zlib/adler32.c",
  16. "../../include/zlib/compress.c",
  17. "../../include/zlib/crc32.c",
  18. "../../include/zlib/deflate.c",
  19. "../../include/zlib/gzclose.c",
  20. "../../include/zlib/gzlib.c",
  21. "../../include/zlib/gzread.c",
  22. "../../include/zlib/gzwrite.c",
  23. "../../include/zlib/infback.c",
  24. "../../include/zlib/inffast.c",
  25. "../../include/zlib/inflate.c",
  26. "../../include/zlib/inftrees.c",
  27. "../../include/zlib/trees.c",
  28. "../../include/zlib/uncompr.c",
  29. "../../include/zlib/zutil.c",
  30. }
  31. files {
  32. "../../include/zlib/crc32.h",
  33. "../../include/zlib/deflate.h",
  34. "../../include/zlib/gzguts.h",
  35. "../../include/zlib/inffast.h",
  36. "../../include/zlib/inffixed.h",
  37. "../../include/zlib/inflate.h",
  38. "../../include/zlib/inftrees.h",
  39. "../../include/zlib/trees.h",
  40. "../../include/zlib/zconf.h",
  41. "../../include/zlib/zlib.h",
  42. "../../include/zlib/zutil.h",
  43. }
  44. filter {}
  45. filter { "kind:StaticLib" }
  46. filter { "kind:SharedLib" }
  47. defines { "ZLIB_DLL" }
  48. filter {}
  49. filter { "action:vs*" }
  50. buildoptions { "/wd4267" }
  51. filter {}
  52. filter { "action:vs*" }
  53. buildoptions { "/wd6297", "/wd6385" } -- /analyze
  54. filter {}