Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
1f7b23d
external_deps: use gmake instead of make on FreeBSD
illwieckz Sep 26, 2025
b0bf1dc
external_deps: workaround a GLEW build error on FreeBSD
illwieckz Sep 26, 2025
3be7719
external_deps: make defaults resetable with setup_default()
illwieckz Jun 25, 2026
9d84c7f
external_deps: extract platform components
illwieckz Jun 25, 2026
27fd34b
cmake,VirtualMachine: append the architecture name to loader binaries…
illwieckz Jun 26, 2026
295220f
external_deps: provide a reusable framework for building native tools…
illwieckz Jun 26, 2026
13e8378
external_deps: build pkg-config as a native tool
illwieckz Jun 26, 2026
5af34ee
external_deps: build nasm as a native tool
illwieckz Jun 26, 2026
32771dc
cmake,external_deps: bump deps version to 12, expect the loader be pa…
illwieckz Jun 26, 2026
9451bdf
external_deps: build naclruntime with cmake
illwieckz Jun 25, 2026
a6b56b1
external_deps: upgrade sdl3
illwieckz Jun 26, 2026
9cae34b
external_deps: upgrade zlib
illwieckz Jun 26, 2026
f928bb3
external_deps: upgrade nettle
illwieckz Jun 26, 2026
aca86c6
external_deps: upgrade curl
illwieckz Jun 26, 2026
a5c4f08
external_deps: upgrade glew
illwieckz Jun 26, 2026
07a375e
external_deps: upgrade png
illwieckz Jun 26, 2026
d09b613
external_deps: upgrade jpeg
illwieckz Jun 26, 2026
621505b
external_deps: do not upgrade openal
illwieckz Jun 26, 2026
4c2149b
external_deps: upgrade opus
illwieckz Jun 26, 2026
170e68b
external_deps: disable the GPU framework
illwieckz Jun 26, 2026
64cd9df
external_deps: add macos-arm64-default
illwieckz Jun 26, 2026
e6c65fa
external_deps: rework the cmake toolchain configuration
illwieckz Jun 27, 2026
523eea5
external_deps: rework the macos configuration
illwieckz Jun 27, 2026
9e71257
cmake: download macos-arm64 deps archive
illwieckz Jun 27, 2026
8d76895
external_deps: box64
illwieckz Jul 3, 2026
e214f33
external_deps: amd64 nacl_loader on arm64
illwieckz Jul 3, 2026
5d99487
cmake: rework the code enabling nexe build when there is an nacl sdk,…
illwieckz Jul 3, 2026
c3fca89
cmake: copy box64
illwieckz Jul 3, 2026
c5f0dad
external_deps: let jpeg build for unknown platforms
illwieckz Sep 25, 2025
e587ced
external_deps: box64 install for arm64
illwieckz Jul 3, 2026
160544d
cmake: enable box64 on arm64
illwieckz Jul 3, 2026
9a06a83
external_deps: add linux-riscv64 platform
illwieckz Sep 25, 2025
f226bae
external_deps: add linux-ppc64el platform
illwieckz Jul 4, 2026
624fa2a
external_deps: add linux-loong64 architecture
illwieckz Jul 4, 2026
b212f0a
external_deps: distinguish between supported and extra deps packages
illwieckz Sep 25, 2025
73befdb
jpeg: default on PLATFORM_ARCH
illwieckz Jul 4, 2026
7e304df
external_deps: add linux-armel platform
illwieckz Jul 4, 2026
797bc81
external_deps: add freebsd-amd64 and freebsd-i686 platforms
illwieckz Jul 4, 2026
a73ab01
cmake: use Saigo by default to compile NaCl binaries
illwieckz Jun 26, 2026
86f5df0
cmake: deeply rewrite the NaCl toolchains
illwieckz Jul 4, 2026
9dfc349
external_deps: set MinGW flags as flags
illwieckz Jul 7, 2026
6830822
external_deps: use ccache when available
illwieckz Jul 7, 2026
2bd6449
cmake: make possible for the game cmake to tell which variable to pas…
illwieckz Jul 8, 2026
8b1a73f
virtualmachine: increase timeout
illwieckz Jul 10, 2026
0412d46
Refactor: function for Linux arm64 check for VM
slipher Jul 30, 2026
20cf766
Get rid of nacl_multiarch executable
slipher Jul 30, 2026
e57a230
Don't use nacl_helper_bootstrap with x86-64 loader
slipher Sep 7, 2026
8075031
external_deps: remove amd64 bootstrap usage from deps.
slipher Sep 7, 2026
bbafb48
Windows: block NaCl process from inheriting environment
slipher Sep 7, 2026
015c5b6
Check mmap_min_addr only if using NaCl bootstrap
slipher Sep 15, 2026
ea4ab12
cmake: raise an error when the SDK prefix is not a directory
slipher Oct 12, 2026
463f695
Auto-download Saigo SDK for any supported host
slipher Oct 12, 2026
2ef03c6
Add build script for Saigo SDK (host-mode deps)
slipher Oct 13, 2026
d393346
external_deps: make possible to reconfigure for a different target
illwieckz Jun 25, 2026
378ee2a
external_deps: upgrade webp
illwieckz Oct 16, 2026
af42d0c
external_deps: ++ webp
illwieckz Oct 16, 2026
ad4c89e
external_deps: upgrade openal
illwieckz Oct 16, 2026
935f83a
external_deps: ++ openal
illwieckz Oct 16, 2026
03c967a
external_deps: upgrade nasm
illwieckz Oct 16, 2026
33be7ea
fixup: build naclruntime with cmake
illwieckz Oct 16, 2026
07ecca9
external_deps: upgrade png
illwieckz Oct 16, 2026
1921f56
external_deps: upgrade jpeg
illwieckz Oct 16, 2026
cebb08d
external_deps: upgrade curl
illwieckz Oct 16, 2026
9de516f
external_deps: upgrade ncurses
illwieckz Oct 16, 2026
3cd11d9
external_deps: upgrade sdl3
illwieckz Oct 16, 2026
5f3e587
fixup-macos-platform
illwieckz Oct 16, 2026
c4279b0
fixup-space
illwieckz Oct 16, 2026
d398d4b
sdl-no-camera
illwieckz Oct 16, 2026
8a83ffd
curl-disable-options
illwieckz Oct 17, 2026
184a879
workaround-openal-macos
illwieckz Oct 17, 2026
f2f48ba
bootstrap
illwieckz Oct 17, 2026
eeaec51
box64
illwieckz Oct 23, 2026
3e20fa7
naclruntime
illwieckz Oct 23, 2026
f01e02c
implement VmFlags
illwieckz Oct 23, 2026
2eb8214
make possible to force box64 on armhf
illwieckz Oct 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ build
#ignore external deps
external_deps/*
!external_deps/build.sh
!external_deps/sdk-build.sh
!external_deps/cygtar.py
!external_deps/*.patch

Expand Down
177 changes: 83 additions & 94 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,15 @@ if (Daemon_OUT)
endif()

include(Yokai/All)
include(DaemonNaclHost)

if (NOT YOKAI_TARGET_SYSTEM_NACL)
include(DaemonNaclArchitecture)

daemon_detect_nacl_arch("${YOKAI_TARGET_ARCH_NAME}")

# Add printable strings to the executable.
yokai_add_buildinfo("char*" "DAEMON_NACL_ARCH_STRING" "\"${DAEMON_NACL_ARCH_NAME}\"")
endif()

################################################################################
# Configuration options
Expand Down Expand Up @@ -142,7 +150,6 @@ set(DEFAULT_NACL_VM_INHERITED_OPTIONS
BUILD_SGAME
CMAKE_BUILD_TYPE
CMAKE_VERBOSE_MAKEFILE
DAEMON_CBSE_PYTHON_PATH
USE_ARCH_INTRINSICS
USE_COMPILER_CUSTOMIZATION
USE_COMPILER_INTRINSICS
Expand Down Expand Up @@ -190,8 +197,9 @@ else()
set(FULL_OUTPUT_DIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR})
endif()

# Dependencies version, this must match the number in external_deps/build.sh
set(DEPS_VERSION 11)
# Dependencies versions
set(DEPS_VERSION 12) # This must match the number in external_deps/build.sh
set(SAIGOSDK_VERSION 20260925) # This must match the number in external_deps/sdk-build.sh

option(USE_EXTERNAL_DEPS "Download or reuse dependencies from EXTERNAL_DEPS_DIR (mandatory for building and running NaCl .nexe binaries)." ON)

Expand Down Expand Up @@ -221,17 +229,7 @@ if (USE_EXTERNAL_DEPS AND NOT YOKAI_TARGET_SYSTEM_NACL)
set(SUPPORTED_${DEPS_SYSTEM}_ARCH amd64 i686)
elseif (YOKAI_TARGET_SYSTEM_MACOS)
set(DEPS_SYSTEM macos)
set(SUPPORTED_${DEPS_SYSTEM}_ARCH amd64)

if (YOKAI_TARGET_ARCH_ARM64)
set(DEPS_ARCH amd64)

set_deps_dir()

if (NOT EXISTS ${DEPS_DIR})
set(DEFAULT_USE_EXTERNAL_DEPS_LIBS OFF)
endif()
endif()
set(SUPPORTED_${DEPS_SYSTEM}_ARCH amd64 arm64)
elseif (YOKAI_TARGET_SYSTEM_LINUX)
set(DEPS_SYSTEM linux)
set(SUPPORTED_${DEPS_SYSTEM}_ARCH amd64 i686 arm64 armhf)
Expand Down Expand Up @@ -266,6 +264,9 @@ endif()

option(USE_EXTERNAL_DEPS_LIBS "Build and link against libraries from the EXTERNAL_DEPS_DIR" ${DEFAULT_USE_EXTERNAL_DEPS_LIBS})

set(PNACLSDK_PREFIX "${DEPS_DIR}/pnacl" CACHE PATH "PNaCl SDK path")
mark_as_advanced(PNACLSDK_PREFIX)

if (USE_EXTERNAL_DEPS AND NOT YOKAI_TARGET_SYSTEM_NACL)
if (DEPS_DIR)
message(STATUS "Using external deps dir: ${DEPS_DIR}")
Expand All @@ -292,6 +293,7 @@ endif()
# meaning we have to detect useless engine compiler to set
# useless engine flags when only building vms.
include(DaemonFlags)
include(DaemonNaclFlags)

# FIXME: Once engine flags would be only set when building the engine
# this would be likely unused by vms as they are built by DaemonGame.
Expand Down Expand Up @@ -398,33 +400,33 @@ if (DEPS_DIR)
if (NOT EXISTS ${DEPS_DIR})
file(MAKE_DIRECTORY ${EXTERNAL_DEPS_DIR})
get_filename_component(BASENAME ${DEPS_DIR} NAME)
set(DEPS_FILENAME "${BASENAME}${DEPS_EXT}")

# Download test DEPS archive if DEPS archive isn't available yet.
# This makes possible to get the CI working before releasing the DEPS archive.
foreach(REMOTE_BASEURL https://dl.unvanquished.net/deps;https://dl.unvanquished.net/test/deps)
set(REMOTE "${REMOTE_BASEURL}/${DEPS_FILENAME}")
message(STATUS "Downloading dependencies from '${REMOTE}'")

file(DOWNLOAD "${REMOTE}" "${OBJ_DIR}/${DEPS_FILENAME}"
SHOW_PROGRESS
STATUS DOWNLOAD_RESULT
LOG DOWNLOAD_LOG
)

list(GET DOWNLOAD_RESULT 0 DOWNLOAD_STATUS)
list(GET DOWNLOAD_RESULT 1 DOWNLOAD_STRING)

if (DOWNLOAD_STATUS EQUAL 0)
break()
else ()
message(WARNING "Error downloading '${REMOTE}':
Status code: ${DOWNLOAD_STATUS}
Error string: ${DOWNLOAD_STRING}
Download log: ${DOWNLOAD_LOG}"
)
endif()
endforeach()
set(DEPS_FILENAME "${BASENAME}${DEPS_EXT}")

# Download test DEPS archive if DEPS archive isn't available yet.
# This makes possible to get the CI working before releasing the DEPS archive.
foreach(REMOTE_BASEURL https://dl.unvanquished.net/deps;https://dl.unvanquished.net/test/deps)
set(REMOTE "${REMOTE_BASEURL}/${DEPS_FILENAME}")
message(STATUS "Downloading dependencies from '${REMOTE}'")

file(DOWNLOAD "${REMOTE}" "${OBJ_DIR}/${DEPS_FILENAME}"
SHOW_PROGRESS
STATUS DOWNLOAD_RESULT
LOG DOWNLOAD_LOG
)

list(GET DOWNLOAD_RESULT 0 DOWNLOAD_STATUS)
list(GET DOWNLOAD_RESULT 1 DOWNLOAD_STRING)

if (DOWNLOAD_STATUS EQUAL 0)
break()
else ()
message(WARNING "Error downloading '${REMOTE}':
Status code: ${DOWNLOAD_STATUS}
Error string: ${DOWNLOAD_STRING}
Download log: ${DOWNLOAD_LOG}"
)
endif()
endforeach()

if (NOT DOWNLOAD_STATUS EQUAL 0)
message(FATAL_ERROR "Failed to download '${DEPS_FILENAME}'")
Expand All @@ -443,6 +445,11 @@ if (DEPS_DIR)
endif()
endif()

if (BUILD_GAME_NACL AND USE_NACL_SAIGO AND NOT SAIGOSDK_PREFIX)
include(DaemonDependenciesDownload)
download_saigosdk()
endif()

if (USE_EXTERNAL_DEPS_LIBS)
# Add to paths
set(CMAKE_FIND_ROOT_PATH ${DEPS_DIR} ${CMAKE_FIND_ROOT_PATH})
Expand All @@ -463,7 +470,6 @@ endif()
# LIBS_BASE, LIBS_ENGINE_BASE LIBS_ENGINE, LIBS_BASECLIENT, LIBS_CLIENT

# Native client
include(DaemonNacl)
if (YOKAI_TARGET_SYSTEM_NACL)
add_library(srclibs-nacl-module EXCLUDE_FROM_ALL ${NACLLIST_MODULE})
set(LIBS_BASE ${LIBS_BASE} srclibs-nacl-module)
Expand All @@ -484,16 +490,6 @@ elseif (YOKAI_TARGET_SYSTEM_NACL)
find_library(NACL_EXCEPTION nacl_exception)
find_library(NACL_MINIDUMP minidump_generator)

# HACK: To be removed when Saigo is repackaged properly.
if (NOT NACL_MINIDUMP
# NACL_TARGET is specific to Saigo, PNaCl target is le32 and doesn't set NACL_TARGET.
AND "${NACL_TARGET}" STREQUAL "i686"
# x86_64-nacl/lib32 is specific to Google build, other builds may provide i686-nacl/lib instead.
AND EXISTS "${DEPS_DIR}/saigo_newlib/x86_64-nacl/lib32")
set(NACL_EXCEPTION "${DEPS_DIR}/saigo_newlib/x86_64-nacl/lib32/libnacl_exception.a")
set(NACL_MINIDUMP "${DEPS_DIR}/saigo_newlib/x86_64-nacl/lib32/libminidump_generator.a")
endif()

set(LIBS_BASE ${LIBS_BASE} ${NACL_MINIDUMP} ${NACL_EXCEPTION})
else()
find_library(LIBM m)
Expand Down Expand Up @@ -970,56 +966,49 @@ if (DEPS_DIR AND HAS_NACL AND (BUILD_CLIENT OR BUILD_TTY_CLIENT OR BUILD_SERVER
add_custom_target(runtime_deps)
set_target_properties(runtime_deps PROPERTIES FOLDER "CMakePlumbing")

# The NaCl loader and IRT are required to load .nexe files
add_custom_command(TARGET runtime_deps PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DEPS_DIR}/nacl_loader${CMAKE_EXECUTABLE_SUFFIX}
${FULL_OUTPUT_DIR}/nacl_loader${CMAKE_EXECUTABLE_SUFFIX}
)
foreach(arch_name IN LISTS DAEMON_NACL_ARCH_NAME_LIST)
# The NaCl loader and IRT are required to load .nexe files
add_custom_command(TARGET runtime_deps PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DEPS_DIR}/nacl_loader-${arch_name}${CMAKE_EXECUTABLE_SUFFIX}
${FULL_OUTPUT_DIR}/nacl_loader-${arch_name}${CMAKE_EXECUTABLE_SUFFIX}
)

add_custom_command(TARGET runtime_deps PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DEPS_DIR}/irt_core-${DAEMON_NACL_ARCH_NAME}.nexe
${FULL_OUTPUT_DIR}/irt_core-${DAEMON_NACL_ARCH_NAME}.nexe
)
add_custom_command(TARGET runtime_deps PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DEPS_DIR}/irt_core-${arch_name}.nexe
${FULL_OUTPUT_DIR}/irt_core-${arch_name}.nexe
)
endforeach()

# Linux uses a bootstrap program to reserve address space
if (YOKAI_TARGET_SYSTEM_LINUX_COMPATIBILITY)
if (YOKAI_TARGET_ARCH_ARM64)
add_executable(nacl_helper_bootstrap-armhf tools/nacl_helper_bootstrap-armhf/nacl_helper_bootstrap-armhf.cpp)
add_dependencies(runtime_deps nacl_helper_bootstrap-armhf)

foreach(arch_name IN LISTS DAEMON_NACL_MULTILIB_ARCH_NAME_LIST)
add_custom_command(TARGET runtime_deps PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory
${FULL_OUTPUT_DIR}/lib-armhf
COMMAND ${CMAKE_COMMAND} -E copy_directory
${DEPS_DIR}/libs-linux-${arch_name}
${FULL_OUTPUT_DIR}/libs-linux-${arch_name}
)
endforeach()

# Linux uses a bootstrap program to reserve address space for 32-bit runtimes.
foreach(arch_name IN LISTS DAEMON_NACL_ARCH_NAME_LIST)
set(arch_32bit "i686" "armhf")
if ("${arch_name}" IN_LIST arch_32bit)
add_custom_command(TARGET runtime_deps PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DEPS_DIR}/nacl_helper_bootstrap-${arch_name}
${FULL_OUTPUT_DIR}/nacl_helper_bootstrap-${arch_name}
)
endif()
endforeach()

if (DAEMON_NACL_BOX64_EMULATION)
add_custom_command(TARGET runtime_deps PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${DEPS_DIR}/lib-armhf
${FULL_OUTPUT_DIR}/lib-armhf
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DEPS_DIR}/box64
${FULL_OUTPUT_DIR}/box64
)
endif()

add_custom_command(TARGET runtime_deps PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DEPS_DIR}/nacl_helper_bootstrap
${FULL_OUTPUT_DIR}/nacl_helper_bootstrap
)
endif()

# Win32 requires nacl_loader_amd64.exe in order to run on Win64
if (YOKAI_TARGET_SYSTEM_WINDOWS AND YOKAI_TARGET_ARCH_I686)
add_custom_command(TARGET runtime_deps PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DEPS_DIR}/nacl_loader-amd64${CMAKE_EXECUTABLE_SUFFIX}
${FULL_OUTPUT_DIR}/nacl_loader-amd64${CMAKE_EXECUTABLE_SUFFIX}
)
add_custom_command(TARGET runtime_deps PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${DEPS_DIR}/irt_core-amd64.nexe
${FULL_OUTPUT_DIR}/irt_core-amd64.nexe
)
endif()

# Mac requires some libraries from external_deps
Expand Down
74 changes: 74 additions & 0 deletions cmake/DaemonDependenciesDownload.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Daemon BSD Source Code
# Copyright (c) 2013-2026, Daemon Developers
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the Daemon developers nor the
# names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL DAEMON DEVELOPERS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# TODO: Move other deps downloading code in here.

set(SAIGOSDK_BASENAME "saigosdk-${DEPS_SYSTEM}-${DEPS_ARCH}_${SAIGOSDK_VERSION}")

# Warning: changing SAIGOSDK_PREFIX/SAIGOSDK_VERSION after subprojects have been configured WILL
# change the compiler, but it is a bad idea since flag tests and such (not to mention the actual
# compiled artifacts) will be out of date.
set(SAIGOSDK_PREFIX "${EXTERNAL_DEPS_DIR}/${SAIGOSDK_BASENAME}" CACHE PATH "PNaCl SDK path")
mark_as_advanced(SAIGOSDK_PREFIX)

# As an alternative to downloading, external_deps/sdk-build.sh can be used, to build the host-mode
# dependencies and install them in the expected path.
function(download_saigosdk)
if (NOT EXISTS "${SAIGOSDK_PREFIX}")
set(DEPS_FILENAME "${SAIGOSDK_BASENAME}.tar.xz")
set(REMOTE "https://github.com/DaemonEngine/saigo-nacl-sdk/releases/download/v${SAIGOSDK_VERSION}/${DEPS_FILENAME}")
message(STATUS "Downloading NaCl SDK from '${REMOTE}'")

file(DOWNLOAD "${REMOTE}" "${OBJ_DIR}/${DEPS_FILENAME}"
SHOW_PROGRESS
STATUS DOWNLOAD_RESULT
LOG DOWNLOAD_LOG
)

list(GET DOWNLOAD_RESULT 0 DOWNLOAD_STATUS)
list(GET DOWNLOAD_RESULT 1 DOWNLOAD_STRING)

if (NOT DOWNLOAD_STATUS EQUAL 0)
message(FATAL_ERROR "Failed to download '${REMOTE}': This may be a network error, or your system may be an unsupported host platform.
Status code: ${DOWNLOAD_STATUS}
Error string: ${DOWNLOAD_STRING}
Download log: ${DOWNLOAD_LOG}"
)
endif()

message(STATUS "SDK download completed successfully")

# Extract the downloaded archive
execute_process(
COMMAND ${CMAKE_COMMAND} -E tar xJf ${OBJ_DIR}/${DEPS_FILENAME}
WORKING_DIRECTORY ${EXTERNAL_DEPS_DIR}
RESULT_VARIABLE EXTRACT_RESULT
)
if (NOT EXTRACT_RESULT EQUAL 0)
message(FATAL_ERROR "Could not extract ${DEPS_FILENAME}")
endif()
endif()
endfunction()
Loading
Loading