[cmake] dynarmic: don't install zycore and zydis
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
234e41193e
commit
8cb8f90268
3 changed files with 14 additions and 7 deletions
|
@ -30,7 +30,7 @@ function(AddPackage)
|
||||||
cmake_parse_arguments(PKG_ARGS "" "${oneValueArgs}" "${multiValueArgs}" "${ARGN}")
|
cmake_parse_arguments(PKG_ARGS "" "${oneValueArgs}" "${multiValueArgs}" "${ARGN}")
|
||||||
|
|
||||||
if (NOT DEFINED PKG_ARGS_NAME)
|
if (NOT DEFINED PKG_ARGS_NAME)
|
||||||
message(FATAL_ERROR "CPMUtil: No package name defined")
|
message(FATAL_ERROR "[CPMUtil] ${PKG_ARGS_NAME}: No package name defined")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT DEFINED PKG_ARGS_URL)
|
if (NOT DEFINED PKG_ARGS_URL)
|
||||||
|
@ -38,21 +38,21 @@ function(AddPackage)
|
||||||
set(PKG_GIT_URL https://github.com/${PKG_ARGS_REPO})
|
set(PKG_GIT_URL https://github.com/${PKG_ARGS_REPO})
|
||||||
set(PKG_URL "${PKG_GIT_URL}/archive/${PKG_ARGS_SHA}.zip")
|
set(PKG_URL "${PKG_GIT_URL}/archive/${PKG_ARGS_SHA}.zip")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "CPMUtil: No custom URL and no repository + sha defined")
|
message(FATAL_ERROR "[CPMUtil] ${PKG_ARGS_NAME}: No custom URL and no repository + sha defined")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set(PKG_URL ${PKG_ARGS_URL})
|
set(PKG_URL ${PKG_ARGS_URL})
|
||||||
set(PKG_GIT_URL ${PKG_URL})
|
set(PKG_GIT_URL ${PKG_URL})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(STATUS "CPMUtil: Downloading package ${PKG_ARGS_NAME} from ${PKG_URL}")
|
message(STATUS "[CPMUtil] ${PKG_ARGS_NAME}: Downloading package from ${PKG_URL}")
|
||||||
|
|
||||||
if (NOT DEFINED PKG_ARGS_KEY)
|
if (NOT DEFINED PKG_ARGS_KEY)
|
||||||
if (DEFINED PKG_ARGS_SHA)
|
if (DEFINED PKG_ARGS_SHA)
|
||||||
string(SUBSTRING ${PKG_ARGS_SHA} 0 4 PKG_KEY)
|
string(SUBSTRING ${PKG_ARGS_SHA} 0 4 PKG_KEY)
|
||||||
message(STATUS "CPMUtil: No custom key defined, using ${PKG_KEY} from sha")
|
message(STATUS "[CPMUtil] ${PKG_ARGS_NAME}: No custom key defined, using ${PKG_KEY} from sha")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "CPMUtil: No custom key and no commit sha defined")
|
message(FATAL_ERROR "[CPMUtil] ${PKG_ARGS_NAME}: No custom key and no commit sha defined")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set(PKG_KEY ${PKG_ARGS_KEY})
|
set(PKG_KEY ${PKG_ARGS_KEY})
|
||||||
|
@ -99,7 +99,7 @@ function(AddPackage)
|
||||||
elseif(DEFINED PKG_ARGS_VERSION)
|
elseif(DEFINED PKG_ARGS_VERSION)
|
||||||
set_property(GLOBAL APPEND PROPERTY CPM_PACKAGE_SHAS ${PKG_ARGS_VERSION})
|
set_property(GLOBAL APPEND PROPERTY CPM_PACKAGE_SHAS ${PKG_ARGS_VERSION})
|
||||||
else()
|
else()
|
||||||
message(WARNING "CPMUtil: Package ${PKG_ARGS_NAME} has no specified sha or version")
|
message(WARNING "[CPMUtil] Package ${PKG_ARGS_NAME} has no specified sha or version")
|
||||||
set_property(GLOBAL APPEND PROPERTY CPM_PACKAGE_SHAS "unknown")
|
set_property(GLOBAL APPEND PROPERTY CPM_PACKAGE_SHAS "unknown")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -138,7 +138,6 @@ endif()
|
||||||
|
|
||||||
if (DYNARMIC_USE_BUNDLED_EXTERNALS)
|
if (DYNARMIC_USE_BUNDLED_EXTERNALS)
|
||||||
set(CMAKE_DISABLE_FIND_PACKAGE_biscuit ON)
|
set(CMAKE_DISABLE_FIND_PACKAGE_biscuit ON)
|
||||||
set(CMAKE_DISABLE_FIND_PACKAGE_Catch2 ON)
|
|
||||||
set(CMAKE_DISABLE_FIND_PACKAGE_fmt ON)
|
set(CMAKE_DISABLE_FIND_PACKAGE_fmt ON)
|
||||||
set(CMAKE_DISABLE_FIND_PACKAGE_mcl ON)
|
set(CMAKE_DISABLE_FIND_PACKAGE_mcl ON)
|
||||||
set(CMAKE_DISABLE_FIND_PACKAGE_oaknut ON)
|
set(CMAKE_DISABLE_FIND_PACKAGE_oaknut ON)
|
||||||
|
|
8
src/dynarmic/externals/CMakeLists.txt
vendored
8
src/dynarmic/externals/CMakeLists.txt
vendored
|
@ -28,6 +28,7 @@ if ("riscv" IN_LIST ARCHITECTURE)
|
||||||
REPO "lioncash/biscuit"
|
REPO "lioncash/biscuit"
|
||||||
SHA 76b0be8dae
|
SHA 76b0be8dae
|
||||||
HASH 47d55ed02d032d6cf3dc107c6c0a9aea686d5f25aefb81d1af91db027b6815bd5add1755505e19d76625feeb17aa2db6cd1668fe0dad2e6a411519bde6ca4489
|
HASH 47d55ed02d032d6cf3dc107c6c0a9aea686d5f25aefb81d1af91db027b6815bd5add1755505e19d76625feeb17aa2db6cd1668fe0dad2e6a411519bde6ca4489
|
||||||
|
BUNDLED_PACKAGE ${DYNARMIC_USE_BUNDLED_EXTERNALS}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -92,12 +93,17 @@ AddPackage(
|
||||||
|
|
||||||
# zydis
|
# zydis
|
||||||
|
|
||||||
|
# TODO(crueter): maybe it's just Gentoo but zydis system package really sucks
|
||||||
if ("x86_64" IN_LIST ARCHITECTURE)
|
if ("x86_64" IN_LIST ARCHITECTURE)
|
||||||
AddPackage(
|
AddPackage(
|
||||||
NAME Zycore
|
NAME Zycore
|
||||||
REPO "zyantific/zycore-c"
|
REPO "zyantific/zycore-c"
|
||||||
SHA 75a36c45ae
|
SHA 75a36c45ae
|
||||||
HASH 15aa399f39713e042c4345bc3175c82f14dca849fde2a21d4f591f62c43e227b70d868d8bb86beb5f4eb68b1d6bd3792cdd638acf89009e787e3d10ee7401924
|
HASH 15aa399f39713e042c4345bc3175c82f14dca849fde2a21d4f591f62c43e227b70d868d8bb86beb5f4eb68b1d6bd3792cdd638acf89009e787e3d10ee7401924
|
||||||
|
OPTIONS
|
||||||
|
"CMAKE_DISABLE_FIND_PACKAGE_Doxygen ON"
|
||||||
|
# BUNDLED_PACKAGE ${DYNARMIC_USE_BUNDLED_EXTERNALS}
|
||||||
|
EXCLUDE_FROM_ALL ON
|
||||||
)
|
)
|
||||||
|
|
||||||
AddPackage(
|
AddPackage(
|
||||||
|
@ -112,5 +118,7 @@ if ("x86_64" IN_LIST ARCHITECTURE)
|
||||||
"ZYDIS_BUILD_DOXYGEN OFF"
|
"ZYDIS_BUILD_DOXYGEN OFF"
|
||||||
"ZYAN_ZYCORE_PATH ${Zycore_SOURCE_DIR}"
|
"ZYAN_ZYCORE_PATH ${Zycore_SOURCE_DIR}"
|
||||||
"CMAKE_DISABLE_FIND_PACKAGE_Doxygen ON"
|
"CMAKE_DISABLE_FIND_PACKAGE_Doxygen ON"
|
||||||
|
# BUNDLED_PACKAGE ${DYNARMIC_USE_BUNDLED_EXTERNALS}
|
||||||
|
EXCLUDE_FROM_ALL ON
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue