summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2018-01-04 13:15:29 -0500
committerGravatar bunnei2018-01-04 13:15:29 -0500
commit738845cc0e3e3dc4833e7eca25c263aa6834192b (patch)
tree27699c7763f9de3f41e95170f3135335b7c52774
parentunicorn: Use for arm interface on Windows. (diff)
downloadyuzu-738845cc0e3e3dc4833e7eca25c263aa6834192b.tar.gz
yuzu-738845cc0e3e3dc4833e7eca25c263aa6834192b.tar.xz
yuzu-738845cc0e3e3dc4833e7eca25c263aa6834192b.zip
externals: Use unicorn DLL instead of static lib.
-rw-r--r--CMakeLists.txt5
-rw-r--r--src/citra/CMakeLists.txt2
-rw-r--r--src/citra_qt/CMakeLists.txt2
3 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c45c830c7..945278f88 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -215,7 +215,7 @@ endif()
215if (YUZU_USE_BUNDLED_UNICORN) 215if (YUZU_USE_BUNDLED_UNICORN)
216 # Detect toolchain and platform 216 # Detect toolchain and platform
217 if (MSVC14 AND ARCHITECTURE_x86_64) 217 if (MSVC14 AND ARCHITECTURE_x86_64)
218 set(UNICORN_VER "unicorn-1.0.1-yuzu") 218 set(UNICORN_VER "unicorn-yuzu")
219 else() 219 else()
220 message(FATAL_ERROR "No bundled Unicorn binaries for your toolchain. Disable YUZU_USE_BUNDLED_UNICORN and provide your own.") 220 message(FATAL_ERROR "No bundled Unicorn binaries for your toolchain. Disable YUZU_USE_BUNDLED_UNICORN and provide your own.")
221 endif() 221 endif()
@@ -230,7 +230,8 @@ if (YUZU_USE_BUNDLED_UNICORN)
230 230
231 set(UNICORN_FOUND YES) 231 set(UNICORN_FOUND YES)
232 set(UNICORN_INCLUDE_DIR "${UNICORN_PREFIX}/include" CACHE PATH "Path to Unicorn headers") 232 set(UNICORN_INCLUDE_DIR "${UNICORN_PREFIX}/include" CACHE PATH "Path to Unicorn headers")
233 set(UNICORN_LIBRARY "${UNICORN_PREFIX}/lib/x64/unicorn_static.lib" CACHE PATH "Path to Unicorn library") 233 set(UNICORN_LIBRARY "${UNICORN_PREFIX}/lib/x64/unicorn_dynload.lib" CACHE PATH "Path to Unicorn library")
234 set(UNICORN_DLL_DIR "${UNICORN_PREFIX}/lib/x64/" CACHE PATH "Path to unicorn.dll")
234else() 235else()
235 find_package(unicorn REQUIRED) 236 find_package(unicorn REQUIRED)
236endif() 237endif()
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt
index a885f22f8..ed92a6ae2 100644
--- a/src/citra/CMakeLists.txt
+++ b/src/citra/CMakeLists.txt
@@ -29,5 +29,7 @@ endif()
29 29
30if (MSVC) 30if (MSVC)
31 include(CopyCitraSDLDeps) 31 include(CopyCitraSDLDeps)
32 include(CopyYuzuUnicornDeps)
32 copy_citra_SDL_deps(citra) 33 copy_citra_SDL_deps(citra)
34 copy_yuzu_unicorn_deps(citra)
33endif() 35endif()
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt
index add7566c2..e2fa33081 100644
--- a/src/citra_qt/CMakeLists.txt
+++ b/src/citra_qt/CMakeLists.txt
@@ -109,6 +109,8 @@ endif()
109if (MSVC) 109if (MSVC)
110 include(CopyCitraQt5Deps) 110 include(CopyCitraQt5Deps)
111 include(CopyCitraSDLDeps) 111 include(CopyCitraSDLDeps)
112 include(CopyYuzuUnicornDeps)
112 copy_citra_Qt5_deps(citra-qt) 113 copy_citra_Qt5_deps(citra-qt)
113 copy_citra_SDL_deps(citra-qt) 114 copy_citra_SDL_deps(citra-qt)
115 copy_yuzu_unicorn_deps(citra-qt)
114endif() 116endif()