~aleteoryx/muditaos

ref: d13a51d04428f679c6313e0e7f429a3f88afe8dc muditaos/cmake/modules/ConfigureVersionJson.cmake -rw-r--r-- 437 bytes
d13a51d0 — Bartosz [MOS-785] Reworked updater dependencies into recovery 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/cmake/modules")
include(Version)

if (NOT ${BOOTLOADER_FILE} STREQUAL "")
    file(MD5 ${BOOTLOADER_FILE} BOOTLOADER_MD5SUM)
endif()
if (NOT ${BOOT_FILE} STREQUAL "")
    file(MD5 ${BOOT_FILE} BOOT_MD5SUM)
endif()
if (NOT ${RECOVERY_FILE} STREQUAL "")
    file(MD5 ${RECOVERY_FILE} RECOVERY_MD5SUM)
endif()

message("Configuring version.json file")
configure_file(${SRC_FILE} ${DST_FILE} @ONLY)