From 773b47bf531b860ecd8497eae6406077a14dccef Mon Sep 17 00:00:00 2001 From: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com> Date: Mon, 27 Jul 2020 19:10:32 +0200 Subject: [PATCH] set zlib back to system ignore list/revert pr #871 (#904) * set zlib to system ignore list * undo pr #871 * exclude libcec if Dispmanx available --- cmake/Dependencies.cmake | 38 +++++++++++--------------------------- 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index ede9b364..f3f40462 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake @@ -24,8 +24,13 @@ macro(DeployUnix TARGET) "libusb-1" "libutil" "libX11" + "libz" ) + if(ENABLE_DISPMANX) + list(APPEND SYSTEM_LIBS_SKIP "libcec") + endif() + if (APPLE) set(OPENSSL_ROOT_DIR /usr/local/opt/openssl) endif(APPLE) @@ -153,35 +158,14 @@ macro(DeployUnix TARGET) endif() - # Pack Python modules to pythonXX.zip or copy to 'share/hyperion/lib/python' + # Copy Python modules to 'share/hyperion/lib/python' if (PYTHON_MODULES_DIR) - # Since version 3.3.2 CMake has the functionality to generate a zip file built-in. - if (NOT CMAKE_VERSION VERSION_LESS "3.3.2") - file(GLOB PYTHON_MODULE_FILES RELATIVE "${PYTHON_MODULES_DIR}" "${PYTHON_MODULES_DIR}/*") - set(PYTHON_ZIP "python${PYTHON_VERSION_MAJOR_MINOR}.zip") - - execute_process( - COMMAND "${CMAKE_COMMAND}" "-E" "tar" "cf" "${CMAKE_BINARY_DIR}/${PYTHON_ZIP}" "--format=zip" ${PYTHON_MODULE_FILES} - WORKING_DIRECTORY "${PYTHON_MODULES_DIR}" - OUTPUT_QUIET - ) - - install( - FILES "${CMAKE_BINARY_DIR}/${PYTHON_ZIP}" - DESTINATION "share/hyperion/bin" - COMPONENT "Hyperion" - ) - - else() - - install( - DIRECTORY ${PYTHON_MODULES_DIR}/ - DESTINATION "share/hyperion/lib/python" - COMPONENT "Hyperion" - ) - - endif() + install( + DIRECTORY ${PYTHON_MODULES_DIR}/ + DESTINATION "share/hyperion/lib/python" + COMPONENT "Hyperion" + ) endif(PYTHON_MODULES_DIR)