PNG.cmake 595 B

1234567891011121314151617181920212223
  1. if (APPLE)
  2. # Only disable NEON extension for Apple ARM builds, leave it enabled for Raspberry PI.
  3. set(_disable_neon_extension "-DPNG_ARM_NEON=off")
  4. else ()
  5. set(_disable_neon_extension "")
  6. endif ()
  7. prusaslicer_add_cmake_project(PNG
  8. GIT_REPOSITORY https://github.com/glennrp/libpng.git
  9. GIT_TAG v1.6.35
  10. DEPENDS ${ZLIB_PKG}
  11. CMAKE_ARGS
  12. -DPNG_SHARED=OFF
  13. -DPNG_STATIC=ON
  14. -DPNG_PREFIX=prusaslicer_
  15. -DPNG_TESTS=OFF
  16. -DDISABLE_DEPENDENCY_TRACKING=OFF
  17. ${_disable_neon_extension}
  18. )
  19. if (MSVC)
  20. add_debug_dep(dep_PNG)
  21. endif ()