mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-06-05 17:03:45 -04:00
LLVM does what Zydisn't Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2893 Reviewed-by: crueter <crueter@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
34 lines
961 B
CMake
34 lines
961 B
CMake
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
include(CPMUtil)
|
|
|
|
# Always build externals as static libraries, even when dynarmic is built as shared
|
|
set(BUILD_SHARED_LIBS OFF)
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
set_property(DIRECTORY PROPERTY EXCLUDE_FROM_ALL ON)
|
|
|
|
# Allow options shadowing with normal variables when subproject use old cmake policy
|
|
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
|
|
|
# Disable tests in all externals supporting the standard option name
|
|
set(BUILD_TESTING OFF)
|
|
|
|
# For libraries that already come with a CMakeLists file,
|
|
# simply add the directory to that file as a subdirectory
|
|
# to have CMake automatically recognize them.
|
|
|
|
# biscuit
|
|
|
|
if ("riscv" IN_LIST ARCHITECTURE)
|
|
AddJsonPackage(
|
|
NAME biscuit
|
|
BUNDLED_PACKAGE ${DYNARMIC_USE_BUNDLED_EXTERNALS}
|
|
)
|
|
endif()
|
|
|
|
# mcl
|
|
AddJsonPackage(
|
|
NAME mcl
|
|
BUNDLED_PACKAGE ${DYNARMIC_USE_BUNDLED_EXTERNALS}
|
|
)
|