diff options
| author | 2016-03-01 17:24:18 +0000 | |
|---|---|---|
| committer | 2016-03-02 14:09:02 +0000 | |
| commit | ba2a54a9dd6e5a263c5e6886e55b3bc55b95b4ab (patch) | |
| tree | 182d660b2f2c8572266144f46817e5a221aa4caf /src/citra_qt | |
| parent | Merge pull request #1424 from MerryMage/lut_init (diff) | |
| download | yuzu-ba2a54a9dd6e5a263c5e6886e55b3bc55b95b4ab.tar.gz yuzu-ba2a54a9dd6e5a263c5e6886e55b3bc55b95b4ab.tar.xz yuzu-ba2a54a9dd6e5a263c5e6886e55b3bc55b95b4ab.zip | |
Dependencies: Remove GLFW, Add SDL2
citra: Remove GLFW, Add SDL2
FindSDL2: Do not CACHE SDL2_* variables if library is not found
EmuWindow_SDL2: Set minimal client area at initialisation time
EmuWindow_SDL2: Corrections
EmuWindow_SDL2: Fix no decorations on startup on OS X
cmake: windows_copy_files
Diffstat (limited to '')
| -rw-r--r-- | src/citra_qt/CMakeLists.txt | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt index b3d1205a4..9b3eb2cd6 100644 --- a/src/citra_qt/CMakeLists.txt +++ b/src/citra_qt/CMakeLists.txt | |||
| @@ -88,9 +88,14 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD") | |||
| 88 | endif() | 88 | endif() |
| 89 | 89 | ||
| 90 | if (Qt5_FOUND AND MSVC) | 90 | if (Qt5_FOUND AND MSVC) |
| 91 | include(WindowsCopyFiles) | ||
| 92 | |||
| 91 | set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin") | 93 | set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin") |
| 92 | set(Qt5_PLATFORMS_DIR "${Qt5_DIR}/../../../plugins/platforms/") | 94 | set(Qt5_PLATFORMS_DIR "${Qt5_DIR}/../../../plugins/platforms/") |
| 93 | set(Qt5_DLLS | 95 | set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") |
| 96 | set(PLATFORMS ${DLL_DEST}platforms/) | ||
| 97 | |||
| 98 | windows_copy_files(citra-qt ${Qt5_DLL_DIR} ${DLL_DEST} | ||
| 94 | icudt*.dll | 99 | icudt*.dll |
| 95 | icuin*.dll | 100 | icuin*.dll |
| 96 | icuuc*.dll | 101 | icuuc*.dll |
| @@ -99,24 +104,8 @@ if (Qt5_FOUND AND MSVC) | |||
| 99 | Qt5OpenGL$<$<CONFIG:Debug>:d>.* | 104 | Qt5OpenGL$<$<CONFIG:Debug>:d>.* |
| 100 | Qt5Widgets$<$<CONFIG:Debug>:d>.* | 105 | Qt5Widgets$<$<CONFIG:Debug>:d>.* |
| 101 | ) | 106 | ) |
| 102 | set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") | 107 | windows_copy_files(citra-qt ${Qt5_PLATFORMS_DIR} ${PLATFORMS} qwindows$<$<CONFIG:Debug>:d>.*) |
| 103 | set(PLATFORMS ${DLL_DEST}platforms/) | ||
| 104 | 108 | ||
| 105 | # windows commandline expects the / to be \ so switch them | ||
| 106 | string(REPLACE "/" "\\\\" Qt5_DLL_DIR ${Qt5_DLL_DIR}) | ||
| 107 | string(REPLACE "/" "\\\\" Qt5_PLATFORMS_DIR ${Qt5_PLATFORMS_DIR}) | ||
| 108 | string(REPLACE "/" "\\\\" DLL_DEST ${DLL_DEST}) | ||
| 109 | string(REPLACE "/" "\\\\" PLATFORMS ${PLATFORMS}) | ||
| 110 | |||
| 111 | # /NJH /NJS /NDL /NFL /NC /NS /NP - Silence any output | ||
| 112 | # cmake adds an extra check for command success which doesn't work too well with robocopy | ||
| 113 | # so trick it into thinking the command was successful with the || cmd /c "exit /b 0" | ||
| 114 | add_custom_command(TARGET citra-qt POST_BUILD | ||
| 115 | COMMAND robocopy ${Qt5_DLL_DIR} ${DLL_DEST} ${Qt5_DLLS} /NJH /NJS /NDL /NFL /NC /NS /NP || cmd /c "exit /b 0" | ||
| 116 | COMMAND if not exist ${PLATFORMS} mkdir ${PLATFORMS} 2> nul | ||
| 117 | COMMAND robocopy ${Qt5_PLATFORMS_DIR} ${PLATFORMS} qwindows$<$<CONFIG:Debug>:d>.* /NJH /NJS /NDL /NFL /NC /NS /NP || cmd /c "exit /b 0" | ||
| 118 | ) | ||
| 119 | unset(Qt5_DLLS) | ||
| 120 | unset(Qt5_DLL_DIR) | 109 | unset(Qt5_DLL_DIR) |
| 121 | unset(Qt5_PLATFORMS_DIR) | 110 | unset(Qt5_PLATFORMS_DIR) |
| 122 | unset(DLL_DEST) | 111 | unset(DLL_DEST) |