diff options
| author | 2022-12-04 10:44:12 -0500 | |
|---|---|---|
| committer | 2022-12-04 10:44:12 -0500 | |
| commit | 02b10a6e4dca0ed94e20e1b7dcc69a073d1f22a4 (patch) | |
| tree | 25de4a77ee6f3f29e01470bf885b4fa58deb8323 /src/yuzu_cmd | |
| parent | Merge pull request #9344 from liamwhite/null (diff) | |
| parent | externals: update dynarmic, SDL2 (diff) | |
| download | yuzu-02b10a6e4dca0ed94e20e1b7dcc69a073d1f22a4.tar.gz yuzu-02b10a6e4dca0ed94e20e1b7dcc69a073d1f22a4.tar.xz yuzu-02b10a6e4dca0ed94e20e1b7dcc69a073d1f22a4.zip | |
Merge pull request #9374 from liamwhite/externals
externals: update dynarmic, SDL2
Diffstat (limited to 'src/yuzu_cmd')
| -rw-r--r-- | src/yuzu_cmd/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp | 6 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt index 13b673186..607b4e6aa 100644 --- a/src/yuzu_cmd/CMakeLists.txt +++ b/src/yuzu_cmd/CMakeLists.txt | |||
| @@ -46,8 +46,9 @@ target_include_directories(yuzu-cmd PRIVATE ${RESOURCES_DIR}) | |||
| 46 | target_include_directories(yuzu-cmd PRIVATE ../../externals/Vulkan-Headers/include) | 46 | target_include_directories(yuzu-cmd PRIVATE ../../externals/Vulkan-Headers/include) |
| 47 | 47 | ||
| 48 | if (YUZU_USE_EXTERNAL_SDL2) | 48 | if (YUZU_USE_EXTERNAL_SDL2) |
| 49 | target_compile_definitions(yuzu-cmd PRIVATE -DYUZU_USE_EXTERNAL_SDL2) | 49 | target_link_libraries(yuzu-cmd PRIVATE SDL2-static) |
| 50 | target_include_directories(yuzu-cmd PRIVATE ${PROJECT_BINARY_DIR}/externals/SDL/include) | 50 | else() |
| 51 | target_link_libraries(yuzu-cmd PRIVATE SDL2) | ||
| 51 | endif() | 52 | endif() |
| 52 | 53 | ||
| 53 | if(UNIX AND NOT APPLE) | 54 | if(UNIX AND NOT APPLE) |
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp index 0d580fe4f..9ed47d453 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp | |||
| @@ -12,12 +12,6 @@ | |||
| 12 | #include "video_core/renderer_vulkan/renderer_vulkan.h" | 12 | #include "video_core/renderer_vulkan/renderer_vulkan.h" |
| 13 | #include "yuzu_cmd/emu_window/emu_window_sdl2_vk.h" | 13 | #include "yuzu_cmd/emu_window/emu_window_sdl2_vk.h" |
| 14 | 14 | ||
| 15 | #ifdef YUZU_USE_EXTERNAL_SDL2 | ||
| 16 | // Include this before SDL.h to prevent the external from including a dummy | ||
| 17 | #define USING_GENERATED_CONFIG_H | ||
| 18 | #include <SDL_config.h> | ||
| 19 | #endif | ||
| 20 | |||
| 21 | #include <SDL.h> | 15 | #include <SDL.h> |
| 22 | #include <SDL_syswm.h> | 16 | #include <SDL_syswm.h> |
| 23 | 17 | ||