summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorfearlessTobi <thm.frey@gmail.com>2018-08-29 15:42:53 +0200
committerfearlessTobi <thm.frey@gmail.com>2018-08-29 15:42:53 +0200
commit78653f73398b98071fe9bb4b4a32ec68f674ccfd (patch)
treebb6ba70e7bad5a53cb9655787ec8ebaf5495285f /CMakeLists.txt
parentMerge pull request #1190 from FearlessTobi/im-so-retarded (diff)
downloadyuzu-78653f73398b98071fe9bb4b4a32ec68f674ccfd.tar
yuzu-78653f73398b98071fe9bb4b4a32ec68f674ccfd.tar.gz
yuzu-78653f73398b98071fe9bb4b4a32ec68f674ccfd.tar.bz2
yuzu-78653f73398b98071fe9bb4b4a32ec68f674ccfd.tar.lz
yuzu-78653f73398b98071fe9bb4b4a32ec68f674ccfd.tar.xz
yuzu-78653f73398b98071fe9bb4b4a32ec68f674ccfd.tar.zst
yuzu-78653f73398b98071fe9bb4b4a32ec68f674ccfd.zip
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59c610732..0f32ecfba 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,19 @@ function(check_submodules_present)
endfunction()
check_submodules_present()
+configure_file(${CMAKE_SOURCE_DIR}/dist/compatibility_list/compatibility_list.qrc
+ ${CMAKE_BINARY_DIR}/dist/compatibility_list/compatibility_list.qrc
+ COPYONLY)
+if (ENABLE_COMPATIBILITY_LIST_DOWNLOAD AND NOT EXISTS ${CMAKE_BINARY_DIR}/dist/compatibility_list/compatibility_list.json)
+ message(STATUS "Downloading compatibility list for yuzu...")
+ file(DOWNLOAD
+ https://api.yuzu-emu.org/gamedb/
+ "${CMAKE_BINARY_DIR}/dist/compatibility_list/compatibility_list.json" SHOW_PROGRESS)
+endif()
+if (NOT EXISTS ${CMAKE_BINARY_DIR}/dist/compatibility_list/compatibility_list.json)
+ file(WRITE ${CMAKE_BINARY_DIR}/dist/compatibility_list/compatibility_list.json "")
+endif()
+
# Detect current compilation architecture and create standard definitions
# =======================================================================