7a395e2e7f
The last good commit wasf57e4c5b98. After this one more fix was committed, this one is preserved as well:67bd678887.
35 lines
1.2 KiB
CMake
35 lines
1.2 KiB
CMake
# SPDX-FileCopyrightText: 2022-2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
if(NOT WIN32)
|
|
set(AOM_CMAKE_FLAGS ${DEFAULT_CMAKE_FLAGS})
|
|
endif()
|
|
|
|
set(AOM_EXTRA_ARGS
|
|
-DENABLE_TESTDATA=OFF
|
|
-DENABLE_TESTS=OFF
|
|
-DENABLE_TOOLS=OFF
|
|
-DENABLE_EXAMPLES=OFF
|
|
${AOM_EXTRA_ARGS_WIN32}
|
|
)
|
|
|
|
# This is slightly different from all other deps in the way that
|
|
# aom uses cmake as a build system, but still needs the environment setup
|
|
# to include perl so we manually setup the environment and call
|
|
# cmake directly for the configure, build and install commands.
|
|
|
|
ExternalProject_Add(external_aom
|
|
URL file://${PACKAGE_DIR}/${AOM_FILE}
|
|
DOWNLOAD_DIR ${DOWNLOAD_DIR}
|
|
URL_HASH ${AOM_HASH_TYPE}=${AOM_HASH}
|
|
PREFIX ${BUILD_DIR}/aom
|
|
PATCH_COMMAND ${PATCH_CMD} --verbose -p 1 -N -d ${BUILD_DIR}/aom/src/external_aom < ${PATCH_DIR}/aom.diff
|
|
CONFIGURE_COMMAND ${CONFIGURE_ENV} &&
|
|
cd ${BUILD_DIR}/aom/src/external_aom-build/ &&
|
|
${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${LIBDIR}/aom ${AOM_CMAKE_FLAGS} ${AOM_EXTRA_ARGS} ${BUILD_DIR}/aom/src/external_aom/
|
|
BUILD_COMMAND ${CMAKE_COMMAND} --build .
|
|
INSTALL_COMMAND ${CMAKE_COMMAND} --build . --target install
|
|
INSTALL_DIR ${LIBDIR}/aom
|
|
)
|