1
0

ext-minizip.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. project "minizip"
  2. uuid "63AF9025-A6CE-4147-A05D-6E2CCFD3A0D7"
  3. language "C"
  4. location ( "../../build/" .. mpt_projectpathname .. "/ext" )
  5. mpt_projectname = "minizip"
  6. dofile "../../build/premake/premake-defaults-LIBorDLL.lua"
  7. dofile "../../build/premake/premake-defaults.lua"
  8. targetname "openmpt-minizip"
  9. local extincludedirs = {
  10. "../../include/zlib",
  11. }
  12. filter { "action:vs*" }
  13. includedirs ( extincludedirs )
  14. filter { "not action:vs*" }
  15. sysincludedirs ( extincludedirs )
  16. filter {}
  17. includedirs {
  18. "../../include/zlib/contrib/minizip"
  19. }
  20. filter {}
  21. filter { "action:vs*" }
  22. characterset "Unicode"
  23. filter {}
  24. files {
  25. "../../include/zlib/contrib/minizip/ioapi.c",
  26. "../../include/zlib/contrib/minizip/iowin32.c",
  27. "../../include/zlib/contrib/minizip/mztools.c",
  28. "../../include/zlib/contrib/minizip/unzip.c",
  29. "../../include/zlib/contrib/minizip/zip.c",
  30. }
  31. files {
  32. "../../include/zlib/contrib/minizip/crypt.h",
  33. "../../include/zlib/contrib/minizip/ioapi.h",
  34. "../../include/zlib/contrib/minizip/iowin32.h",
  35. "../../include/zlib/contrib/minizip/mztools.h",
  36. "../../include/zlib/contrib/minizip/unzip.h",
  37. "../../include/zlib/contrib/minizip/zip.h",
  38. }
  39. links {
  40. "zlib"
  41. }
  42. filter {}
  43. filter { "kind:StaticLib" }
  44. filter { "kind:SharedLib" }
  45. defines { "ZLIB_DLL" }
  46. filter {}
  47. filter { "kind:SharedLib" }
  48. files { "../../build/premake/def/ext-minizip.def" }
  49. filter {}
  50. filter { "action:vs*" }
  51. buildoptions { "/wd6262" } -- analyze
  52. filter {}