Welcome to mirror list, hosted at ThFree Co, Russian Federation.

macros.cmake « cmake « build_environment « build_files - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82fc151a0386e884f14ae0fe931aafae8f83a209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SPDX-License-Identifier: GPL-2.0-or-later

# shorthand to only unpack a certain dependency
macro(unpack_only name)
  string(TOUPPER ${name} UPPER_NAME)
  set(TARGET_FILE ${${UPPER_NAME}_FILE})
  set(TARGET_HASH_TYPE ${${UPPER_NAME}_HASH_TYPE})
  set(TARGET_HASH ${${UPPER_NAME}_HASH})
  ExternalProject_Add(external_${name}
    URL file://${PACKAGE_DIR}/${TARGET_FILE}
    URL_HASH ${TARGET_HASH_TYPE}=${TARGET_HASH}
    DOWNLOAD_DIR ${DOWNLOAD_DIR}
    PREFIX ${BUILD_DIR}/${name}
    CONFIGURE_COMMAND echo .
    BUILD_COMMAND echo .
    INSTALL_COMMAND echo .
  )
endmacro()