2020-12-01 15:47:07 +00:00
|
|
|
if (APPLE)
|
|
|
|
# Only disable NEON extension for Apple ARM builds, leave it enabled for Raspberry PI.
|
|
|
|
set(_disable_neon_extension "-DPNG_ARM_NEON=off")
|
|
|
|
else ()
|
|
|
|
set(_disable_neon_extension "")
|
|
|
|
endif ()
|
2020-10-23 09:10:00 +00:00
|
|
|
|
2020-04-28 07:56:54 +00:00
|
|
|
prusaslicer_add_cmake_project(PNG
|
2021-03-23 18:01:18 +00:00
|
|
|
# GIT_REPOSITORY https://github.com/glennrp/libpng.git
|
|
|
|
# GIT_TAG v1.6.35
|
|
|
|
URL https://github.com/glennrp/libpng/archive/refs/tags/v1.6.35.zip
|
|
|
|
URL_HASH SHA256=3d22d46c566b1761a0e15ea397589b3a5f36ac09b7c785382e6470156c04247f
|
2020-04-28 07:56:54 +00:00
|
|
|
DEPENDS ${ZLIB_PKG}
|
|
|
|
CMAKE_ARGS
|
|
|
|
-DPNG_SHARED=OFF
|
|
|
|
-DPNG_STATIC=ON
|
2020-10-26 09:10:09 +00:00
|
|
|
-DPNG_PREFIX=prusaslicer_
|
2020-04-28 07:56:54 +00:00
|
|
|
-DPNG_TESTS=OFF
|
2020-11-28 18:48:09 +00:00
|
|
|
-DDISABLE_DEPENDENCY_TRACKING=OFF
|
2020-12-01 15:47:07 +00:00
|
|
|
${_disable_neon_extension}
|
2020-04-28 07:56:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
add_debug_dep(dep_PNG)
|
|
|
|
endif ()
|