2023-12-21 19:16:11 +01:00
|
|
|
# SPDX-FileCopyrightText: 2023 Blender Authors
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
|
|
|
|
set(DEFLATE_EXTRA_ARGS
|
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
ExternalProject_Add(external_deflate
|
|
|
|
URL file://${PACKAGE_DIR}/${DEFLATE_FILE}
|
|
|
|
DOWNLOAD_DIR ${DOWNLOAD_DIR}
|
|
|
|
URL_HASH ${DEFLATE_HASH_TYPE}=${DEFLATE_HASH}
|
|
|
|
PREFIX ${BUILD_DIR}/deflate
|
|
|
|
CMAKE_GENERATOR ${PLATFORM_ALT_GENERATOR}
|
2024-02-10 12:35:36 +01:00
|
|
|
|
|
|
|
CMAKE_ARGS
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${LIBDIR}/deflate
|
|
|
|
${DEFAULT_CMAKE_FLAGS}
|
|
|
|
${DEFLATE_EXTRA_ARGS}
|
|
|
|
|
2023-12-21 19:16:11 +01:00
|
|
|
INSTALL_DIR ${LIBDIR}/deflate
|
|
|
|
)
|