summaryrefslogtreecommitdiff
path: root/CMakeModules
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeModules')
-rw-r--r--CMakeModules/CopyYuzuFFmpegDeps.cmake3
-rw-r--r--CMakeModules/CopyYuzuQt5Deps.cmake21
-rw-r--r--CMakeModules/CopyYuzuSDLDeps.cmake3
-rw-r--r--CMakeModules/DownloadExternals.cmake2
-rw-r--r--CMakeModules/GenerateSCMRev.cmake3
-rw-r--r--CMakeModules/MSVCCache.cmake3
-rw-r--r--CMakeModules/MinGWClangCross.cmake3
-rw-r--r--CMakeModules/MinGWCross.cmake3
8 files changed, 34 insertions, 7 deletions
diff --git a/CMakeModules/CopyYuzuFFmpegDeps.cmake b/CMakeModules/CopyYuzuFFmpegDeps.cmake
index f5ab2806c..c6231737e 100644
--- a/CMakeModules/CopyYuzuFFmpegDeps.cmake
+++ b/CMakeModules/CopyYuzuFFmpegDeps.cmake
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2020 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
1function(copy_yuzu_FFmpeg_deps target_dir) 4function(copy_yuzu_FFmpeg_deps target_dir)
2 include(WindowsCopyFiles) 5 include(WindowsCopyFiles)
3 set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") 6 set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
diff --git a/CMakeModules/CopyYuzuQt5Deps.cmake b/CMakeModules/CopyYuzuQt5Deps.cmake
index dd97f5b2b..a353ddbb7 100644
--- a/CMakeModules/CopyYuzuQt5Deps.cmake
+++ b/CMakeModules/CopyYuzuQt5Deps.cmake
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2016 Citra Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
1function(copy_yuzu_Qt5_deps target_dir) 4function(copy_yuzu_Qt5_deps target_dir)
2 include(WindowsCopyFiles) 5 include(WindowsCopyFiles)
3 if (MSVC) 6 if (MSVC)
@@ -10,21 +13,22 @@ function(copy_yuzu_Qt5_deps target_dir)
10 set(Qt5_PLATFORMS_DIR "${Qt5_DIR}/../../../plugins/platforms/") 13 set(Qt5_PLATFORMS_DIR "${Qt5_DIR}/../../../plugins/platforms/")
11 set(Qt5_PLATFORMTHEMES_DIR "${Qt5_DIR}/../../../plugins/platformthemes/") 14 set(Qt5_PLATFORMTHEMES_DIR "${Qt5_DIR}/../../../plugins/platformthemes/")
12 set(Qt5_PLATFORMINPUTCONTEXTS_DIR "${Qt5_DIR}/../../../plugins/platforminputcontexts/") 15 set(Qt5_PLATFORMINPUTCONTEXTS_DIR "${Qt5_DIR}/../../../plugins/platforminputcontexts/")
16 set(Qt5_MEDIASERVICE_DIR "${Qt5_DIR}/../../../plugins/mediaservice/")
13 set(Qt5_XCBGLINTEGRATIONS_DIR "${Qt5_DIR}/../../../plugins/xcbglintegrations/") 17 set(Qt5_XCBGLINTEGRATIONS_DIR "${Qt5_DIR}/../../../plugins/xcbglintegrations/")
14 set(Qt5_STYLES_DIR "${Qt5_DIR}/../../../plugins/styles/") 18 set(Qt5_STYLES_DIR "${Qt5_DIR}/../../../plugins/styles/")
15 set(Qt5_IMAGEFORMATS_DIR "${Qt5_DIR}/../../../plugins/imageformats/") 19 set(Qt5_IMAGEFORMATS_DIR "${Qt5_DIR}/../../../plugins/imageformats/")
16 set(Qt5_RESOURCES_DIR "${Qt5_DIR}/../../../resources/") 20 set(Qt5_RESOURCES_DIR "${Qt5_DIR}/../../../resources/")
17 set(PLATFORMS ${DLL_DEST}plugins/platforms/) 21 set(PLATFORMS ${DLL_DEST}plugins/platforms/)
22 set(MEDIASERVICE ${DLL_DEST}mediaservice/)
18 set(STYLES ${DLL_DEST}plugins/styles/) 23 set(STYLES ${DLL_DEST}plugins/styles/)
19 set(IMAGEFORMATS ${DLL_DEST}plugins/imageformats/) 24 set(IMAGEFORMATS ${DLL_DEST}plugins/imageformats/)
20 if (MSVC) 25 if (MSVC)
21 windows_copy_files(${target_dir} ${Qt5_DLL_DIR} ${DLL_DEST} 26 windows_copy_files(${target_dir} ${Qt5_DLL_DIR} ${DLL_DEST}
22 icudt*.dll
23 icuin*.dll
24 icuuc*.dll
25 Qt5Core$<$<CONFIG:Debug>:d>.* 27 Qt5Core$<$<CONFIG:Debug>:d>.*
26 Qt5Gui$<$<CONFIG:Debug>:d>.* 28 Qt5Gui$<$<CONFIG:Debug>:d>.*
27 Qt5Widgets$<$<CONFIG:Debug>:d>.* 29 Qt5Widgets$<$<CONFIG:Debug>:d>.*
30 Qt5Multimedia$<$<CONFIG:Debug>:d>.*
31 Qt5Network$<$<CONFIG:Debug>:d>.*
28 ) 32 )
29 33
30 if (YUZU_USE_QT_WEB_ENGINE) 34 if (YUZU_USE_QT_WEB_ENGINE)
@@ -37,18 +41,17 @@ function(copy_yuzu_Qt5_deps target_dir)
37 Qt5Quick$<$<CONFIG:Debug>:d>.* 41 Qt5Quick$<$<CONFIG:Debug>:d>.*
38 Qt5QuickWidgets$<$<CONFIG:Debug>:d>.* 42 Qt5QuickWidgets$<$<CONFIG:Debug>:d>.*
39 Qt5WebChannel$<$<CONFIG:Debug>:d>.* 43 Qt5WebChannel$<$<CONFIG:Debug>:d>.*
40 Qt5WebEngine$<$<CONFIG:Debug>:d>.*
41 Qt5WebEngineCore$<$<CONFIG:Debug>:d>.* 44 Qt5WebEngineCore$<$<CONFIG:Debug>:d>.*
42 Qt5WebEngineWidgets$<$<CONFIG:Debug>:d>.* 45 Qt5WebEngineWidgets$<$<CONFIG:Debug>:d>.*
43 QtWebEngineProcess$<$<CONFIG:Debug>:d>.* 46 QtWebEngineProcess$<$<CONFIG:Debug>:d>.*
44 ) 47 )
45 48
46 windows_copy_files(${target_dir} ${Qt5_RESOURCES_DIR} ${DLL_DEST} 49 windows_copy_files(${target_dir} ${Qt5_RESOURCES_DIR} ${DLL_DEST}
47 qtwebengine_resources.pak 50 icudtl.dat
48 qtwebengine_devtools_resources.pak 51 qtwebengine_devtools_resources.pak
52 qtwebengine_resources.pak
49 qtwebengine_resources_100p.pak 53 qtwebengine_resources_100p.pak
50 qtwebengine_resources_200p.pak 54 qtwebengine_resources_200p.pak
51 icudtl.dat
52 ) 55 )
53 endif () 56 endif ()
54 windows_copy_files(yuzu ${Qt5_PLATFORMS_DIR} ${PLATFORMS} qwindows$<$<CONFIG:Debug>:d>.*) 57 windows_copy_files(yuzu ${Qt5_PLATFORMS_DIR} ${PLATFORMS} qwindows$<$<CONFIG:Debug>:d>.*)
@@ -56,7 +59,11 @@ function(copy_yuzu_Qt5_deps target_dir)
56 windows_copy_files(yuzu ${Qt5_IMAGEFORMATS_DIR} ${IMAGEFORMATS} 59 windows_copy_files(yuzu ${Qt5_IMAGEFORMATS_DIR} ${IMAGEFORMATS}
57 qjpeg$<$<CONFIG:Debug>:d>.* 60 qjpeg$<$<CONFIG:Debug>:d>.*
58 qgif$<$<CONFIG:Debug>:d>.* 61 qgif$<$<CONFIG:Debug>:d>.*
59 ) 62 )
63 windows_copy_files(yuzu ${Qt5_MEDIASERVICE_DIR} ${MEDIASERVICE}
64 dsengine$<$<CONFIG:Debug>:d>.*
65 wmfengine$<$<CONFIG:Debug>:d>.*
66 )
60 else() 67 else()
61 set(Qt5_DLLS 68 set(Qt5_DLLS
62 "${Qt5_DLL_DIR}libQt5Core.so.5" 69 "${Qt5_DLL_DIR}libQt5Core.so.5"
diff --git a/CMakeModules/CopyYuzuSDLDeps.cmake b/CMakeModules/CopyYuzuSDLDeps.cmake
index 5963684f4..7ffdd8a1d 100644
--- a/CMakeModules/CopyYuzuSDLDeps.cmake
+++ b/CMakeModules/CopyYuzuSDLDeps.cmake
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2016 Citra Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
1function(copy_yuzu_SDL_deps target_dir) 4function(copy_yuzu_SDL_deps target_dir)
2 include(WindowsCopyFiles) 5 include(WindowsCopyFiles)
3 set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") 6 set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
diff --git a/CMakeModules/DownloadExternals.cmake b/CMakeModules/DownloadExternals.cmake
index 4c4dec5ff..8fe5ba48d 100644
--- a/CMakeModules/DownloadExternals.cmake
+++ b/CMakeModules/DownloadExternals.cmake
@@ -1,3 +1,5 @@
1# SPDX-FileCopyrightText: 2017 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
1 3
2# This function downloads a binary library package from our external repo. 4# This function downloads a binary library package from our external repo.
3# Params: 5# Params:
diff --git a/CMakeModules/GenerateSCMRev.cmake b/CMakeModules/GenerateSCMRev.cmake
index c7da2b91d..0e4bd121c 100644
--- a/CMakeModules/GenerateSCMRev.cmake
+++ b/CMakeModules/GenerateSCMRev.cmake
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
1# Gets a UTC timstamp and sets the provided variable to it 4# Gets a UTC timstamp and sets the provided variable to it
2function(get_timestamp _var) 5function(get_timestamp _var)
3 string(TIMESTAMP timestamp UTC) 6 string(TIMESTAMP timestamp UTC)
diff --git a/CMakeModules/MSVCCache.cmake b/CMakeModules/MSVCCache.cmake
index 8848e35ea..ba0d22d9e 100644
--- a/CMakeModules/MSVCCache.cmake
+++ b/CMakeModules/MSVCCache.cmake
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-3.0-or-later
3
1# buildcache wrapper 4# buildcache wrapper
2OPTION(USE_CCACHE "Use buildcache for compilation" OFF) 5OPTION(USE_CCACHE "Use buildcache for compilation" OFF)
3IF(USE_CCACHE) 6IF(USE_CCACHE)
diff --git a/CMakeModules/MinGWClangCross.cmake b/CMakeModules/MinGWClangCross.cmake
index ccf4dbf40..286a59a7a 100644
--- a/CMakeModules/MinGWClangCross.cmake
+++ b/CMakeModules/MinGWClangCross.cmake
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-3.0-or-later
3
1set(MINGW_PREFIX /usr/x86_64-w64-mingw32/) 4set(MINGW_PREFIX /usr/x86_64-w64-mingw32/)
2set(CMAKE_SYSTEM_NAME Windows) 5set(CMAKE_SYSTEM_NAME Windows)
3set(CMAKE_SYSTEM_PROCESSOR x86_64) 6set(CMAKE_SYSTEM_PROCESSOR x86_64)
diff --git a/CMakeModules/MinGWCross.cmake b/CMakeModules/MinGWCross.cmake
index b268e72d8..61464f7da 100644
--- a/CMakeModules/MinGWCross.cmake
+++ b/CMakeModules/MinGWCross.cmake
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2018 tech4me <guiwanglong@gmail.com>
2# SPDX-License-Identifier: GPL-2.0-or-later
3
1set(MINGW_PREFIX /usr/x86_64-w64-mingw32/) 4set(MINGW_PREFIX /usr/x86_64-w64-mingw32/)
2set(CMAKE_SYSTEM_NAME Windows) 5set(CMAKE_SYSTEM_NAME Windows)
3set(CMAKE_SYSTEM_PROCESSOR x86_64) 6set(CMAKE_SYSTEM_PROCESSOR x86_64)