diff options
author | bunnei <bunneidev@gmail.com> | 2022-11-11 02:11:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 02:11:27 +0100 |
commit | d05b183f2118a5e2c919c35023549f30201bdd7c (patch) | |
tree | 082cf6bb2e372c3233872b836fa96bdc0c25f279 /src/video_core | |
parent | Merge pull request #9180 from Docteh/remove_stuff (diff) | |
parent | Initial ARM64 support (diff) | |
download | yuzu-d05b183f2118a5e2c919c35023549f30201bdd7c.tar yuzu-d05b183f2118a5e2c919c35023549f30201bdd7c.tar.gz yuzu-d05b183f2118a5e2c919c35023549f30201bdd7c.tar.bz2 yuzu-d05b183f2118a5e2c919c35023549f30201bdd7c.tar.lz yuzu-d05b183f2118a5e2c919c35023549f30201bdd7c.tar.xz yuzu-d05b183f2118a5e2c919c35023549f30201bdd7c.tar.zst yuzu-d05b183f2118a5e2c919c35023549f30201bdd7c.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/CMakeLists.txt | 15 | ||||
-rw-r--r-- | src/video_core/macro/macro.cpp | 3 |
2 files changed, 15 insertions, 3 deletions
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index 106991969..d7f7d336c 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt @@ -73,8 +73,6 @@ add_library(video_core STATIC macro/macro_hle.h macro/macro_interpreter.cpp macro/macro_interpreter.h - macro/macro_jit_x64.cpp - macro/macro_jit_x64.h fence_manager.h gpu.cpp gpu.h @@ -245,7 +243,7 @@ add_library(video_core STATIC create_target_directory_groups(video_core) target_link_libraries(video_core PUBLIC common core) -target_link_libraries(video_core PUBLIC glad shader_recompiler xbyak) +target_link_libraries(video_core PUBLIC glad shader_recompiler) if (YUZU_USE_BUNDLED_FFMPEG AND NOT WIN32) add_dependencies(video_core ffmpeg-build) @@ -282,8 +280,19 @@ else() -Wno-sign-conversion ) + + # xbyak + set_source_files_properties(macro/macro_jit_x64.cpp PROPERTIES COMPILE_OPTIONS "-Wno-conversion;-Wno-shadow") endif() if (ARCHITECTURE_x86_64) + target_sources(video_core PRIVATE + macro/macro_jit_x64.cpp + macro/macro_jit_x64.h + ) + target_link_libraries(video_core PUBLIC xbyak) +endif() + +if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64) target_link_libraries(video_core PRIVATE dynarmic) endif() diff --git a/src/video_core/macro/macro.cpp b/src/video_core/macro/macro.cpp index f61d5998e..505d81c1e 100644 --- a/src/video_core/macro/macro.cpp +++ b/src/video_core/macro/macro.cpp @@ -16,7 +16,10 @@ #include "video_core/macro/macro.h" #include "video_core/macro/macro_hle.h" #include "video_core/macro/macro_interpreter.h" + +#ifdef ARCHITECTURE_x86_64 #include "video_core/macro/macro_jit_x64.h" +#endif namespace Tegra { |