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
This commit is contained in:
Paulchen Panther 2020-07-27 19:10:32 +02:00 committed by GitHub
parent 374945346a
commit 773b47bf53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)