early-access version 1255
521
CMakeLists.txt
Executable file
|
@ -0,0 +1,521 @@
|
||||||
|
cmake_minimum_required(VERSION 3.15)
|
||||||
|
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules")
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/find-modules")
|
||||||
|
include(DownloadExternals)
|
||||||
|
include(CMakeDependentOption)
|
||||||
|
|
||||||
|
project(yuzu)
|
||||||
|
|
||||||
|
# Set bundled sdl2/qt as dependent options.
|
||||||
|
# OFF by default, but if ENABLE_SDL2 and MSVC are true then ON
|
||||||
|
option(ENABLE_SDL2 "Enable the SDL2 frontend" ON)
|
||||||
|
|
||||||
|
option(ENABLE_QT "Enable the Qt frontend" ON)
|
||||||
|
option(ENABLE_QT_TRANSLATION "Enable translations for the Qt frontend" OFF)
|
||||||
|
CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" ON "ENABLE_QT;MSVC" OFF)
|
||||||
|
|
||||||
|
option(ENABLE_WEB_SERVICE "Enable web services (telemetry, etc.)" ON)
|
||||||
|
|
||||||
|
option(YUZU_USE_QT_WEB_ENGINE "Use QtWebEngine for web applet implementation" OFF)
|
||||||
|
|
||||||
|
option(YUZU_ENABLE_BOXCAT "Enable the Boxcat service, a yuzu high-level implementation of BCAT" ON)
|
||||||
|
|
||||||
|
option(ENABLE_CUBEB "Enables the cubeb audio backend" ON)
|
||||||
|
|
||||||
|
option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
|
||||||
|
|
||||||
|
# Default to a Release build
|
||||||
|
get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
||||||
|
if (NOT IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE)
|
||||||
|
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
|
||||||
|
message(STATUS "Defaulting to a Release build")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(EXISTS ${PROJECT_SOURCE_DIR}/hooks/pre-commit AND NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/hooks/pre-commit)
|
||||||
|
message(STATUS "Copying pre-commit hook")
|
||||||
|
file(COPY hooks/pre-commit
|
||||||
|
DESTINATION ${PROJECT_SOURCE_DIR}/.git/hooks)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Sanity check : Check that all submodules are present
|
||||||
|
# =======================================================================
|
||||||
|
|
||||||
|
function(check_submodules_present)
|
||||||
|
file(READ "${PROJECT_SOURCE_DIR}/.gitmodules" gitmodules)
|
||||||
|
string(REGEX MATCHALL "path *= *[^ \t\r\n]*" gitmodules ${gitmodules})
|
||||||
|
foreach(module ${gitmodules})
|
||||||
|
string(REGEX REPLACE "path *= *" "" module ${module})
|
||||||
|
if (NOT EXISTS "${PROJECT_SOURCE_DIR}/${module}/.git")
|
||||||
|
message(FATAL_ERROR "Git submodule ${module} not found. "
|
||||||
|
"Please run: git submodule update --init --recursive")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
if(EXISTS ${PROJECT_SOURCE_DIR}/.gitmodules)
|
||||||
|
check_submodules_present()
|
||||||
|
endif()
|
||||||
|
configure_file(${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.qrc
|
||||||
|
${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.qrc
|
||||||
|
COPYONLY)
|
||||||
|
if (ENABLE_COMPATIBILITY_LIST_DOWNLOAD AND NOT EXISTS ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json)
|
||||||
|
message(STATUS "Downloading compatibility list for yuzu...")
|
||||||
|
file(DOWNLOAD
|
||||||
|
https://api.yuzu-emu.org/gamedb/
|
||||||
|
"${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json" SHOW_PROGRESS)
|
||||||
|
endif()
|
||||||
|
if (NOT EXISTS ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json)
|
||||||
|
file(WRITE ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json "")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Detect current compilation architecture and create standard definitions
|
||||||
|
# =======================================================================
|
||||||
|
|
||||||
|
include(CheckSymbolExists)
|
||||||
|
function(detect_architecture symbol arch)
|
||||||
|
if (NOT DEFINED ARCHITECTURE)
|
||||||
|
set(CMAKE_REQUIRED_QUIET 1)
|
||||||
|
check_symbol_exists("${symbol}" "" ARCHITECTURE_${arch})
|
||||||
|
unset(CMAKE_REQUIRED_QUIET)
|
||||||
|
|
||||||
|
# The output variable needs to be unique across invocations otherwise
|
||||||
|
# CMake's crazy scope rules will keep it defined
|
||||||
|
if (ARCHITECTURE_${arch})
|
||||||
|
set(ARCHITECTURE "${arch}" PARENT_SCOPE)
|
||||||
|
set(ARCHITECTURE_${arch} 1 PARENT_SCOPE)
|
||||||
|
add_definitions(-DARCHITECTURE_${arch}=1)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
if (NOT ENABLE_GENERIC)
|
||||||
|
if (MSVC)
|
||||||
|
detect_architecture("_M_AMD64" x86_64)
|
||||||
|
detect_architecture("_M_IX86" x86)
|
||||||
|
detect_architecture("_M_ARM" ARM)
|
||||||
|
detect_architecture("_M_ARM64" ARM64)
|
||||||
|
else()
|
||||||
|
detect_architecture("__x86_64__" x86_64)
|
||||||
|
detect_architecture("__i386__" x86)
|
||||||
|
detect_architecture("__arm__" ARM)
|
||||||
|
detect_architecture("__aarch64__" ARM64)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT DEFINED ARCHITECTURE)
|
||||||
|
set(ARCHITECTURE "GENERIC")
|
||||||
|
set(ARCHITECTURE_GENERIC 1)
|
||||||
|
add_definitions(-DARCHITECTURE_GENERIC=1)
|
||||||
|
endif()
|
||||||
|
message(STATUS "Target architecture: ${ARCHITECTURE}")
|
||||||
|
|
||||||
|
if (UNIX)
|
||||||
|
add_definitions(-DYUZU_UNIX=1)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Configure C++ standard
|
||||||
|
# ===========================
|
||||||
|
|
||||||
|
# boost asio's concept usage doesn't play nicely with some compilers yet.
|
||||||
|
add_definitions(-DBOOST_ASIO_DISABLE_CONCEPTS)
|
||||||
|
if (MSVC)
|
||||||
|
add_compile_options(/std:c++latest)
|
||||||
|
|
||||||
|
# cubeb and boost still make use of deprecated result_of.
|
||||||
|
add_definitions(-D_HAS_DEPRECATED_RESULT_OF)
|
||||||
|
else()
|
||||||
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Output binaries to bin/
|
||||||
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
|
||||||
|
|
||||||
|
# System imported libraries
|
||||||
|
# If not found, download any missing through Conan
|
||||||
|
# =======================================================================
|
||||||
|
set(CONAN_CMAKE_SILENT_OUTPUT TRUE)
|
||||||
|
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
|
||||||
|
if (YUZU_CONAN_INSTALLED)
|
||||||
|
if (IS_MULTI_CONFIG)
|
||||||
|
include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake)
|
||||||
|
else()
|
||||||
|
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
||||||
|
endif()
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_BINARY_DIR}")
|
||||||
|
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_BINARY_DIR}")
|
||||||
|
conan_basic_setup()
|
||||||
|
message(STATUS "Adding conan installed libraries to the search path")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
macro(yuzu_find_packages)
|
||||||
|
set(options FORCE_REQUIRED)
|
||||||
|
cmake_parse_arguments(FN "${options}" "" "" ${ARGN})
|
||||||
|
|
||||||
|
# Cmake has a *serious* lack of 2D array or associative array...
|
||||||
|
# Capitalization matters here. We need the naming to match the generated paths from Conan
|
||||||
|
set(REQUIRED_LIBS
|
||||||
|
# Cmake Pkg Prefix Version Conan Pkg
|
||||||
|
"Catch2 2.13 catch2/2.13.0"
|
||||||
|
"fmt 7.1 fmt/7.1.2"
|
||||||
|
# can't use until https://github.com/bincrafters/community/issues/1173
|
||||||
|
#"libzip 1.5 libzip/1.5.2@bincrafters/stable"
|
||||||
|
"lz4 1.8 lz4/1.9.2"
|
||||||
|
"nlohmann_json 3.8 nlohmann_json/3.8.0"
|
||||||
|
"ZLIB 1.2 zlib/1.2.11"
|
||||||
|
"zstd 1.4 zstd/1.4.5"
|
||||||
|
)
|
||||||
|
|
||||||
|
foreach(PACKAGE ${REQUIRED_LIBS})
|
||||||
|
string(REGEX REPLACE "[ \t\r\n]+" ";" PACKAGE_SPLIT ${PACKAGE})
|
||||||
|
list(GET PACKAGE_SPLIT 0 PACKAGE_PREFIX)
|
||||||
|
list(GET PACKAGE_SPLIT 1 PACKAGE_VERSION)
|
||||||
|
list(GET PACKAGE_SPLIT 2 PACKAGE_CONAN)
|
||||||
|
# This function is called twice, once to check if the packages exist on the system already
|
||||||
|
# and a second time to check if conan installed them properly. The second check passes in FORCE_REQUIRED
|
||||||
|
if (NOT ${PACKAGE_PREFIX}_FOUND)
|
||||||
|
if (FN_FORCE_REQUIRED)
|
||||||
|
find_package(${PACKAGE_PREFIX} ${PACKAGE_VERSION} REQUIRED)
|
||||||
|
else()
|
||||||
|
find_package(${PACKAGE_PREFIX} ${PACKAGE_VERSION})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
if (NOT ${PACKAGE_PREFIX}_FOUND)
|
||||||
|
list(APPEND CONAN_REQUIRED_LIBS ${PACKAGE_CONAN})
|
||||||
|
else()
|
||||||
|
# Set a legacy findPackage.cmake style PACKAGE_LIBRARIES variable for subprojects that rely on this
|
||||||
|
set(${PACKAGE_PREFIX}_LIBRARIES "${PACKAGE_PREFIX}::${PACKAGE_PREFIX}")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
unset(FN_FORCE_REQUIRED)
|
||||||
|
endmacro()
|
||||||
|
|
||||||
|
find_package(Boost 1.73.0 COMPONENTS context headers QUIET)
|
||||||
|
if (Boost_FOUND)
|
||||||
|
set(Boost_LIBRARIES Boost::boost)
|
||||||
|
# Conditionally add Boost::context only if the active version of the Conan or system Boost package provides it
|
||||||
|
# The old version is missing Boost::context, so we want to avoid adding in that case
|
||||||
|
# The new version requires adding Boost::context to prevent linking issues
|
||||||
|
#
|
||||||
|
# This one is used by Conan on subsequent CMake configures, not the first configure.
|
||||||
|
if (TARGET Boost::context)
|
||||||
|
list(APPEND Boost_LIBRARIES Boost::context)
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
message(STATUS "Boost 1.73.0 or newer not found, falling back to Conan")
|
||||||
|
list(APPEND CONAN_REQUIRED_LIBS "boost/1.73.0")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Attempt to locate any packages that are required and report the missing ones in CONAN_REQUIRED_LIBS
|
||||||
|
yuzu_find_packages()
|
||||||
|
|
||||||
|
# Qt5 requires that we find components, so it doesn't fit our pretty little find package function
|
||||||
|
if(ENABLE_QT)
|
||||||
|
# We want to load the generated conan qt config so that we get the QT_ROOT var so that we can use the official
|
||||||
|
# Qt5Config inside the root folder instead of the conan generated one.
|
||||||
|
if(EXISTS ${CMAKE_BINARY_DIR}/qtConfig.cmake)
|
||||||
|
include(${CMAKE_BINARY_DIR}/qtConfig.cmake)
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${CONAN_QT_ROOT_RELEASE}")
|
||||||
|
list(APPEND CMAKE_PREFIX_PATH "${CONAN_QT_ROOT_RELEASE}")
|
||||||
|
endif()
|
||||||
|
# Workaround for an issue where conan tries to build Qt from scratch instead of download prebuilt binaries
|
||||||
|
set(QT_PREFIX_HINT)
|
||||||
|
if(YUZU_USE_BUNDLED_QT)
|
||||||
|
if ((MSVC_VERSION GREATER_EQUAL 1910 AND MSVC_VERSION LESS 1930) AND ARCHITECTURE_x86_64)
|
||||||
|
set(QT_VER qt-5.12.8-msvc2017_64)
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "No bundled Qt binaries for your toolchain. Disable YUZU_USE_BUNDLED_QT and provide your own.")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (DEFINED QT_VER)
|
||||||
|
download_bundled_external("qt/" ${QT_VER} QT_PREFIX)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(QT_PREFIX_HINT HINTS "${QT_PREFIX}")
|
||||||
|
endif()
|
||||||
|
find_package(Qt5 5.9 COMPONENTS Widgets ${QT_PREFIX_HINT})
|
||||||
|
if (YUZU_USE_QT_WEB_ENGINE)
|
||||||
|
find_package(Qt5 COMPONENTS WebEngineCore WebEngineWidgets)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (ENABLE_QT_TRANSLATION)
|
||||||
|
find_package(Qt5 REQUIRED COMPONENTS LinguistTools ${QT_PREFIX_HINT})
|
||||||
|
endif()
|
||||||
|
if (NOT Qt5_FOUND)
|
||||||
|
list(APPEND CONAN_REQUIRED_LIBS "qt/5.14.1@bincrafters/stable")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
# find SDL2 exports a bunch of variables that are needed, so its easier to do this outside of the yuzu_find_package
|
||||||
|
if(ENABLE_SDL2)
|
||||||
|
if(EXISTS ${CMAKE_BINARY_DIR}/sdl2Config.cmake)
|
||||||
|
include(${CMAKE_BINARY_DIR}/sdl2Config.cmake)
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${CONAN_SDL2_ROOT_RELEASE}")
|
||||||
|
list(APPEND CMAKE_PREFIX_PATH "${CONAN_SDL2_ROOT_RELEASE}")
|
||||||
|
endif()
|
||||||
|
find_package(SDL2)
|
||||||
|
if (NOT SDL2_FOUND)
|
||||||
|
# otherwise add this to the list of libraries to install
|
||||||
|
list(APPEND CONAN_REQUIRED_LIBS "sdl2/2.0.12@bincrafters/stable")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Install any missing dependencies with conan install
|
||||||
|
if (CONAN_REQUIRED_LIBS)
|
||||||
|
message(STATUS "Packages ${CONAN_REQUIRED_LIBS} not found!")
|
||||||
|
# Use Conan to fetch the libraries that aren't found
|
||||||
|
# Download conan.cmake automatically, you can also just copy the conan.cmake file
|
||||||
|
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
|
||||||
|
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
|
||||||
|
file(DOWNLOAD "https://github.com/conan-io/cmake-conan/raw/v0.15/conan.cmake"
|
||||||
|
"${CMAKE_BINARY_DIR}/conan.cmake")
|
||||||
|
endif()
|
||||||
|
include(${CMAKE_BINARY_DIR}/conan.cmake)
|
||||||
|
|
||||||
|
set(CONAN_LIB_OPTIONS
|
||||||
|
libzip:with_openssl=False
|
||||||
|
libzip:enable_windows_crypto=False
|
||||||
|
)
|
||||||
|
|
||||||
|
conan_check(VERSION 1.24.0 REQUIRED)
|
||||||
|
# Add the bincrafters remote
|
||||||
|
conan_add_remote(NAME bincrafters
|
||||||
|
URL https://api.bintray.com/conan/bincrafters/public-conan)
|
||||||
|
|
||||||
|
# Manually add iconv to fix a dep conflict between qt and sdl2
|
||||||
|
# We don't need to add it through find_package or anything since the other two can find it just fine
|
||||||
|
if ("${CONAN_REQUIRED_LIBS}" MATCHES "qt" AND "${CONAN_REQUIRED_LIBS}" MATCHES "sdl")
|
||||||
|
list(APPEND CONAN_REQUIRED_LIBS "libiconv/1.16")
|
||||||
|
endif()
|
||||||
|
if (IS_MULTI_CONFIG)
|
||||||
|
conan_cmake_run(REQUIRES ${CONAN_REQUIRED_LIBS}
|
||||||
|
OPTIONS ${CONAN_LIB_OPTIONS}
|
||||||
|
BUILD missing
|
||||||
|
CONFIGURATION_TYPES "Release;Debug"
|
||||||
|
GENERATORS cmake_multi cmake_find_package_multi)
|
||||||
|
include(${CMAKE_BINARY_DIR}/conanbuildinfo_multi.cmake)
|
||||||
|
else()
|
||||||
|
conan_cmake_run(REQUIRES ${CONAN_REQUIRED_LIBS}
|
||||||
|
OPTIONS ${CONAN_LIB_OPTIONS}
|
||||||
|
BUILD missing
|
||||||
|
GENERATORS cmake cmake_find_package_multi)
|
||||||
|
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
|
||||||
|
endif()
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_BINARY_DIR}")
|
||||||
|
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_BINARY_DIR}")
|
||||||
|
conan_basic_setup()
|
||||||
|
|
||||||
|
set(YUZU_CONAN_INSTALLED TRUE CACHE BOOL "If true, the following builds will add conan to the lib search path" FORCE)
|
||||||
|
|
||||||
|
# Now that we've installed what we are missing, try to locate them again,
|
||||||
|
# this time with required, so we bail if its not found.
|
||||||
|
yuzu_find_packages(FORCE_REQUIRED)
|
||||||
|
|
||||||
|
if (NOT Boost_FOUND)
|
||||||
|
find_package(Boost 1.73.0 REQUIRED COMPONENTS context headers)
|
||||||
|
set(Boost_LIBRARIES Boost::boost)
|
||||||
|
# Conditionally add Boost::context only if the active version of the Conan Boost package provides it
|
||||||
|
# The old version is missing Boost::context, so we want to avoid adding in that case
|
||||||
|
# The new version requires adding Boost::context to prevent linking issues
|
||||||
|
if (TARGET Boost::context)
|
||||||
|
list(APPEND Boost_LIBRARIES Boost::context)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Due to issues with variable scopes in functions, we need to also find_package(qt5) outside of the function
|
||||||
|
if(ENABLE_QT)
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${CONAN_QT_ROOT_RELEASE}")
|
||||||
|
list(APPEND CMAKE_PREFIX_PATH "${CONAN_QT_ROOT_RELEASE}")
|
||||||
|
find_package(Qt5 5.9 REQUIRED COMPONENTS Widgets)
|
||||||
|
if (YUZU_USE_QT_WEB_ENGINE)
|
||||||
|
find_package(Qt5 REQUIRED COMPONENTS WebEngineCore WebEngineWidgets)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
if(ENABLE_SDL2)
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${CONAN_SDL2_ROOT_RELEASE}")
|
||||||
|
list(APPEND CMAKE_PREFIX_PATH "${CONAN_SDL2_ROOT_RELEASE}")
|
||||||
|
find_package(SDL2 REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Reexport some targets that are named differently when using the upstream CmakeConfig vs the generated Conan config
|
||||||
|
# In order to ALIAS targets to a new name, they first need to be IMPORTED_GLOBAL
|
||||||
|
# Dynarmic checks for target `boost` and so we want to make sure it can find it through our system instead of using their external
|
||||||
|
if (TARGET Boost::Boost)
|
||||||
|
set_target_properties(Boost::Boost PROPERTIES IMPORTED_GLOBAL TRUE)
|
||||||
|
add_library(Boost::boost ALIAS Boost::Boost)
|
||||||
|
add_library(boost ALIAS Boost::Boost)
|
||||||
|
elseif (TARGET Boost::boost)
|
||||||
|
set_target_properties(Boost::boost PROPERTIES IMPORTED_GLOBAL TRUE)
|
||||||
|
add_library(boost ALIAS Boost::boost)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (TARGET sdl2::sdl2)
|
||||||
|
# imported from the conan generated sdl2Config.cmake
|
||||||
|
set_target_properties(sdl2::sdl2 PROPERTIES IMPORTED_GLOBAL TRUE)
|
||||||
|
add_library(SDL2 ALIAS sdl2::sdl2)
|
||||||
|
elseif(SDL2_FOUND)
|
||||||
|
# found through the system package manager
|
||||||
|
# Some installations don't set SDL2_LIBRARIES
|
||||||
|
if("${SDL2_LIBRARIES}" STREQUAL "")
|
||||||
|
message(WARNING "SDL2_LIBRARIES wasn't set, manually setting to SDL2::SDL2")
|
||||||
|
set(SDL2_LIBRARIES "SDL2::SDL2")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
include_directories(SYSTEM ${SDL2_INCLUDE_DIRS})
|
||||||
|
add_library(SDL2 INTERFACE)
|
||||||
|
target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARIES}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Ensure libusb is properly configured (based on dolphin libusb include)
|
||||||
|
if(NOT APPLE)
|
||||||
|
include(FindPkgConfig)
|
||||||
|
find_package(LibUSB)
|
||||||
|
endif()
|
||||||
|
if (NOT LIBUSB_FOUND)
|
||||||
|
add_subdirectory(externals/libusb)
|
||||||
|
set(LIBUSB_INCLUDE_DIR "")
|
||||||
|
set(LIBUSB_LIBRARIES usb)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Use system installed ffmpeg.
|
||||||
|
if (NOT MSVC)
|
||||||
|
find_package(FFmpeg REQUIRED)
|
||||||
|
else()
|
||||||
|
set(FFMPEG_EXT_NAME "ffmpeg-4.2.1")
|
||||||
|
set(FFMPEG_PATH "${CMAKE_BINARY_DIR}/externals/${FFMPEG_EXT_NAME}")
|
||||||
|
download_bundled_external("ffmpeg/" ${FFMPEG_EXT_NAME} "")
|
||||||
|
set(FFMPEG_FOUND YES)
|
||||||
|
set(FFMPEG_INCLUDE_DIR "${FFMPEG_PATH}/include" CACHE PATH "Path to FFmpeg headers" FORCE)
|
||||||
|
set(FFMPEG_LIBRARY_DIR "${FFMPEG_PATH}/bin" CACHE PATH "Path to FFmpeg library" FORCE)
|
||||||
|
set(FFMPEG_DLL_DIR "${FFMPEG_PATH}/bin" CACHE PATH "Path to FFmpeg dll's" FORCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Prefer the -pthread flag on Linux.
|
||||||
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||||
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
|
# Platform-specific library requirements
|
||||||
|
# ======================================
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
# Umbrella framework for everything GUI-related
|
||||||
|
find_library(COCOA_LIBRARY Cocoa)
|
||||||
|
set(PLATFORM_LIBRARIES ${COCOA_LIBRARY} ${IOKIT_LIBRARY} ${COREVIDEO_LIBRARY})
|
||||||
|
elseif (WIN32)
|
||||||
|
# WSAPoll and SHGetKnownFolderPath (AppData/Roaming) didn't exist before WinNT 6.x (Vista)
|
||||||
|
add_definitions(-D_WIN32_WINNT=0x0600 -DWINVER=0x0600)
|
||||||
|
set(PLATFORM_LIBRARIES winmm ws2_32)
|
||||||
|
if (MINGW)
|
||||||
|
# PSAPI is the Process Status API
|
||||||
|
set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} psapi imm32 version)
|
||||||
|
endif()
|
||||||
|
elseif (CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU|SunOS)$")
|
||||||
|
set(PLATFORM_LIBRARIES rt)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Setup a custom clang-format target (if clang-format can be found) that will run
|
||||||
|
# against all the src files. This should be used before making a pull request.
|
||||||
|
# =======================================================================
|
||||||
|
|
||||||
|
set(CLANG_FORMAT_POSTFIX "-10")
|
||||||
|
find_program(CLANG_FORMAT
|
||||||
|
NAMES clang-format${CLANG_FORMAT_POSTFIX}
|
||||||
|
clang-format
|
||||||
|
PATHS ${PROJECT_BINARY_DIR}/externals)
|
||||||
|
# if find_program doesn't find it, try to download from externals
|
||||||
|
if (NOT CLANG_FORMAT)
|
||||||
|
if (WIN32 AND NOT CMAKE_CROSSCOMPILING)
|
||||||
|
message(STATUS "Clang format not found! Downloading...")
|
||||||
|
set(CLANG_FORMAT "${PROJECT_BINARY_DIR}/externals/clang-format${CLANG_FORMAT_POSTFIX}.exe")
|
||||||
|
file(DOWNLOAD
|
||||||
|
https://github.com/yuzu-emu/ext-windows-bin/raw/master/clang-format${CLANG_FORMAT_POSTFIX}.exe
|
||||||
|
"${CLANG_FORMAT}" SHOW_PROGRESS
|
||||||
|
STATUS DOWNLOAD_SUCCESS)
|
||||||
|
if (NOT DOWNLOAD_SUCCESS EQUAL 0)
|
||||||
|
message(WARNING "Could not download clang format! Disabling the clang format target")
|
||||||
|
file(REMOVE ${CLANG_FORMAT})
|
||||||
|
unset(CLANG_FORMAT)
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
message(WARNING "Clang format not found! Disabling the clang format target")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (CLANG_FORMAT)
|
||||||
|
set(SRCS ${PROJECT_SOURCE_DIR}/src)
|
||||||
|
set(CCOMMENT "Running clang format against all the .h and .cpp files in src/")
|
||||||
|
if (WIN32)
|
||||||
|
add_custom_target(clang-format
|
||||||
|
COMMAND powershell.exe -Command "Get-ChildItem '${SRCS}/*' -Include *.cpp,*.h -Recurse | Foreach {&'${CLANG_FORMAT}' -i $_.fullname}"
|
||||||
|
COMMENT ${CCOMMENT})
|
||||||
|
elseif(MINGW)
|
||||||
|
add_custom_target(clang-format
|
||||||
|
COMMAND find `cygpath -u ${SRCS}` -iname *.h -o -iname *.cpp | xargs `cygpath -u ${CLANG_FORMAT}` -i
|
||||||
|
COMMENT ${CCOMMENT})
|
||||||
|
else()
|
||||||
|
add_custom_target(clang-format
|
||||||
|
COMMAND find ${SRCS} -iname *.h -o -iname *.cpp | xargs ${CLANG_FORMAT} -i
|
||||||
|
COMMENT ${CCOMMENT})
|
||||||
|
endif()
|
||||||
|
unset(SRCS)
|
||||||
|
unset(CCOMMENT)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Include source code
|
||||||
|
# ===================
|
||||||
|
|
||||||
|
# This function should be passed a list of all files in a target. It will automatically generate
|
||||||
|
# file groups following the directory hierarchy, so that the layout of the files in IDEs matches the
|
||||||
|
# one in the filesystem.
|
||||||
|
function(create_target_directory_groups target_name)
|
||||||
|
# Place any files that aren't in the source list in a separate group so that they don't get in
|
||||||
|
# the way.
|
||||||
|
source_group("Other Files" REGULAR_EXPRESSION ".")
|
||||||
|
|
||||||
|
get_target_property(target_sources "${target_name}" SOURCES)
|
||||||
|
|
||||||
|
foreach(file_name IN LISTS target_sources)
|
||||||
|
get_filename_component(dir_name "${file_name}" PATH)
|
||||||
|
# Group names use '\' as a separator even though the entire rest of CMake uses '/'...
|
||||||
|
string(REPLACE "/" "\\" group_name "${dir_name}")
|
||||||
|
source_group("${group_name}" FILES "${file_name}")
|
||||||
|
endforeach()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# Prevent boost from linking against libs when building
|
||||||
|
add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY
|
||||||
|
-DBOOST_SYSTEM_NO_LIB
|
||||||
|
-DBOOST_DATE_TIME_NO_LIB
|
||||||
|
-DBOOST_REGEX_NO_LIB
|
||||||
|
)
|
||||||
|
|
||||||
|
enable_testing()
|
||||||
|
add_subdirectory(externals)
|
||||||
|
add_subdirectory(src)
|
||||||
|
|
||||||
|
# Set yuzu project or yuzu-cmd project as default StartUp Project in Visual Studio depending on whether QT is enabled or not
|
||||||
|
if(ENABLE_QT)
|
||||||
|
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT yuzu)
|
||||||
|
else()
|
||||||
|
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT yuzu-cmd)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
# Installation instructions
|
||||||
|
# =========================
|
||||||
|
|
||||||
|
# Install freedesktop.org metadata files, following those specifications:
|
||||||
|
# http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
|
||||||
|
# http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
|
||||||
|
# http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html
|
||||||
|
if(ENABLE_QT AND UNIX AND NOT APPLE)
|
||||||
|
install(FILES "${PROJECT_SOURCE_DIR}/dist/yuzu.desktop"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications")
|
||||||
|
install(FILES "${PROJECT_SOURCE_DIR}/dist/yuzu.svg"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps")
|
||||||
|
install(FILES "${PROJECT_SOURCE_DIR}/dist/yuzu.xml"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/mime/packages")
|
||||||
|
endif()
|
10
CMakeModules/CopyYuzuFFmpegDeps.cmake
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
function(copy_yuzu_FFmpeg_deps target_dir)
|
||||||
|
include(WindowsCopyFiles)
|
||||||
|
set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
|
||||||
|
windows_copy_files(${target_dir} ${FFMPEG_DLL_DIR} ${DLL_DEST}
|
||||||
|
avcodec-58.dll
|
||||||
|
avutil-56.dll
|
||||||
|
swresample-3.dll
|
||||||
|
swscale-5.dll
|
||||||
|
)
|
||||||
|
endfunction(copy_yuzu_FFmpeg_deps)
|
55
CMakeModules/CopyYuzuQt5Deps.cmake
Executable file
|
@ -0,0 +1,55 @@
|
||||||
|
function(copy_yuzu_Qt5_deps target_dir)
|
||||||
|
include(WindowsCopyFiles)
|
||||||
|
set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
|
||||||
|
set(Qt5_DLL_DIR "${Qt5_DIR}/../../../bin")
|
||||||
|
set(Qt5_PLATFORMS_DIR "${Qt5_DIR}/../../../plugins/platforms/")
|
||||||
|
set(Qt5_STYLES_DIR "${Qt5_DIR}/../../../plugins/styles/")
|
||||||
|
set(Qt5_IMAGEFORMATS_DIR "${Qt5_DIR}/../../../plugins/imageformats/")
|
||||||
|
set(Qt5_RESOURCES_DIR "${Qt5_DIR}/../../../resources/")
|
||||||
|
set(PLATFORMS ${DLL_DEST}plugins/platforms/)
|
||||||
|
set(STYLES ${DLL_DEST}plugins/styles/)
|
||||||
|
set(IMAGEFORMATS ${DLL_DEST}plugins/imageformats/)
|
||||||
|
windows_copy_files(${target_dir} ${Qt5_DLL_DIR} ${DLL_DEST}
|
||||||
|
icudt*.dll
|
||||||
|
icuin*.dll
|
||||||
|
icuuc*.dll
|
||||||
|
Qt5Core$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5Gui$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5Widgets$<$<CONFIG:Debug>:d>.*
|
||||||
|
)
|
||||||
|
|
||||||
|
if (YUZU_USE_QT_WEB_ENGINE)
|
||||||
|
windows_copy_files(${target_dir} ${Qt5_DLL_DIR} ${DLL_DEST}
|
||||||
|
Qt5Network$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5Positioning$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5PrintSupport$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5Qml$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5Quick$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5QuickWidgets$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5WebChannel$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5WebEngine$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5WebEngineCore$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5WebEngineWidgets$<$<CONFIG:Debug>:d>.*
|
||||||
|
QtWebEngineProcess$<$<CONFIG:Debug>:d>.*
|
||||||
|
)
|
||||||
|
|
||||||
|
windows_copy_files(${target_dir} ${Qt5_RESOURCES_DIR} ${DLL_DEST}
|
||||||
|
qtwebengine_resources.pak
|
||||||
|
qtwebengine_devtools_resources.pak
|
||||||
|
qtwebengine_resources_100p.pak
|
||||||
|
qtwebengine_resources_200p.pak
|
||||||
|
icudtl.dat
|
||||||
|
)
|
||||||
|
endif ()
|
||||||
|
windows_copy_files(yuzu ${Qt5_PLATFORMS_DIR} ${PLATFORMS} qwindows$<$<CONFIG:Debug>:d>.*)
|
||||||
|
windows_copy_files(yuzu ${Qt5_STYLES_DIR} ${STYLES} qwindowsvistastyle$<$<CONFIG:Debug>:d>.*)
|
||||||
|
windows_copy_files(yuzu ${Qt5_IMAGEFORMATS_DIR} ${IMAGEFORMATS}
|
||||||
|
qjpeg$<$<CONFIG:Debug>:d>.*
|
||||||
|
qgif$<$<CONFIG:Debug>:d>.*
|
||||||
|
)
|
||||||
|
# Create an empty qt.conf file. Qt will detect that this file exists, and use the folder that its in as the root folder.
|
||||||
|
# This way it'll look for plugins in the root/plugins/ folder
|
||||||
|
add_custom_command(TARGET yuzu POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E touch ${DLL_DEST}qt.conf
|
||||||
|
)
|
||||||
|
endfunction(copy_yuzu_Qt5_deps)
|
5
CMakeModules/CopyYuzuSDLDeps.cmake
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
function(copy_yuzu_SDL_deps target_dir)
|
||||||
|
include(WindowsCopyFiles)
|
||||||
|
set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/")
|
||||||
|
windows_copy_files(${target_dir} ${SDL2_DLL_DIR} ${DLL_DEST} SDL2.dll)
|
||||||
|
endfunction(copy_yuzu_SDL_deps)
|
18
CMakeModules/DownloadExternals.cmake
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
|
||||||
|
# This function downloads a binary library package from our external repo.
|
||||||
|
# Params:
|
||||||
|
# remote_path: path to the file to download, relative to the remote repository root
|
||||||
|
# prefix_var: name of a variable which will be set with the path to the extracted contents
|
||||||
|
function(download_bundled_external remote_path lib_name prefix_var)
|
||||||
|
set(prefix "${CMAKE_BINARY_DIR}/externals/${lib_name}")
|
||||||
|
if (NOT EXISTS "${prefix}")
|
||||||
|
message(STATUS "Downloading binaries for ${lib_name}...")
|
||||||
|
file(DOWNLOAD
|
||||||
|
https://github.com/yuzu-emu/ext-windows-bin/raw/master/${remote_path}${lib_name}.7z
|
||||||
|
"${CMAKE_BINARY_DIR}/externals/${lib_name}.7z" SHOW_PROGRESS)
|
||||||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xf "${CMAKE_BINARY_DIR}/externals/${lib_name}.7z"
|
||||||
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/externals")
|
||||||
|
endif()
|
||||||
|
message(STATUS "Using bundled binaries at ${prefix}")
|
||||||
|
set(${prefix_var} "${prefix}" PARENT_SCOPE)
|
||||||
|
endfunction()
|
116
CMakeModules/GenerateSCMRev.cmake
Executable file
|
@ -0,0 +1,116 @@
|
||||||
|
# Gets a UTC timstamp and sets the provided variable to it
|
||||||
|
function(get_timestamp _var)
|
||||||
|
string(TIMESTAMP timestamp UTC)
|
||||||
|
set(${_var} "${timestamp}" PARENT_SCOPE)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/externals/cmake-modules")
|
||||||
|
|
||||||
|
# Find the package here with the known path so that the GetGit commands can find it as well
|
||||||
|
find_package(Git QUIET PATHS "${GIT_EXECUTABLE}")
|
||||||
|
|
||||||
|
# generate git/build information
|
||||||
|
include(GetGitRevisionDescription)
|
||||||
|
get_git_head_revision(GIT_REF_SPEC GIT_REV)
|
||||||
|
git_describe(GIT_DESC --always --long --dirty)
|
||||||
|
git_branch_name(GIT_BRANCH)
|
||||||
|
get_timestamp(BUILD_DATE)
|
||||||
|
|
||||||
|
# Generate cpp with Git revision from template
|
||||||
|
# Also if this is a CI build, add the build name (ie: Nightly, Canary) to the scm_rev file as well
|
||||||
|
set(REPO_NAME "")
|
||||||
|
set(BUILD_VERSION "0")
|
||||||
|
if (BUILD_REPOSITORY)
|
||||||
|
# regex capture the string nightly or canary into CMAKE_MATCH_1
|
||||||
|
string(REGEX MATCH "yuzu-emu/yuzu-?(.*)" OUTVAR ${BUILD_REPOSITORY})
|
||||||
|
if ("${CMAKE_MATCH_COUNT}" GREATER 0)
|
||||||
|
# capitalize the first letter of each word in the repo name.
|
||||||
|
string(REPLACE "-" ";" REPO_NAME_LIST ${CMAKE_MATCH_1})
|
||||||
|
foreach(WORD ${REPO_NAME_LIST})
|
||||||
|
string(SUBSTRING ${WORD} 0 1 FIRST_LETTER)
|
||||||
|
string(SUBSTRING ${WORD} 1 -1 REMAINDER)
|
||||||
|
string(TOUPPER ${FIRST_LETTER} FIRST_LETTER)
|
||||||
|
set(REPO_NAME "${REPO_NAME}${FIRST_LETTER}${REMAINDER}")
|
||||||
|
endforeach()
|
||||||
|
if (BUILD_TAG)
|
||||||
|
string(REGEX MATCH "${CMAKE_MATCH_1}-([0-9]+)" OUTVAR ${BUILD_TAG})
|
||||||
|
if (${CMAKE_MATCH_COUNT} GREATER 0)
|
||||||
|
set(BUILD_VERSION ${CMAKE_MATCH_1})
|
||||||
|
endif()
|
||||||
|
if (BUILD_VERSION)
|
||||||
|
# This leaves a trailing space on the last word, but we actually want that
|
||||||
|
# because of how it's styled in the title bar.
|
||||||
|
set(BUILD_FULLNAME "${REPO_NAME} ${BUILD_VERSION} ")
|
||||||
|
else()
|
||||||
|
set(BUILD_FULLNAME "")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# The variable SRC_DIR must be passed into the script (since it uses the current build directory for all values of CMAKE_*_DIR)
|
||||||
|
set(VIDEO_CORE "${SRC_DIR}/src/video_core")
|
||||||
|
set(HASH_FILES
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_arb_decompiler.cpp"
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_arb_decompiler.h"
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_cache.cpp"
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_cache.h"
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_decompiler.cpp"
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_decompiler.h"
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_disk_cache.cpp"
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_disk_cache.h"
|
||||||
|
"${VIDEO_CORE}/shader/decode/arithmetic.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/arithmetic_half.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/arithmetic_half_immediate.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/arithmetic_immediate.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/arithmetic_integer.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/arithmetic_integer_immediate.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/bfe.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/bfi.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/conversion.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/ffma.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/float_set.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/float_set_predicate.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/half_set.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/half_set_predicate.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/hfma2.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/image.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/integer_set.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/integer_set_predicate.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/memory.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/texture.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/other.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/predicate_set_predicate.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/predicate_set_register.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/register_set_predicate.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/shift.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/video.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/warp.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/decode/xmad.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/ast.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/ast.h"
|
||||||
|
"${VIDEO_CORE}/shader/compiler_settings.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/compiler_settings.h"
|
||||||
|
"${VIDEO_CORE}/shader/control_flow.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/control_flow.h"
|
||||||
|
"${VIDEO_CORE}/shader/decode.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/expr.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/expr.h"
|
||||||
|
"${VIDEO_CORE}/shader/node.h"
|
||||||
|
"${VIDEO_CORE}/shader/node_helper.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/node_helper.h"
|
||||||
|
"${VIDEO_CORE}/shader/registry.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/registry.h"
|
||||||
|
"${VIDEO_CORE}/shader/shader_ir.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/shader_ir.h"
|
||||||
|
"${VIDEO_CORE}/shader/track.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/transform_feedback.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/transform_feedback.h"
|
||||||
|
)
|
||||||
|
set(COMBINED "")
|
||||||
|
foreach (F IN LISTS HASH_FILES)
|
||||||
|
file(READ ${F} TMP)
|
||||||
|
set(COMBINED "${COMBINED}${TMP}")
|
||||||
|
endforeach()
|
||||||
|
string(MD5 SHADER_CACHE_VERSION "${COMBINED}")
|
||||||
|
configure_file("${SRC_DIR}/src/common/scm_rev.cpp.in" "scm_rev.cpp" @ONLY)
|
54
CMakeModules/MinGWCross.cmake
Executable file
|
@ -0,0 +1,54 @@
|
||||||
|
set(MINGW_PREFIX /usr/x86_64-w64-mingw32/)
|
||||||
|
set(CMAKE_SYSTEM_NAME Windows)
|
||||||
|
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||||
|
# Actually a hack, w/o this will cause some strange errors
|
||||||
|
set(CMAKE_HOST_WIN32 TRUE)
|
||||||
|
|
||||||
|
|
||||||
|
set(CMAKE_FIND_ROOT_PATH ${MINGW_PREFIX})
|
||||||
|
set(SDL2_PATH ${MINGW_PREFIX})
|
||||||
|
set(MINGW_TOOL_PREFIX ${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32-)
|
||||||
|
|
||||||
|
# Specify the cross compiler
|
||||||
|
set(CMAKE_C_COMPILER ${MINGW_TOOL_PREFIX}gcc)
|
||||||
|
set(CMAKE_CXX_COMPILER ${MINGW_TOOL_PREFIX}g++)
|
||||||
|
set(CMAKE_RC_COMPILER ${MINGW_TOOL_PREFIX}windres)
|
||||||
|
|
||||||
|
# Mingw tools
|
||||||
|
set(STRIP ${MINGW_TOOL_PREFIX}strip)
|
||||||
|
set(WINDRES ${MINGW_TOOL_PREFIX}windres)
|
||||||
|
set(ENV{PKG_CONFIG} ${MINGW_TOOL_PREFIX}pkg-config)
|
||||||
|
|
||||||
|
# ccache wrapper
|
||||||
|
option(USE_CCACHE "Use ccache for compilation" OFF)
|
||||||
|
if(USE_CCACHE)
|
||||||
|
find_program(CCACHE ccache)
|
||||||
|
if(CCACHE)
|
||||||
|
message(STATUS "Using ccache found in PATH")
|
||||||
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE})
|
||||||
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE})
|
||||||
|
else(CCACHE)
|
||||||
|
message(WARNING "USE_CCACHE enabled, but no ccache found")
|
||||||
|
endif(CCACHE)
|
||||||
|
endif(USE_CCACHE)
|
||||||
|
|
||||||
|
# Search for programs in the build host directories
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
|
|
||||||
|
|
||||||
|
# Echo modified cmake vars to screen for debugging purposes
|
||||||
|
if(NOT DEFINED ENV{MINGW_DEBUG_INFO})
|
||||||
|
message("")
|
||||||
|
message("Custom cmake vars: (blank = system default)")
|
||||||
|
message("-----------------------------------------")
|
||||||
|
message("* CMAKE_C_COMPILER : ${CMAKE_C_COMPILER}")
|
||||||
|
message("* CMAKE_CXX_COMPILER : ${CMAKE_CXX_COMPILER}")
|
||||||
|
message("* CMAKE_RC_COMPILER : ${CMAKE_RC_COMPILER}")
|
||||||
|
message("* WINDRES : ${WINDRES}")
|
||||||
|
message("* ENV{PKG_CONFIG} : $ENV{PKG_CONFIG}")
|
||||||
|
message("* STRIP : ${STRIP}")
|
||||||
|
message("* USE_CCACHE : ${USE_CCACHE}")
|
||||||
|
message("")
|
||||||
|
# So that the debug info only appears once
|
||||||
|
set(ENV{MINGW_DEBUG_INFO} SHOWN)
|
||||||
|
endif()
|
8
README.md
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
yuzu emulator early access
|
||||||
|
=============
|
||||||
|
|
||||||
|
This is the source code for early-access 1255.
|
||||||
|
|
||||||
|
## Legal Notice
|
||||||
|
|
||||||
|
yuzu is an GPLv2 program, which allows fully free redistribution of its source code.
|
5
dist/compatibility_list/compatibility_list.qrc
vendored
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="compatibility_list">
|
||||||
|
<file>compatibility_list.json</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
BIN
dist/icons/controller/applet_dual_joycon.png
vendored
Executable file
After Width: | Height: | Size: 3.5 KiB |
BIN
dist/icons/controller/applet_dual_joycon_dark.png
vendored
Executable file
After Width: | Height: | Size: 3.5 KiB |
BIN
dist/icons/controller/applet_dual_joycon_dark_disabled.png
vendored
Executable file
After Width: | Height: | Size: 3.4 KiB |
BIN
dist/icons/controller/applet_dual_joycon_disabled.png
vendored
Executable file
After Width: | Height: | Size: 3.2 KiB |
BIN
dist/icons/controller/applet_dual_joycon_midnight.png
vendored
Executable file
After Width: | Height: | Size: 3.5 KiB |
BIN
dist/icons/controller/applet_dual_joycon_midnight_disabled.png
vendored
Executable file
After Width: | Height: | Size: 3.5 KiB |
BIN
dist/icons/controller/applet_handheld.png
vendored
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
dist/icons/controller/applet_handheld_dark.png
vendored
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
dist/icons/controller/applet_handheld_dark_disabled.png
vendored
Executable file
After Width: | Height: | Size: 2.6 KiB |
BIN
dist/icons/controller/applet_handheld_disabled.png
vendored
Executable file
After Width: | Height: | Size: 2.2 KiB |
BIN
dist/icons/controller/applet_handheld_midnight.png
vendored
Executable file
After Width: | Height: | Size: 1.6 KiB |
BIN
dist/icons/controller/applet_handheld_midnight_disabled.png
vendored
Executable file
After Width: | Height: | Size: 2.6 KiB |
BIN
dist/icons/controller/applet_pro_controller.png
vendored
Executable file
After Width: | Height: | Size: 4.3 KiB |
BIN
dist/icons/controller/applet_pro_controller_dark.png
vendored
Executable file
After Width: | Height: | Size: 4.1 KiB |
BIN
dist/icons/controller/applet_pro_controller_dark_disabled.png
vendored
Executable file
After Width: | Height: | Size: 4.4 KiB |
BIN
dist/icons/controller/applet_pro_controller_disabled.png
vendored
Executable file
After Width: | Height: | Size: 4.1 KiB |
BIN
dist/icons/controller/applet_pro_controller_midnight.png
vendored
Executable file
After Width: | Height: | Size: 4.3 KiB |
BIN
dist/icons/controller/applet_pro_controller_midnight_disabled.png
vendored
Executable file
After Width: | Height: | Size: 4.4 KiB |
BIN
dist/icons/controller/applet_single_joycon_left.png
vendored
Executable file
After Width: | Height: | Size: 2 KiB |
BIN
dist/icons/controller/applet_single_joycon_left_dark.png
vendored
Executable file
After Width: | Height: | Size: 2 KiB |
BIN
dist/icons/controller/applet_single_joycon_left_dark_disabled.png
vendored
Executable file
After Width: | Height: | Size: 2.5 KiB |
BIN
dist/icons/controller/applet_single_joycon_left_disabled.png
vendored
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
dist/icons/controller/applet_single_joycon_left_midnight.png
vendored
Executable file
After Width: | Height: | Size: 2 KiB |
BIN
dist/icons/controller/applet_single_joycon_left_midnight_disabled.png
vendored
Executable file
After Width: | Height: | Size: 2.5 KiB |
BIN
dist/icons/controller/applet_single_joycon_right.png
vendored
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
dist/icons/controller/applet_single_joycon_right_dark.png
vendored
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
dist/icons/controller/applet_single_joycon_right_dark_disabled.png
vendored
Executable file
After Width: | Height: | Size: 2.5 KiB |
BIN
dist/icons/controller/applet_single_joycon_right_disabled.png
vendored
Executable file
After Width: | Height: | Size: 2.2 KiB |
BIN
dist/icons/controller/applet_single_joycon_right_midnight.png
vendored
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
dist/icons/controller/applet_single_joycon_right_midnight_disabled.png
vendored
Executable file
After Width: | Height: | Size: 2.5 KiB |
55
dist/icons/controller/controller.qrc
vendored
Executable file
|
@ -0,0 +1,55 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="controller">
|
||||||
|
<file alias="dual_joycon">dual_joycon.png</file>
|
||||||
|
<file alias="dual_joycon_dark">dual_joycon_dark.png</file>
|
||||||
|
<file alias="dual_joycon_midnight">dual_joycon_midnight.png</file>
|
||||||
|
<file alias="handheld">handheld.png</file>
|
||||||
|
<file alias="handheld_dark">handheld_dark.png</file>
|
||||||
|
<file alias="handheld_midnight">handheld_midnight.png</file>
|
||||||
|
<file alias="pro_controller">pro_controller.png</file>
|
||||||
|
<file alias="pro_controller_dark">pro_controller_dark.png</file>
|
||||||
|
<file alias="pro_controller_midnight">pro_controller_midnight.png</file>
|
||||||
|
<file alias="single_joycon_left">single_joycon_left.png</file>
|
||||||
|
<file alias="single_joycon_left_dark">single_joycon_left_dark.png</file>
|
||||||
|
<file alias="single_joycon_left_midnight">single_joycon_left_midnight.png</file>
|
||||||
|
<file alias="single_joycon_right">single_joycon_right.png</file>
|
||||||
|
<file alias="single_joycon_right_dark">single_joycon_right_dark.png</file>
|
||||||
|
<file alias="single_joycon_right_midnight">single_joycon_right_midnight.png</file>
|
||||||
|
<file alias="single_joycon_left_vertical">single_joycon_left_vertical.png</file>
|
||||||
|
<file alias="single_joycon_left_vertical_dark">single_joycon_left_vertical_dark.png</file>
|
||||||
|
<file alias="single_joycon_left_vertical_midnight">single_joycon_left_vertical_midnight.png</file>
|
||||||
|
<file alias="single_joycon_right_vertical">single_joycon_right_vertical.png</file>
|
||||||
|
<file alias="single_joycon_right_vertical_dark">single_joycon_right_vertical_dark.png</file>
|
||||||
|
<file alias="single_joycon_right_vertical_midnight">single_joycon_right_vertical_midnight.png</file>
|
||||||
|
<file alias="applet_dual_joycon">applet_dual_joycon.png</file>
|
||||||
|
<file alias="applet_dual_joycon_dark">applet_dual_joycon_dark.png</file>
|
||||||
|
<file alias="applet_dual_joycon_midnight">applet_dual_joycon_midnight.png</file>
|
||||||
|
<file alias="applet_handheld">applet_handheld.png</file>
|
||||||
|
<file alias="applet_handheld_dark">applet_handheld_dark.png</file>
|
||||||
|
<file alias="applet_handheld_midnight">applet_handheld_midnight.png</file>
|
||||||
|
<file alias="applet_pro_controller">applet_pro_controller.png</file>
|
||||||
|
<file alias="applet_pro_controller_dark">applet_pro_controller_dark.png</file>
|
||||||
|
<file alias="applet_pro_controller_midnight">applet_pro_controller_midnight.png</file>
|
||||||
|
<file alias="applet_joycon_left">applet_single_joycon_left.png</file>
|
||||||
|
<file alias="applet_joycon_left_dark">applet_single_joycon_left_dark.png</file>
|
||||||
|
<file alias="applet_joycon_left_midnight">applet_single_joycon_left_midnight.png</file>
|
||||||
|
<file alias="applet_joycon_right">applet_single_joycon_right.png</file>
|
||||||
|
<file alias="applet_joycon_right_dark">applet_single_joycon_right_dark.png</file>
|
||||||
|
<file alias="applet_joycon_right_midnight">applet_single_joycon_right_midnight.png</file>
|
||||||
|
<file alias="applet_dual_joycon_disabled">applet_dual_joycon_disabled.png</file>
|
||||||
|
<file alias="applet_dual_joycon_dark_disabled">applet_dual_joycon_dark_disabled.png</file>
|
||||||
|
<file alias="applet_dual_joycon_midnight_disabled">applet_dual_joycon_midnight_disabled.png</file>
|
||||||
|
<file alias="applet_handheld_disabled">applet_handheld_disabled.png</file>
|
||||||
|
<file alias="applet_handheld_dark_disabled">applet_handheld_dark_disabled.png</file>
|
||||||
|
<file alias="applet_handheld_midnight_disabled">applet_handheld_midnight_disabled.png</file>
|
||||||
|
<file alias="applet_pro_controller_disabled">applet_pro_controller_disabled.png</file>
|
||||||
|
<file alias="applet_pro_controller_dark_disabled">applet_pro_controller_dark_disabled.png</file>
|
||||||
|
<file alias="applet_pro_controller_midnight_disabled">applet_pro_controller_midnight_disabled.png</file>
|
||||||
|
<file alias="applet_joycon_left_disabled">applet_single_joycon_left_disabled.png</file>
|
||||||
|
<file alias="applet_joycon_left_dark_disabled">applet_single_joycon_left_dark_disabled.png</file>
|
||||||
|
<file alias="applet_joycon_left_midnight_disabled">applet_single_joycon_left_midnight_disabled.png</file>
|
||||||
|
<file alias="applet_joycon_right_disabled">applet_single_joycon_right_disabled.png</file>
|
||||||
|
<file alias="applet_joycon_right_dark_disabled">applet_single_joycon_right_dark_disabled.png</file>
|
||||||
|
<file alias="applet_joycon_right_midnight_disabled">applet_single_joycon_right_midnight_disabled.png</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
BIN
dist/icons/controller/dual_joycon.png
vendored
Executable file
After Width: | Height: | Size: 36 KiB |
BIN
dist/icons/controller/dual_joycon_dark.png
vendored
Executable file
After Width: | Height: | Size: 35 KiB |
BIN
dist/icons/controller/dual_joycon_midnight.png
vendored
Executable file
After Width: | Height: | Size: 34 KiB |
BIN
dist/icons/controller/handheld.png
vendored
Executable file
After Width: | Height: | Size: 14 KiB |
BIN
dist/icons/controller/handheld_dark.png
vendored
Executable file
After Width: | Height: | Size: 13 KiB |
BIN
dist/icons/controller/handheld_midnight.png
vendored
Executable file
After Width: | Height: | Size: 13 KiB |
BIN
dist/icons/controller/pro_controller.png
vendored
Executable file
After Width: | Height: | Size: 36 KiB |
BIN
dist/icons/controller/pro_controller_dark.png
vendored
Executable file
After Width: | Height: | Size: 34 KiB |
BIN
dist/icons/controller/pro_controller_midnight.png
vendored
Executable file
After Width: | Height: | Size: 35 KiB |
BIN
dist/icons/controller/single_joycon_left.png
vendored
Executable file
After Width: | Height: | Size: 25 KiB |
BIN
dist/icons/controller/single_joycon_left_dark.png
vendored
Executable file
After Width: | Height: | Size: 25 KiB |
BIN
dist/icons/controller/single_joycon_left_midnight.png
vendored
Executable file
After Width: | Height: | Size: 24 KiB |
BIN
dist/icons/controller/single_joycon_left_vertical.png
vendored
Executable file
After Width: | Height: | Size: 24 KiB |
BIN
dist/icons/controller/single_joycon_left_vertical_dark.png
vendored
Executable file
After Width: | Height: | Size: 24 KiB |
BIN
dist/icons/controller/single_joycon_left_vertical_midnight.png
vendored
Executable file
After Width: | Height: | Size: 23 KiB |
BIN
dist/icons/controller/single_joycon_right.png
vendored
Executable file
After Width: | Height: | Size: 28 KiB |
BIN
dist/icons/controller/single_joycon_right_dark.png
vendored
Executable file
After Width: | Height: | Size: 28 KiB |
BIN
dist/icons/controller/single_joycon_right_midnight.png
vendored
Executable file
After Width: | Height: | Size: 26 KiB |
BIN
dist/icons/controller/single_joycon_right_vertical.png
vendored
Executable file
After Width: | Height: | Size: 27 KiB |
BIN
dist/icons/controller/single_joycon_right_vertical_dark.png
vendored
Executable file
After Width: | Height: | Size: 27 KiB |
BIN
dist/icons/controller/single_joycon_right_vertical_midnight.png
vendored
Executable file
After Width: | Height: | Size: 26 KiB |
2
dist/languages/.gitignore
vendored
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
# Ignore the source language file
|
||||||
|
en.ts
|
8
dist/languages/.tx/config
vendored
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
[main]
|
||||||
|
host = https://www.transifex.com
|
||||||
|
|
||||||
|
[yuzu.emulator]
|
||||||
|
file_filter = <lang>.ts
|
||||||
|
source_file = en.ts
|
||||||
|
source_lang = en
|
||||||
|
type = QT
|
1
dist/languages/README.md
vendored
Executable file
|
@ -0,0 +1 @@
|
||||||
|
This directory stores translation patches (TS files) for yuzu Qt frontend. This directory is linked with [yuzu project on transifex](https://www.transifex.com/yuzu-emulator/yuzu), so you can update the translation by executing `tx pull -a`. If you want to contribute to the translation, please go the transifex link and submit your translation there. This directory on the main repo will be synchronized with transifex periodically. Do not directly open PRs on github to modify the translation.
|
4749
dist/languages/de.ts
vendored
Executable file
4757
dist/languages/es.ts
vendored
Executable file
4732
dist/languages/fr.ts
vendored
Executable file
4724
dist/languages/it.ts
vendored
Executable file
4752
dist/languages/ja_JP.ts
vendored
Executable file
4719
dist/languages/nl.ts
vendored
Executable file
4713
dist/languages/pl.ts
vendored
Executable file
4757
dist/languages/pt_BR.ts
vendored
Executable file
4725
dist/languages/pt_PT.ts
vendored
Executable file
4720
dist/languages/ru_RU.ts
vendored
Executable file
4747
dist/languages/zh_CN.ts
vendored
Executable file
32
dist/license.md
vendored
Executable file
|
@ -0,0 +1,32 @@
|
||||||
|
The icons in this folder and its subfolders have the following licenses:
|
||||||
|
|
||||||
|
Icon Name | License | Origin/Author
|
||||||
|
--- | --- | ---
|
||||||
|
qt_themes/default/icons/16x16/checked.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/16x16/failed.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/16x16/lock.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/16x16/view-refresh.png | Apache 2.0 | https://material.io
|
||||||
|
qt_themes/default/icons/256x256/plus_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/48x48/bad_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/48x48/chip.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/48x48/folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/48x48/plus.png | CC0 1.0 | Designed by BreadFish64 from the Citra team
|
||||||
|
qt_themes/default/icons/48x48/sd_card.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/16x16/lock.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/16x16/view-refresh.png | Apache 2.0 | https://material.io
|
||||||
|
qt_themes/qdarkstyle/icons/256x256/plus_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/48x48/bad_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/48x48/chip.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/48x48/folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/48x48/plus.png | CC0 1.0 | Designed by BreadFish64 from the Citra team
|
||||||
|
qt_themes/qdarkstyle/icons/48x48/sd_card.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/16x16/lock.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/16x16/view-refresh.png | Apache 2.0 | https://material.io
|
||||||
|
qt_themes/colorful/icons/256x256/plus_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/48x48/bad_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/48x48/chip.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/48x48/folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/48x48/plus.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/48x48/sd_card.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
|
||||||
|
<!-- TODO: Add the license of the yuzu icon -->
|
BIN
dist/qt_themes/colorful/icons/16x16/lock.png
vendored
Executable file
After Width: | Height: | Size: 330 B |
BIN
dist/qt_themes/colorful/icons/256x256/plus_folder.png
vendored
Executable file
After Width: | Height: | Size: 4.5 KiB |
BIN
dist/qt_themes/colorful/icons/48x48/bad_folder.png
vendored
Executable file
After Width: | Height: | Size: 15 KiB |
BIN
dist/qt_themes/colorful/icons/48x48/chip.png
vendored
Executable file
After Width: | Height: | Size: 582 B |
BIN
dist/qt_themes/colorful/icons/48x48/folder.png
vendored
Executable file
After Width: | Height: | Size: 460 B |
BIN
dist/qt_themes/colorful/icons/48x48/plus.png
vendored
Executable file
After Width: | Height: | Size: 496 B |
BIN
dist/qt_themes/colorful/icons/48x48/sd_card.png
vendored
Executable file
After Width: | Height: | Size: 680 B |
14
dist/qt_themes/colorful/icons/index.theme
vendored
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
[Icon Theme]
|
||||||
|
Name=colorful
|
||||||
|
Comment=Colorful theme
|
||||||
|
Inherits=default
|
||||||
|
Directories=16x16,48x48,256x256
|
||||||
|
|
||||||
|
[16x16]
|
||||||
|
Size=16
|
||||||
|
|
||||||
|
[48x48]
|
||||||
|
Size=48
|
||||||
|
|
||||||
|
[256x256]
|
||||||
|
Size=256
|
15
dist/qt_themes/colorful/style.qrc
vendored
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="icons/colorful">
|
||||||
|
<file alias="index.theme">icons/index.theme</file>
|
||||||
|
<file alias="16x16/lock.png">icons/16x16/lock.png</file>
|
||||||
|
<file alias="48x48/bad_folder.png">icons/48x48/bad_folder.png</file>
|
||||||
|
<file alias="48x48/chip.png">icons/48x48/chip.png</file>
|
||||||
|
<file alias="48x48/folder.png">icons/48x48/folder.png</file>
|
||||||
|
<file alias="48x48/plus.png">icons/48x48/plus.png</file>
|
||||||
|
<file alias="48x48/sd_card.png">icons/48x48/sd_card.png</file>
|
||||||
|
<file alias="256x256/plus_folder.png">icons/256x256/plus_folder.png</file>
|
||||||
|
</qresource>
|
||||||
|
<qresource prefix="colorful">
|
||||||
|
<file alias="style.qss">../default/style.qss</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
BIN
dist/qt_themes/colorful_dark/icons/16x16/lock.png
vendored
Executable file
After Width: | Height: | Size: 401 B |
BIN
dist/qt_themes/colorful_dark/icons/16x16/refresh.png
vendored
Executable file
After Width: | Height: | Size: 362 B |
BIN
dist/qt_themes/colorful_dark/icons/16x16/view-refresh.png
vendored
Executable file
After Width: | Height: | Size: 362 B |
8
dist/qt_themes/colorful_dark/icons/index.theme
vendored
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
[Icon Theme]
|
||||||
|
Name=colorful_dark
|
||||||
|
Comment=Colorful theme (Dark style)
|
||||||
|
Inherits=default
|
||||||
|
Directories=16x16
|
||||||
|
|
||||||
|
[16x16]
|
||||||
|
Size=16
|
58
dist/qt_themes/colorful_dark/style.qrc
vendored
Executable file
|
@ -0,0 +1,58 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="icons/colorful_dark">
|
||||||
|
<file alias="index.theme">icons/index.theme</file>
|
||||||
|
<file alias="16x16/lock.png">icons/16x16/lock.png</file>
|
||||||
|
<file alias="16x16/view-refresh.png">icons/16x16/view-refresh.png</file>
|
||||||
|
<file alias="48x48/bad_folder.png">../colorful/icons/48x48/bad_folder.png</file>
|
||||||
|
<file alias="48x48/chip.png">../colorful/icons/48x48/chip.png</file>
|
||||||
|
<file alias="48x48/folder.png">../colorful/icons/48x48/folder.png</file>
|
||||||
|
<file alias="48x48/plus.png">../colorful/icons/48x48/plus.png</file>
|
||||||
|
<file alias="48x48/sd_card.png">../colorful/icons/48x48/sd_card.png</file>
|
||||||
|
<file alias="256x256/plus_folder.png">../colorful/icons/256x256/plus_folder.png</file>
|
||||||
|
</qresource>
|
||||||
|
|
||||||
|
<qresource prefix="qss_icons">
|
||||||
|
<file alias="rc/up_arrow_disabled.png">../qdarkstyle/rc/up_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/Hmovetoolbar.png">../qdarkstyle/rc/Hmovetoolbar.png</file>
|
||||||
|
<file alias="rc/stylesheet-branch-end.png">../qdarkstyle/rc/stylesheet-branch-end.png</file>
|
||||||
|
<file alias="rc/branch_closed-on.png">../qdarkstyle/rc/branch_closed-on.png</file>
|
||||||
|
<file alias="rc/stylesheet-vline.png">../qdarkstyle/rc/stylesheet-vline.png</file>
|
||||||
|
<file alias="rc/branch_closed.png">../qdarkstyle/rc/branch_closed.png</file>
|
||||||
|
<file alias="rc/branch_open-on.png">../qdarkstyle/rc/branch_open-on.png</file>
|
||||||
|
<file alias="rc/transparent.png">../qdarkstyle/rc/transparent.png</file>
|
||||||
|
<file alias="rc/right_arrow_disabled.png">../qdarkstyle/rc/right_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/sizegrip.png">../qdarkstyle/rc/sizegrip.png</file>
|
||||||
|
<file alias="rc/close.png">../qdarkstyle/rc/close.png</file>
|
||||||
|
<file alias="rc/close-hover.png">../qdarkstyle/rc/close-hover.png</file>
|
||||||
|
<file alias="rc/close-pressed.png">../qdarkstyle/rc/close-pressed.png</file>
|
||||||
|
<file alias="rc/down_arrow.png">../qdarkstyle/rc/down_arrow.png</file>
|
||||||
|
<file alias="rc/Vmovetoolbar.png">../qdarkstyle/rc/Vmovetoolbar.png</file>
|
||||||
|
<file alias="rc/left_arrow.png">../qdarkstyle/rc/left_arrow.png</file>
|
||||||
|
<file alias="rc/stylesheet-branch-more.png">../qdarkstyle/rc/stylesheet-branch-more.png</file>
|
||||||
|
<file alias="rc/up_arrow.png">../qdarkstyle/rc/up_arrow.png</file>
|
||||||
|
<file alias="rc/right_arrow.png">../qdarkstyle/rc/right_arrow.png</file>
|
||||||
|
<file alias="rc/left_arrow_disabled.png">../qdarkstyle/rc/left_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/Hsepartoolbar.png">../qdarkstyle/rc/Hsepartoolbar.png</file>
|
||||||
|
<file alias="rc/branch_open.png">../qdarkstyle/rc/branch_open.png</file>
|
||||||
|
<file alias="rc/Vsepartoolbar.png">../qdarkstyle/rc/Vsepartoolbar.png</file>
|
||||||
|
<file alias="rc/down_arrow_disabled.png">../qdarkstyle/rc/down_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/undock.png">../qdarkstyle/rc/undock.png</file>
|
||||||
|
<file alias="rc/checkbox_checked_disabled.png">../qdarkstyle/rc/checkbox_checked_disabled.png</file>
|
||||||
|
<file alias="rc/checkbox_checked_focus.png">../qdarkstyle/rc/checkbox_checked_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_checked.png">../qdarkstyle/rc/checkbox_checked.png</file>
|
||||||
|
<file alias="rc/checkbox_indeterminate.png">../qdarkstyle/rc/checkbox_indeterminate.png</file>
|
||||||
|
<file alias="rc/checkbox_indeterminate_focus.png">../qdarkstyle/rc/checkbox_indeterminate_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked_disabled.png">../qdarkstyle/rc/checkbox_unchecked_disabled.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked_focus.png">../qdarkstyle/rc/checkbox_unchecked_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked.png">../qdarkstyle/rc/checkbox_unchecked.png</file>
|
||||||
|
<file alias="rc/radio_checked_disabled.png">../qdarkstyle/rc/radio_checked_disabled.png</file>
|
||||||
|
<file alias="rc/radio_checked_focus.png">../qdarkstyle/rc/radio_checked_focus.png</file>
|
||||||
|
<file alias="rc/radio_checked.png">../qdarkstyle/rc/radio_checked.png</file>
|
||||||
|
<file alias="rc/radio_unchecked_disabled.png">../qdarkstyle/rc/radio_unchecked_disabled.png</file>
|
||||||
|
<file alias="rc/radio_unchecked_focus.png">../qdarkstyle/rc/radio_unchecked_focus.png</file>
|
||||||
|
<file alias="rc/radio_unchecked.png">../qdarkstyle/rc/radio_unchecked.png</file>
|
||||||
|
</qresource>
|
||||||
|
<qresource prefix="colorful_dark">
|
||||||
|
<file alias="style.qss">../qdarkstyle/style.qss</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
BIN
dist/qt_themes/colorful_midnight_blue/icons/16x16/lock.png
vendored
Executable file
After Width: | Height: | Size: 401 B |
BIN
dist/qt_themes/colorful_midnight_blue/icons/16x16/refresh.png
vendored
Executable file
After Width: | Height: | Size: 362 B |
BIN
dist/qt_themes/colorful_midnight_blue/icons/16x16/view-refresh.png
vendored
Executable file
After Width: | Height: | Size: 362 B |
8
dist/qt_themes/colorful_midnight_blue/icons/index.theme
vendored
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
[Icon Theme]
|
||||||
|
Name=colorful_midnight_blue
|
||||||
|
Comment=Colorful theme (Midnight Blue style)
|
||||||
|
Inherits=default
|
||||||
|
Directories=16x16
|
||||||
|
|
||||||
|
[16x16]
|
||||||
|
Size=16
|
58
dist/qt_themes/colorful_midnight_blue/style.qrc
vendored
Executable file
|
@ -0,0 +1,58 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="icons/colorful_midnight_blue">
|
||||||
|
<file alias="index.theme">icons/index.theme</file>
|
||||||
|
<file alias="16x16/lock.png">icons/16x16/lock.png</file>
|
||||||
|
<file alias="16x16/view-refresh.png">icons/16x16/view-refresh.png</file>
|
||||||
|
<file alias="48x48/bad_folder.png">../colorful/icons/48x48/bad_folder.png</file>
|
||||||
|
<file alias="48x48/chip.png">../colorful/icons/48x48/chip.png</file>
|
||||||
|
<file alias="48x48/folder.png">../colorful/icons/48x48/folder.png</file>
|
||||||
|
<file alias="48x48/plus.png">../colorful/icons/48x48/plus.png</file>
|
||||||
|
<file alias="48x48/sd_card.png">../colorful/icons/48x48/sd_card.png</file>
|
||||||
|
<file alias="256x256/plus_folder.png">../colorful/icons/256x256/plus_folder.png</file>
|
||||||
|
</qresource>
|
||||||
|
|
||||||
|
<qresource prefix="qss_icons">
|
||||||
|
<file alias="rc/up_arrow_disabled.png">../qdarkstyle_midnight_blue/rc/up_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/Hmovetoolbar.png">../qdarkstyle_midnight_blue/rc/Hmovetoolbar.png</file>
|
||||||
|
<file alias="rc/stylesheet-branch-end.png">../qdarkstyle_midnight_blue/rc/stylesheet-branch-end.png</file>
|
||||||
|
<file alias="rc/branch_closed-on.png">../qdarkstyle_midnight_blue/rc/branch_closed-on.png</file>
|
||||||
|
<file alias="rc/stylesheet-vline.png">../qdarkstyle_midnight_blue/rc/stylesheet-vline.png</file>
|
||||||
|
<file alias="rc/branch_closed.png">../qdarkstyle_midnight_blue/rc/branch_closed.png</file>
|
||||||
|
<file alias="rc/branch_open-on.png">../qdarkstyle_midnight_blue/rc/branch_open-on.png</file>
|
||||||
|
<file alias="rc/transparent.png">../qdarkstyle_midnight_blue/rc/transparent.png</file>
|
||||||
|
<file alias="rc/right_arrow_disabled.png">../qdarkstyle_midnight_blue/rc/right_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/sizegrip.png">../qdarkstyle_midnight_blue/rc/sizegrip.png</file>
|
||||||
|
<file alias="rc/close.png">../qdarkstyle_midnight_blue/rc/close.png</file>
|
||||||
|
<file alias="rc/close-hover.png">../qdarkstyle_midnight_blue/rc/close-hover.png</file>
|
||||||
|
<file alias="rc/close-pressed.png">../qdarkstyle_midnight_blue/rc/close-pressed.png</file>
|
||||||
|
<file alias="rc/down_arrow.png">../qdarkstyle_midnight_blue/rc/down_arrow.png</file>
|
||||||
|
<file alias="rc/Vmovetoolbar.png">../qdarkstyle_midnight_blue/rc/Vmovetoolbar.png</file>
|
||||||
|
<file alias="rc/left_arrow.png">../qdarkstyle_midnight_blue/rc/left_arrow.png</file>
|
||||||
|
<file alias="rc/stylesheet-branch-more.png">../qdarkstyle_midnight_blue/rc/stylesheet-branch-more.png</file>
|
||||||
|
<file alias="rc/up_arrow.png">../qdarkstyle_midnight_blue/rc/up_arrow.png</file>
|
||||||
|
<file alias="rc/right_arrow.png">../qdarkstyle_midnight_blue/rc/right_arrow.png</file>
|
||||||
|
<file alias="rc/left_arrow_disabled.png">../qdarkstyle_midnight_blue/rc/left_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/Hsepartoolbar.png">../qdarkstyle_midnight_blue/rc/Hsepartoolbar.png</file>
|
||||||
|
<file alias="rc/branch_open.png">../qdarkstyle_midnight_blue/rc/branch_open.png</file>
|
||||||
|
<file alias="rc/Vsepartoolbar.png">../qdarkstyle_midnight_blue/rc/Vsepartoolbar.png</file>
|
||||||
|
<file alias="rc/down_arrow_disabled.png">../qdarkstyle_midnight_blue/rc/down_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/undock.png">../qdarkstyle_midnight_blue/rc/undock.png</file>
|
||||||
|
<file alias="rc/checkbox_checked_disabled.png">../qdarkstyle_midnight_blue/rc/checkbox_checked_disabled.png</file>
|
||||||
|
<file alias="rc/checkbox_checked_focus.png">../qdarkstyle_midnight_blue/rc/checkbox_checked_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_checked.png">../qdarkstyle_midnight_blue/rc/checkbox_checked.png</file>
|
||||||
|
<file alias="rc/checkbox_indeterminate.png">../qdarkstyle_midnight_blue/rc/checkbox_indeterminate.png</file>
|
||||||
|
<file alias="rc/checkbox_indeterminate_focus.png">../qdarkstyle_midnight_blue/rc/checkbox_indeterminate_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked_disabled.png">../qdarkstyle_midnight_blue/rc/checkbox_unchecked_disabled.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked_focus.png">../qdarkstyle_midnight_blue/rc/checkbox_unchecked_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked.png">../qdarkstyle_midnight_blue/rc/checkbox_unchecked.png</file>
|
||||||
|
<file alias="rc/radio_checked_disabled.png">../qdarkstyle_midnight_blue/rc/radio_checked_disabled.png</file>
|
||||||
|
<file alias="rc/radio_checked_focus.png">../qdarkstyle_midnight_blue/rc/radio_checked_focus.png</file>
|
||||||
|
<file alias="rc/radio_checked.png">../qdarkstyle_midnight_blue/rc/radio_checked.png</file>
|
||||||
|
<file alias="rc/radio_unchecked_disabled.png">../qdarkstyle_midnight_blue/rc/radio_unchecked_disabled.png</file>
|
||||||
|
<file alias="rc/radio_unchecked_focus.png">../qdarkstyle_midnight_blue/rc/radio_unchecked_focus.png</file>
|
||||||
|
<file alias="rc/radio_unchecked.png">../qdarkstyle_midnight_blue/rc/radio_unchecked.png</file>
|
||||||
|
</qresource>
|
||||||
|
<qresource prefix="colorful_midnight_blue">
|
||||||
|
<file alias="style.qss">../qdarkstyle_midnight_blue/style.qss</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
19
dist/qt_themes/default/default.qrc
vendored
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="icons/default">
|
||||||
|
<file alias="index.theme">icons/index.theme</file>
|
||||||
|
<file alias="16x16/checked.png">icons/16x16/checked.png</file>
|
||||||
|
<file alias="16x16/failed.png">icons/16x16/failed.png</file>
|
||||||
|
<file alias="16x16/lock.png">icons/16x16/lock.png</file>
|
||||||
|
<file alias="16x16/view-refresh.png">icons/16x16/view-refresh.png</file>
|
||||||
|
<file alias="48x48/bad_folder.png">icons/48x48/bad_folder.png</file>
|
||||||
|
<file alias="48x48/chip.png">icons/48x48/chip.png</file>
|
||||||
|
<file alias="48x48/folder.png">icons/48x48/folder.png</file>
|
||||||
|
<file alias="48x48/plus.png">icons/48x48/plus.png</file>
|
||||||
|
<file alias="48x48/sd_card.png">icons/48x48/sd_card.png</file>
|
||||||
|
<file alias="256x256/yuzu.png">icons/256x256/yuzu.png</file>
|
||||||
|
<file alias="256x256/plus_folder.png">icons/256x256/plus_folder.png</file>
|
||||||
|
</qresource>
|
||||||
|
<qresource prefix="default">
|
||||||
|
<file>style.qss</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
BIN
dist/qt_themes/default/icons/16x16/checked.png
vendored
Executable file
After Width: | Height: | Size: 657 B |
BIN
dist/qt_themes/default/icons/16x16/failed.png
vendored
Executable file
After Width: | Height: | Size: 524 B |
BIN
dist/qt_themes/default/icons/16x16/lock.png
vendored
Executable file
After Width: | Height: | Size: 279 B |
BIN
dist/qt_themes/default/icons/16x16/refresh.png
vendored
Executable file
After Width: | Height: | Size: 349 B |