mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +03:00
- Commands which have arguments split over multiple lines use indented lines. - Wrap lines where multiple commands run using "&&". - Blank lines between multiple commands helps the text from becoming too dense.
27 lines
736 B
CMake
27 lines
736 B
CMake
# SPDX-FileCopyrightText: 2002-2022 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(LZMA_PATCH_CMD echo .)
|
|
|
|
ExternalProject_Add(external_lzma
|
|
URL file://${PACKAGE_DIR}/${LZMA_FILE}
|
|
DOWNLOAD_DIR ${DOWNLOAD_DIR}
|
|
URL_HASH ${LZMA_HASH_TYPE}=${LZMA_HASH}
|
|
PREFIX ${BUILD_DIR}/lzma
|
|
PATCH_COMMAND ${LZMA_PATCH_CMD}
|
|
|
|
CONFIGURE_COMMAND ${CONFIGURE_ENV} &&
|
|
cd ${BUILD_DIR}/lzma/src/external_lzma/ &&
|
|
${CONFIGURE_COMMAND} --prefix=${LIBDIR}/lzma --disable-shared
|
|
|
|
BUILD_COMMAND ${CONFIGURE_ENV} &&
|
|
cd ${BUILD_DIR}/lzma/src/external_lzma/ &&
|
|
make -j${MAKE_THREADS}
|
|
|
|
INSTALL_COMMAND ${CONFIGURE_ENV} &&
|
|
cd ${BUILD_DIR}/lzma/src/external_lzma/ &&
|
|
make install
|
|
|
|
INSTALL_DIR ${LIBDIR}/lzma
|
|
)
|