Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/PNG/PNG.cmake')
-rw-r--r--deps/PNG/PNG.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/deps/PNG/PNG.cmake b/deps/PNG/PNG.cmake
new file mode 100644
index 000000000..e07afec6d
--- /dev/null
+++ b/deps/PNG/PNG.cmake
@@ -0,0 +1,23 @@
+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 ()
+
+prusaslicer_add_cmake_project(PNG
+ GIT_REPOSITORY https://github.com/glennrp/libpng.git
+ GIT_TAG v1.6.35
+ DEPENDS ${ZLIB_PKG}
+ CMAKE_ARGS
+ -DPNG_SHARED=OFF
+ -DPNG_STATIC=ON
+ -DPNG_PREFIX=prusaslicer_
+ -DPNG_TESTS=OFF
+ -DDISABLE_DEPENDENCY_TRACKING=OFF
+ ${_disable_neon_extension}
+)
+
+if (MSVC)
+ add_debug_dep(dep_PNG)
+endif ()