🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.1 KiB

  1. newoption {
  2. trigger = "with-zfp",
  3. description = "Build with ZFP support."
  4. }
  5. sources = {
  6. "tinyexr.h",
  7. "test_tinyexr.cc",
  8. }
  9. zfp_sources = {
  10. "./deps/ZFP/src/*.c"
  11. }
  12. miniz_sources = {
  13. "./deps/miniz/miniz.c"
  14. }
  15. -- premake4.lua
  16. solution "TinyEXRSolution"
  17. configurations { "Release", "Debug" }
  18. if (os.is("windows")) then
  19. platforms { "x32", "x64" }
  20. else
  21. platforms { "native", "x32", "x64" }
  22. end
  23. if _OPTIONS["with-zfp"] then
  24. includedirs { "./deps/ZFP/inc" }
  25. defines { "TINYEXR_USE_ZFP=1" }
  26. files { zfp_sources }
  27. end
  28. if _OPTIONS["with-miniz"] then
  29. includedirs { "./deps/miniz" }
  30. defines { "TINYEXR_USE_MINIZ=1" }
  31. files { miniz_sources }
  32. end
  33. -- A project defines one build target
  34. project "tinyexrtest"
  35. kind "ConsoleApp"
  36. language "C++"
  37. files { sources }
  38. configuration "Debug"
  39. defines { "DEBUG" } -- -DDEBUG
  40. flags { "Symbols" }
  41. targetname "test_tinyexr_debug"
  42. configuration "Release"
  43. -- defines { "NDEBUG" } -- -NDEBUG
  44. flags { "Symbols", "Optimize" }
  45. targetname "test_tinyexr"