c434782e3a
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
24 lines
789 B
CMake
24 lines
789 B
CMake
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
ExternalProject_Add(external_zlib_mingw
|
|
URL file://${PACKAGE_DIR}/${ZLIB_FILE}
|
|
URL_HASH ${ZLIB_HASH_TYPE}=${ZLIB_HASH}
|
|
DOWNLOAD_DIR ${DOWNLOAD_DIR}
|
|
PREFIX ${BUILD_DIR}/zlib_mingw
|
|
CONFIGURE_COMMAND echo .
|
|
BUILD_COMMAND ${CONFIGURE_ENV} && cd ${BUILD_DIR}/zlib_mingw/src/external_zlib_mingw/ && make -f win32/makefile.gcc -j${MAKE_THREADS}
|
|
INSTALL_COMMAND echo .
|
|
INSTALL_DIR ${LIBDIR}/zlib_mingw
|
|
)
|
|
|
|
if(BUILD_MODE STREQUAL Release)
|
|
ExternalProject_Add_Step(external_zlib_mingw after_install
|
|
COMMAND ${CMAKE_COMMAND} -E copy ${BUILD_DIR}/zlib_mingw/src/external_zlib_mingw/libz.a ${LIBDIR}/zlib/lib/z.lib
|
|
DEPENDEES install
|
|
)
|
|
endif()
|
|
|
|
if(MSVC)
|
|
set_target_properties(external_zlib_mingw PROPERTIES FOLDER Mingw)
|
|
endif()
|