2024-02-23 21:32:32 +00:00
# SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later
2023-04-27 16:13:19 +00:00
cmake_minimum_required ( VERSION 3.16.3 )
2023-11-05 11:22:18 +00:00
2024-02-29 22:00:35 +00:00
set ( CMAKE_CXX_STANDARD 23 )
2023-05-02 15:22:19 +00:00
set ( CMAKE_CXX_STANDARD_REQUIRED True )
2023-04-27 16:13:19 +00:00
2024-07-09 09:18:34 +00:00
if ( APPLE )
enable_language ( OBJC )
2024-07-15 08:30:27 +00:00
set ( CMAKE_OSX_DEPLOYMENT_TARGET 11 )
2024-07-09 09:18:34 +00:00
endif ( )
2023-11-05 11:22:18 +00:00
if ( NOT CMAKE_BUILD_TYPE )
set ( CMAKE_BUILD_TYPE Release )
2023-05-03 16:40:47 +00:00
endif ( )
2024-06-14 12:32:41 +00:00
project ( shadPS4 )
2023-04-27 16:13:19 +00:00
2024-09-01 18:48:34 +00:00
# Forcing PIE makes sure that the base address is high enough so that it doesn't clash with the PS4 memory.
if ( UNIX AND NOT APPLE )
set ( CMAKE_POSITION_INDEPENDENT_CODE TRUE )
# check PIE support at link time
include ( CheckPIESupported )
check_pie_supported ( OUTPUT_VARIABLE pie_check LANGUAGES C CXX )
if ( NOT CMAKE_C_LINK_PIE_SUPPORTED OR NOT CMAKE_CXX_LINK_PIE_SUPPORTED )
message ( WARNING "PIE is not supported at link time: ${pie_check}" )
endif ( )
endif ( )
2024-02-29 22:00:35 +00:00
option ( ENABLE_QT_GUI "Enable the Qt GUI. If not selected then the emulator uses a minimal SDL-based UI instead" OFF )
2024-09-09 10:23:16 +00:00
# First, determine whether to use CMAKE_OSX_ARCHITECTURES or CMAKE_SYSTEM_PROCESSOR.
if ( APPLE AND CMAKE_OSX_ARCHITECTURES )
set ( BASE_ARCHITECTURE "${CMAKE_OSX_ARCHITECTURES}" )
else ( )
set ( BASE_ARCHITECTURE "${CMAKE_SYSTEM_PROCESSOR}" )
endif ( )
# Next, match common architecture strings down to a known common value.
if ( BASE_ARCHITECTURE MATCHES "(x86)|(X86)|(amd64)|(AMD64)" )
set ( ARCHITECTURE "x86_64" )
elseif ( BASE_ARCHITECTURE MATCHES "(aarch64)|(AARCH64)|(arm64)|(ARM64)" )
set ( ARCHITECTURE "arm64" )
else ( )
message ( FATAL_ERROR "Unsupported CPU architecture: ${BASE_ARCHITECTURE}" )
endif ( )
2024-09-16 10:24:47 +00:00
if ( APPLE AND ARCHITECTURE STREQUAL "x86_64" )
# Exclude ARM homebrew path to avoid conflicts when cross compiling.
list ( APPEND CMAKE_IGNORE_PREFIX_PATH "/opt/homebrew" )
endif ( )
2024-07-30 19:41:31 +00:00
# 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.
2023-11-05 15:08:47 +00:00
function ( create_target_directory_groups target_name )
2024-07-30 19:41:31 +00:00
# Place any files that aren't in the source list in a separate group so that they don't get in the way.
2023-11-05 15:08:47 +00:00
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 ( )
2024-02-23 20:57:57 +00:00
# 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.
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 )
2024-04-29 12:16:42 +00:00
add_custom_target ( clang-format
C O M M A N D p o w e r s h e l l . e x e - C o m m a n d " G e t - C h i l d I t e m ' $ { S R C S } / * ' - I n c l u d e * . c p p , * . h , * . m m - R e c u r s e | F o r e a c h { & ' $ { C L A N G _ F O R M A T } ' - i $ _ . f u l l n a m e } "
C O M M E N T $ { C C O M M E N T } )
2024-02-23 20:57:57 +00:00
else ( )
add_custom_target ( clang-format
C O M M A N D f i n d $ { S R C S } - i n a m e * . h - o - i n a m e * . c p p - o - i n a m e * . m m | x a r g s $ { C L A N G _ F O R M A T } - i
C O M M E N T $ { C C O M M E N T } )
endif ( )
unset ( SRCS )
unset ( CCOMMENT )
endif ( )
2024-06-27 10:46:55 +00:00
list ( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" )
2024-07-31 21:56:10 +00:00
# generate git revision information
list ( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules/" )
include ( GetGitRevisionDescription )
get_git_head_revision ( GIT_REF_SPEC GIT_REV )
git_describe ( GIT_DESC --always --long --dirty )
git_branch_name ( GIT_BRANCH )
2024-09-24 20:03:15 +00:00
string ( TIMESTAMP BUILD_DATE "%Y-%m-%d %H:%M:%S" )
2024-07-31 21:56:10 +00:00
configure_file ( "${CMAKE_CURRENT_SOURCE_DIR}/src/common/scm_rev.cpp.in" "${CMAKE_CURRENT_SOURCE_DIR}/src/common/scm_rev.cpp" @ONLY )
2024-07-11 12:33:42 +00:00
find_package ( Boost 1.84.0 CONFIG )
2024-08-16 15:56:47 +00:00
find_package ( FFmpeg 5.1.2 MODULE )
2024-08-21 04:17:18 +00:00
find_package ( fmt 10.2.0 CONFIG )
2024-06-27 10:46:55 +00:00
find_package ( glslang 14.2.0 CONFIG )
2024-07-01 16:39:12 +00:00
find_package ( magic_enum 0.9.6 CONFIG )
2024-08-16 16:49:32 +00:00
find_package ( RenderDoc 1.6.0 MODULE )
2024-06-27 10:46:55 +00:00
find_package ( SDL3 3.1.2 CONFIG )
2024-08-18 15:30:26 +00:00
find_package ( toml11 4.2.0 CONFIG )
2024-06-27 10:46:55 +00:00
find_package ( tsl-robin-map 1.3.0 CONFIG )
2024-07-01 16:39:12 +00:00
find_package ( VulkanHeaders 1.3.289 CONFIG )
2024-06-27 10:46:55 +00:00
find_package ( VulkanMemoryAllocator 3.1.0 CONFIG )
find_package ( xbyak 7.07 CONFIG )
find_package ( xxHash 0.8.2 MODULE )
2024-08-21 04:17:18 +00:00
find_package ( zlib-ng 2.1.7 MODULE )
find_package ( Zydis 5.0.0 CONFIG )
2024-09-11 03:50:55 +00:00
find_package ( pugixml 1.14 CONFIG )
2024-08-21 04:17:18 +00:00
if ( NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR NOT MSVC )
find_package ( cryptopp 8.9.0 MODULE )
endif ( )
2024-06-27 10:46:55 +00:00
2024-07-17 08:56:07 +00:00
if ( APPLE )
find_package ( date 3.0.1 CONFIG )
endif ( )
2024-07-28 23:31:15 +00:00
# Note: Windows always has these functions through winpthreads
2024-07-09 09:18:34 +00:00
include ( CheckSymbolExists )
check_symbol_exists ( pthread_mutex_timedlock "pthread.h" HAVE_PTHREAD_MUTEX_TIMEDLOCK )
if ( HAVE_PTHREAD_MUTEX_TIMEDLOCK OR WIN32 )
add_compile_options ( -DHAVE_PTHREAD_MUTEX_TIMEDLOCK )
endif ( )
2024-08-16 06:22:35 +00:00
if ( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" )
# libc++ requires -fexperimental-library to enable std::jthread and std::stop_token support.
include ( CheckCXXSymbolExists )
check_cxx_symbol_exists ( _LIBCPP_VERSION version LIBCPP )
if ( LIBCPP )
add_compile_options ( -fexperimental-library )
endif ( )
endif ( )
2024-02-27 18:24:47 +00:00
add_subdirectory ( externals )
2023-08-02 12:16:00 +00:00
include_directories ( src )
2023-04-27 16:13:19 +00:00
2024-04-13 19:37:21 +00:00
if ( ENABLE_QT_GUI )
2024-09-26 06:12:41 +00:00
find_package ( Qt6 REQUIRED COMPONENTS Widgets Concurrent LinguistTools Network Multimedia )
2024-04-13 19:37:21 +00:00
qt_standard_project_setup ( )
set ( CMAKE_AUTORCC ON )
2024-08-09 14:09:51 +00:00
set ( CMAKE_AUTOMOC ON )
set ( CMAKE_AUTOUIC ON )
2024-08-25 08:45:26 +00:00
set ( QT_TRANSLATIONS "${PROJECT_SOURCE_DIR}/src/qt_gui/translations" )
file ( GLOB_RECURSE TRANSLATIONS_TS ${ QT_TRANSLATIONS } /*.ts )
set_source_files_properties ( ${ TRANSLATIONS_TS } PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/translations" )
qt_add_translation ( TRANSLATIONS_QM ${ TRANSLATIONS_TS } )
set ( TRANSLATIONS_QRC ${ CMAKE_CURRENT_BINARY_DIR } /translations/translations.qrc )
file ( WRITE ${ TRANSLATIONS_QRC } "<RCC><qresource prefix=\" translations\ ">\n" )
foreach ( QM ${ TRANSLATIONS_QM } )
get_filename_component ( QM_FILE ${ QM } NAME )
file ( APPEND ${ TRANSLATIONS_QRC } "<file>${QM_FILE}</file>\n" )
endforeach ( QM )
file ( APPEND ${ TRANSLATIONS_QRC } "</qresource></RCC>" )
qt_add_resources ( TRANSLATIONS ${ TRANSLATIONS_QRC } )
2024-04-13 19:37:21 +00:00
endif ( )
2024-08-15 09:33:10 +00:00
set ( AUDIO_CORE src/audio_core/sdl_audio.cpp
2024-03-22 16:12:37 +00:00
s r c / a u d i o _ c o r e / s d l _ a u d i o . h
)
2024-04-13 21:35:48 +00:00
set ( AUDIO_LIB src/core/libraries/audio/audioin.cpp
s r c / c o r e / l i b r a r i e s / a u d i o / a u d i o i n . h
s r c / c o r e / l i b r a r i e s / a u d i o / a u d i o o u t . c p p
s r c / c o r e / l i b r a r i e s / a u d i o / a u d i o o u t . h
2024-06-27 13:37:17 +00:00
s r c / c o r e / l i b r a r i e s / a j m / a j m . c p p
s r c / c o r e / l i b r a r i e s / a j m / a j m . h
2024-08-19 07:03:05 +00:00
s r c / c o r e / l i b r a r i e s / n g s 2 / n g s 2 . c p p
s r c / c o r e / l i b r a r i e s / n g s 2 / n g s 2 . h
2024-02-24 20:39:29 +00:00
)
2024-03-14 12:18:16 +00:00
2024-04-13 21:35:48 +00:00
set ( GNM_LIB src/core/libraries/gnmdriver/gnmdriver.cpp
s r c / c o r e / l i b r a r i e s / g n m d r i v e r / g n m d r i v e r . h
2024-08-27 12:53:38 +00:00
s r c / c o r e / l i b r a r i e s / g n m d r i v e r / g n m _ e r r o r . h
2023-10-06 18:49:53 +00:00
)
2024-09-01 18:48:34 +00:00
set ( KERNEL_LIB
2024-05-28 11:29:53 +00:00
s r c / c o r e / l i b r a r i e s / k e r n e l / e v e n t _ f l a g / e v e n t _ f l a g . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / e v e n t _ f l a g / e v e n t _ f l a g . h
s r c / c o r e / l i b r a r i e s / k e r n e l / e v e n t _ f l a g / e v e n t _ f l a g _ o b j . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / e v e n t _ f l a g / e v e n t _ f l a g _ o b j . h
2024-06-15 11:36:07 +00:00
s r c / c o r e / l i b r a r i e s / k e r n e l / t h r e a d s / r w l o c k . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / t h r e a d s / s e m a p h o r e . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / t h r e a d s / k e y s . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / t h r e a d s / t h r e a d s . h
2024-05-28 11:29:53 +00:00
s r c / c o r e / l i b r a r i e s / k e r n e l / c p u _ m a n a g e m e n t . c p p
2024-04-13 21:35:48 +00:00
s r c / c o r e / l i b r a r i e s / k e r n e l / c p u _ m a n a g e m e n t . h
s r c / c o r e / l i b r a r i e s / k e r n e l / e v e n t _ q u e u e . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / e v e n t _ q u e u e . h
s r c / c o r e / l i b r a r i e s / k e r n e l / e v e n t _ q u e u e s . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / e v e n t _ q u e u e s . h
s r c / c o r e / l i b r a r i e s / k e r n e l / f i l e _ s y s t e m . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / f i l e _ s y s t e m . h
s r c / c o r e / l i b r a r i e s / k e r n e l / l i b k e r n e l . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / l i b k e r n e l . h
s r c / c o r e / l i b r a r i e s / k e r n e l / m e m o r y _ m a n a g e m e n t . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / m e m o r y _ m a n a g e m e n t . h
s r c / c o r e / l i b r a r i e s / k e r n e l / t h r e a d _ m a n a g e m e n t . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / t h r e a d _ m a n a g e m e n t . h
s r c / c o r e / l i b r a r i e s / k e r n e l / t i m e _ m a n a g e m e n t . c p p
s r c / c o r e / l i b r a r i e s / k e r n e l / t i m e _ m a n a g e m e n t . h
2023-10-07 09:03:03 +00:00
)
2024-04-13 21:35:48 +00:00
set ( NETWORK_LIBS src/core/libraries/network/http.cpp
s r c / c o r e / l i b r a r i e s / n e t w o r k / h t t p . h
s r c / c o r e / l i b r a r i e s / n e t w o r k / n e t . c p p
s r c / c o r e / l i b r a r i e s / n e t w o r k / n e t c t l . c p p
s r c / c o r e / l i b r a r i e s / n e t w o r k / n e t c t l . h
2024-09-11 13:48:16 +00:00
s r c / c o r e / l i b r a r i e s / n e t w o r k / n e t _ c t l _ o b j . c p p
s r c / c o r e / l i b r a r i e s / n e t w o r k / n e t _ c t l _ o b j . h
s r c / c o r e / l i b r a r i e s / n e t w o r k / n e t _ c t l _ c o d e s . h
2024-04-13 21:35:48 +00:00
s r c / c o r e / l i b r a r i e s / n e t w o r k / n e t . h
s r c / c o r e / l i b r a r i e s / n e t w o r k / s s l . c p p
s r c / c o r e / l i b r a r i e s / n e t w o r k / s s l . h
2023-10-20 04:25:52 +00:00
)
2024-04-13 21:35:48 +00:00
set ( SYSTEM_LIBS src/core/libraries/system/commondialog.cpp
s r c / c o r e / l i b r a r i e s / s y s t e m / c o m m o n d i a l o g . h
s r c / c o r e / l i b r a r i e s / s y s t e m / m s g d i a l o g . c p p
s r c / c o r e / l i b r a r i e s / s y s t e m / m s g d i a l o g . h
2024-09-08 20:27:50 +00:00
s r c / c o r e / l i b r a r i e s / s y s t e m / m s g d i a l o g _ u i . c p p
2024-04-13 21:35:48 +00:00
s r c / c o r e / l i b r a r i e s / s y s t e m / p o s i x . c p p
s r c / c o r e / l i b r a r i e s / s y s t e m / p o s i x . h
2024-09-20 09:34:19 +00:00
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / s a v e _ b a c k u p . c p p
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / s a v e _ b a c k u p . h
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / s a v e _ i n s t a n c e . c p p
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / s a v e _ i n s t a n c e . h
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / s a v e _ m e m o r y . c p p
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / s a v e _ m e m o r y . h
2024-05-04 16:08:46 +00:00
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / s a v e d a t a . c p p
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / s a v e d a t a . h
2024-09-20 09:34:19 +00:00
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / d i a l o g / s a v e d a t a d i a l o g . c p p
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / d i a l o g / s a v e d a t a d i a l o g . h
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / d i a l o g / s a v e d a t a d i a l o g _ u i . c p p
s r c / c o r e / l i b r a r i e s / s a v e _ d a t a / d i a l o g / s a v e d a t a d i a l o g _ u i . h
2024-04-13 21:35:48 +00:00
s r c / c o r e / l i b r a r i e s / s y s t e m / s y s m o d u l e . c p p
s r c / c o r e / l i b r a r i e s / s y s t e m / s y s m o d u l e . h
s r c / c o r e / l i b r a r i e s / s y s t e m / s y s t e m s e r v i c e . c p p
s r c / c o r e / l i b r a r i e s / s y s t e m / s y s t e m s e r v i c e . h
s r c / c o r e / l i b r a r i e s / s y s t e m / u s e r s e r v i c e . c p p
s r c / c o r e / l i b r a r i e s / s y s t e m / u s e r s e r v i c e . h
2024-05-31 12:03:05 +00:00
s r c / c o r e / l i b r a r i e s / a p p _ c o n t e n t / a p p _ c o n t e n t . c p p
s r c / c o r e / l i b r a r i e s / a p p _ c o n t e n t / a p p _ c o n t e n t . h
2024-06-08 19:41:25 +00:00
s r c / c o r e / l i b r a r i e s / r t c / r t c . c p p
s r c / c o r e / l i b r a r i e s / r t c / r t c . h
2024-08-20 21:47:17 +00:00
s r c / c o r e / l i b r a r i e s / r t c / r t c _ e r r o r . h
2024-06-08 19:41:25 +00:00
s r c / c o r e / l i b r a r i e s / d i s c _ m a p / d i s c _ m a p . c p p
s r c / c o r e / l i b r a r i e s / d i s c _ m a p / d i s c _ m a p . h
s r c / c o r e / l i b r a r i e s / d i s c _ m a p / d i s c _ m a p _ c o d e s . h
2024-07-26 15:34:36 +00:00
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r _ c o m m o n . c p p
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r _ c o m m o n . h
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r _ f i l e _ s t r e a m e r . c p p
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r _ f i l e _ s t r e a m e r . h
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r _ i m p l . c p p
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r _ i m p l . h
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r _ s o u r c e . c p p
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r _ s o u r c e . h
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r _ s t a t e . c p p
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r _ s t a t e . h
2024-07-10 16:20:19 +00:00
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r . c p p
s r c / c o r e / l i b r a r i e s / a v p l a y e r / a v p l a y e r . h
2024-08-20 21:47:17 +00:00
s r c / c o r e / l i b r a r i e s / n g s 2 / n g s 2 . c p p
s r c / c o r e / l i b r a r i e s / n g s 2 / n g s 2 . h
s r c / c o r e / l i b r a r i e s / n g s 2 / n g s 2 _ e r r o r . h
s r c / c o r e / l i b r a r i e s / n g s 2 / n g s 2 _ i m p l . c p p
s r c / c o r e / l i b r a r i e s / n g s 2 / n g s 2 _ i m p l . h
2024-08-27 12:53:38 +00:00
s r c / c o r e / l i b r a r i e s / a j m / a j m _ e r r o r . h
2024-09-09 19:51:15 +00:00
s r c / c o r e / l i b r a r i e s / a u d i o 3 d / a u d i o 3 d . c p p
s r c / c o r e / l i b r a r i e s / a u d i o 3 d / a u d i o 3 d . h
s r c / c o r e / l i b r a r i e s / a u d i o 3 d / a u d i o 3 d _ e r r o r . h
s r c / c o r e / l i b r a r i e s / a u d i o 3 d / a u d i o 3 d _ i m p l . c p p
s r c / c o r e / l i b r a r i e s / a u d i o 3 d / a u d i o 3 d _ i m p l . h
2023-10-19 09:13:09 +00:00
)
2024-04-14 14:09:51 +00:00
set ( VIDEOOUT_LIB src/core/libraries/videoout/buffer.h
s r c / c o r e / l i b r a r i e s / v i d e o o u t / d r i v e r . c p p
s r c / c o r e / l i b r a r i e s / v i d e o o u t / d r i v e r . h
s r c / c o r e / l i b r a r i e s / v i d e o o u t / v i d e o _ o u t . c p p
s r c / c o r e / l i b r a r i e s / v i d e o o u t / v i d e o _ o u t . h
)
2024-08-22 08:24:31 +00:00
set ( LIBC_SOURCES src/core/libraries/libc_internal/libc_internal.cpp
2024-05-13 13:13:33 +00:00
s r c / c o r e / l i b r a r i e s / l i b c _ i n t e r n a l / l i b c _ i n t e r n a l . h
2024-04-13 21:35:48 +00:00
)
2024-02-29 22:00:35 +00:00
2024-07-10 16:20:19 +00:00
set ( DIALOGS_LIB src/core/libraries/dialogs/error_dialog.cpp
s r c / c o r e / l i b r a r i e s / d i a l o g s / e r r o r _ d i a l o g . h
s r c / c o r e / l i b r a r i e s / d i a l o g s / i m e _ d i a l o g . c p p
s r c / c o r e / l i b r a r i e s / d i a l o g s / i m e _ d i a l o g . h
s r c / c o r e / l i b r a r i e s / d i a l o g s / e r r o r _ c o d e s . h
)
2024-04-13 21:35:48 +00:00
set ( PAD_LIB src/core/libraries/pad/pad.cpp
s r c / c o r e / l i b r a r i e s / p a d / p a d . h
)
2024-02-29 22:00:35 +00:00
2024-06-14 07:37:26 +00:00
set ( PNG_LIB src/core/libraries/libpng/pngdec.cpp
s r c / c o r e / l i b r a r i e s / l i b p n g / p n g d e c . h
)
2024-06-15 14:51:51 +00:00
set ( PLAYGO_LIB src/core/libraries/playgo/playgo.cpp
s r c / c o r e / l i b r a r i e s / p l a y g o / p l a y g o . h
s r c / c o r e / l i b r a r i e s / p l a y g o / p l a y g o _ t y p e s . h
)
2024-07-31 11:01:22 +00:00
set ( RANDOM_LIB src/core/libraries/random/random.cpp
s r c / c o r e / l i b r a r i e s / r a n d o m / r a n d o m . h
2024-08-27 12:53:38 +00:00
s r c / c o r e / l i b r a r i e s / r a n d o m / r a n d o m _ e r r o r . h
2024-07-31 11:01:22 +00:00
)
2024-06-15 14:51:51 +00:00
set ( USBD_LIB src/core/libraries/usbd/usbd.cpp
s r c / c o r e / l i b r a r i e s / u s b d / u s b d . h
)
2024-05-02 15:16:10 +00:00
set ( NP_LIBS src/core/libraries/np_manager/np_manager.cpp
s r c / c o r e / l i b r a r i e s / n p _ m a n a g e r / n p _ m a n a g e r . h
s r c / c o r e / l i b r a r i e s / n p _ s c o r e / n p _ s c o r e . c p p
s r c / c o r e / l i b r a r i e s / n p _ s c o r e / n p _ s c o r e . h
s r c / c o r e / l i b r a r i e s / n p _ t r o p h y / n p _ t r o p h y . c p p
s r c / c o r e / l i b r a r i e s / n p _ t r o p h y / n p _ t r o p h y . h
2024-09-11 03:50:55 +00:00
s r c / c o r e / l i b r a r i e s / n p _ t r o p h y / t r o p h y _ u i . c p p
s r c / c o r e / l i b r a r i e s / n p _ t r o p h y / t r o p h y _ u i . h
2024-05-02 15:16:10 +00:00
)
2024-08-22 15:35:31 +00:00
2024-05-02 15:16:10 +00:00
set ( MISC_LIBS src/core/libraries/screenshot/screenshot.cpp
s r c / c o r e / l i b r a r i e s / s c r e e n s h o t / s c r e e n s h o t . h
)
2024-02-29 22:00:35 +00:00
set ( COMMON src/common/logging/backend.cpp
s r c / c o m m o n / l o g g i n g / b a c k e n d . h
s r c / c o m m o n / l o g g i n g / f i l t e r . c p p
s r c / c o m m o n / l o g g i n g / f i l t e r . h
s r c / c o m m o n / l o g g i n g / f o r m a t t e r . h
s r c / c o m m o n / l o g g i n g / l o g _ e n t r y . h
s r c / c o m m o n / l o g g i n g / l o g . h
s r c / c o m m o n / l o g g i n g / t e x t _ f o r m a t t e r . c p p
s r c / c o m m o n / l o g g i n g / t e x t _ f o r m a t t e r . h
s r c / c o m m o n / l o g g i n g / t y p e s . h
2024-04-14 14:09:51 +00:00
s r c / c o m m o n / a l i g n m e n t . h
2024-09-09 10:23:16 +00:00
s r c / c o m m o n / a r c h . h
2024-02-29 22:00:35 +00:00
s r c / c o m m o n / a s s e r t . c p p
s r c / c o m m o n / a s s e r t . h
2024-04-29 22:23:28 +00:00
s r c / c o m m o n / b i t _ f i e l d . h
2024-02-29 22:00:35 +00:00
s r c / c o m m o n / b o u n d e d _ t h r e a d s a f e _ q u e u e . h
s r c / c o m m o n / c o n c e p t s . h
2024-03-11 11:26:33 +00:00
s r c / c o m m o n / c o n f i g . c p p
s r c / c o m m o n / c o n f i g . h
2024-09-20 09:34:19 +00:00
s r c / c o m m o n / c s t r i n g . h
2024-02-29 22:00:35 +00:00
s r c / c o m m o n / d e b u g . h
2024-09-23 16:19:52 +00:00
s r c / c o m m o n / d e c o d e r . c p p
s r c / c o m m o n / d e c o d e r . h
2024-09-23 11:50:49 +00:00
s r c / c o m m o n / e l f _ i n f o . h
2024-02-29 22:00:35 +00:00
s r c / c o m m o n / e n d i a n . h
2024-04-14 14:09:51 +00:00
s r c / c o m m o n / e n u m . h
2024-02-29 22:00:35 +00:00
s r c / c o m m o n / i o _ f i l e . c p p
s r c / c o m m o n / i o _ f i l e . h
s r c / c o m m o n / e r r o r . c p p
s r c / c o m m o n / e r r o r . h
2024-05-21 22:35:12 +00:00
s r c / c o m m o n / s c o p e _ e x i t . h
2024-09-08 20:27:50 +00:00
s r c / c o m m o n / f i x e d _ v a l u e . h
2024-05-21 22:35:12 +00:00
s r c / c o m m o n / f u n c _ t r a i t s . h
2024-02-29 22:00:35 +00:00
s r c / c o m m o n / n a t i v e _ c l o c k . c p p
s r c / c o m m o n / n a t i v e _ c l o c k . h
s r c / c o m m o n / p a t h _ u t i l . c p p
s r c / c o m m o n / p a t h _ u t i l . h
2024-08-08 12:02:10 +00:00
s r c / c o m m o n / o b j e c t _ p o o l . h
2024-04-29 12:16:42 +00:00
s r c / c o m m o n / p o l y f i l l _ t h r e a d . h
2024-02-29 22:00:35 +00:00
s r c / c o m m o n / r d t s c . c p p
s r c / c o m m o n / r d t s c . h
2024-09-23 16:19:52 +00:00
s r c / c o m m o n / s i g n a l _ c o n t e x t . h
s r c / c o m m o n / s i g n a l _ c o n t e x t . c p p
2024-02-29 22:00:35 +00:00
s r c / c o m m o n / s i n g l e t o n . h
2024-06-07 23:19:51 +00:00
s r c / c o m m o n / s l o t _ v e c t o r . h
2024-02-29 22:00:35 +00:00
s r c / c o m m o n / s t r i n g _ u t i l . c p p
s r c / c o m m o n / s t r i n g _ u t i l . h
s r c / c o m m o n / t h r e a d . c p p
s r c / c o m m o n / t h r e a d . h
s r c / c o m m o n / t y p e s . h
s r c / c o m m o n / u i n t 1 2 8 . h
2024-08-08 12:02:10 +00:00
s r c / c o m m o n / u n i q u e _ f u n c t i o n . h
2024-02-29 22:00:35 +00:00
s r c / c o m m o n / v e r s i o n . h
2024-07-11 12:35:58 +00:00
s r c / c o m m o n / n t a p i . h
s r c / c o m m o n / n t a p i . c p p
2024-09-13 04:44:20 +00:00
s r c / c o m m o n / m e m o r y _ p a t c h e r . h
s r c / c o m m o n / m e m o r y _ p a t c h e r . c p p
2024-07-31 21:56:10 +00:00
s r c / c o m m o n / s c m _ r e v . c p p
s r c / c o m m o n / s c m _ r e v . h
2024-02-29 22:00:35 +00:00
)
2024-04-13 21:35:48 +00:00
set ( CORE src/core/aerolib/stubs.cpp
s r c / c o r e / a e r o l i b / s t u b s . h
s r c / c o r e / a e r o l i b / a e r o l i b . c p p
s r c / c o r e / a e r o l i b / a e r o l i b . h
2024-05-16 12:55:50 +00:00
s r c / c o r e / a d d r e s s _ s p a c e . c p p
s r c / c o r e / a d d r e s s _ s p a c e . h
2024-04-13 21:35:48 +00:00
s r c / c o r e / c r y p t o / c r y p t o . c p p
2024-09-01 18:48:34 +00:00
s r c / c o r e / c r y p t o / c r y p t o . h
2024-04-13 21:35:48 +00:00
s r c / c o r e / c r y p t o / k e y s . h
s r c / c o r e / f i l e _ f o r m a t / p f s . h
s r c / c o r e / f i l e _ f o r m a t / p k g . c p p
s r c / c o r e / f i l e _ f o r m a t / p k g . h
s r c / c o r e / f i l e _ f o r m a t / p k g _ t y p e . c p p
s r c / c o r e / f i l e _ f o r m a t / p k g _ t y p e . h
s r c / c o r e / f i l e _ f o r m a t / p s f . c p p
s r c / c o r e / f i l e _ f o r m a t / p s f . h
2024-07-24 16:02:22 +00:00
s r c / c o r e / f i l e _ f o r m a t / p l a y g o _ c h u n k . c p p
s r c / c o r e / f i l e _ f o r m a t / p l a y g o _ c h u n k . h
2024-06-11 02:42:21 +00:00
s r c / c o r e / f i l e _ f o r m a t / t r p . c p p
s r c / c o r e / f i l e _ f o r m a t / t r p . h
2024-05-16 13:58:14 +00:00
s r c / c o r e / f i l e _ f o r m a t / s p l a s h . h
s r c / c o r e / f i l e _ f o r m a t / s p l a s h . c p p
2024-04-13 21:35:48 +00:00
s r c / c o r e / f i l e _ s y s / f s . c p p
2024-07-09 09:18:34 +00:00
s r c / c o r e / f i l e _ s y s / f s . h
2024-04-13 21:35:48 +00:00
s r c / c o r e / l o a d e r . c p p
2024-02-29 22:00:35 +00:00
s r c / c o r e / l o a d e r . h
2024-06-15 11:36:07 +00:00
s r c / c o r e / l o a d e r / d w a r f . c p p
s r c / c o r e / l o a d e r / d w a r f . h
2024-04-13 21:35:48 +00:00
s r c / c o r e / l o a d e r / e l f . c p p
s r c / c o r e / l o a d e r / e l f . h
s r c / c o r e / l o a d e r / s y m b o l s _ r e s o l v e r . h
s r c / c o r e / l o a d e r / s y m b o l s _ r e s o l v e r . c p p
2024-09-01 18:48:34 +00:00
s r c / c o r e / l i b r a r i e s / e r r o r _ c o d e s . h
2024-04-13 21:35:48 +00:00
s r c / c o r e / l i b r a r i e s / l i b s . h
s r c / c o r e / l i b r a r i e s / l i b s . c p p
$ { A U D I O _ L I B }
$ { G N M _ L I B }
$ { K E R N E L _ L I B }
$ { N E T W O R K _ L I B S }
$ { S Y S T E M _ L I B S }
$ { L I B C _ S O U R C E S }
$ { P A D _ L I B }
2024-04-14 14:09:51 +00:00
$ { V I D E O O U T _ L I B }
2024-05-02 15:16:10 +00:00
$ { N P _ L I B S }
2024-06-14 07:37:26 +00:00
$ { P N G _ L I B }
2024-06-15 14:51:51 +00:00
$ { P L A Y G O _ L I B }
2024-07-31 11:01:22 +00:00
$ { R A N D O M _ L I B }
2024-06-15 14:51:51 +00:00
$ { U S B D _ L I B }
2024-05-02 15:16:10 +00:00
$ { M I S C _ L I B S }
2024-07-10 16:20:19 +00:00
$ { D I A L O G S _ L I B }
2024-04-13 21:35:48 +00:00
s r c / c o r e / l i n k e r . c p p
s r c / c o r e / l i n k e r . h
2024-05-16 12:55:50 +00:00
s r c / c o r e / m e m o r y . c p p
s r c / c o r e / m e m o r y . h
2024-06-05 19:08:18 +00:00
s r c / c o r e / m o d u l e . c p p
s r c / c o r e / m o d u l e . h
2024-05-16 13:58:14 +00:00
s r c / c o r e / p l a t f o r m . h
2024-09-15 20:48:34 +00:00
s r c / c o r e / s i g n a l s . c p p
s r c / c o r e / s i g n a l s . h
2024-04-13 21:35:48 +00:00
s r c / c o r e / t l s . c p p
2024-05-16 13:58:14 +00:00
s r c / c o r e / t l s . h
2024-04-13 21:35:48 +00:00
s r c / c o r e / v i r t u a l _ m e m o r y . c p p
s r c / c o r e / v i r t u a l _ m e m o r y . h
2024-02-29 22:00:35 +00:00
)
2024-09-09 10:23:16 +00:00
if ( ARCHITECTURE STREQUAL "x86_64" )
set ( CORE ${ CORE }
s r c / c o r e / c p u _ p a t c h e s . c p p
s r c / c o r e / c p u _ p a t c h e s . h )
endif ( )
2024-05-21 22:35:12 +00:00
set ( SHADER_RECOMPILER src/shader_recompiler/exception.h
s r c / s h a d e r _ r e c o m p i l e r / p r o f i l e . h
s r c / s h a d e r _ r e c o m p i l e r / r e c o m p i l e r . c p p
s r c / s h a d e r _ r e c o m p i l e r / r e c o m p i l e r . h
2024-09-03 11:04:30 +00:00
s r c / s h a d e r _ r e c o m p i l e r / i n f o . h
s r c / s h a d e r _ r e c o m p i l e r / p a r a m s . h
2024-05-21 22:35:12 +00:00
s r c / s h a d e r _ r e c o m p i l e r / r u n t i m e _ i n f o . h
2024-09-03 11:04:30 +00:00
s r c / s h a d e r _ r e c o m p i l e r / s p e c i a l i z a t i o n . h
2024-09-23 06:55:43 +00:00
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / b i n d i n g s . h
2024-05-21 22:35:12 +00:00
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v . h
2024-07-04 21:15:44 +00:00
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ a t o m i c . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ b a r r i e r s . c p p
2024-05-21 22:35:12 +00:00
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ b i t w i s e _ c o n v e r s i o n . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ c o m p o s i t e . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ c o n t e x t _ g e t _ s e t . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ c o n v e r t . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ f l o a t i n g _ p o i n t . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ i m a g e . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ i n s t r u c t i o n s . h
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ i n t e g e r . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ l o g i c a l . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ s e l e c t . c p p
2024-07-04 21:15:44 +00:00
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ s h a r e d _ m e m o r y . c p p
2024-05-21 22:35:12 +00:00
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ s p e c i a l . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ u n d e f i n e d . c p p
2024-06-10 19:35:14 +00:00
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / e m i t _ s p i r v _ w a r p . c p p
2024-05-21 22:35:12 +00:00
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / s p i r v _ e m i t _ c o n t e x t . c p p
s r c / s h a d e r _ r e c o m p i l e r / b a c k e n d / s p i r v / s p i r v _ e m i t _ c o n t e x t . h
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / t r a n s l a t e / d a t a _ s h a r e . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / t r a n s l a t e / e x p o r t . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / t r a n s l a t e / s c a l a r _ a l u . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / t r a n s l a t e / s c a l a r _ m e m o r y . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / t r a n s l a t e / t r a n s l a t e . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / t r a n s l a t e / t r a n s l a t e . h
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / t r a n s l a t e / v e c t o r _ a l u . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / t r a n s l a t e / v e c t o r _ i n t e r p o l a t i o n . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / t r a n s l a t e / v e c t o r _ m e m o r y . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / c o n t r o l _ f l o w _ g r a p h . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / c o n t r o l _ f l o w _ g r a p h . h
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / d e c o d e . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / d e c o d e . h
2024-05-25 12:33:15 +00:00
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / f e t c h _ s h a d e r . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / f e t c h _ s h a d e r . h
2024-05-21 22:35:12 +00:00
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / f o r m a t . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / i n s t r u c t i o n . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / i n s t r u c t i o n . h
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / o p c o d e s . h
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / s t r u c t u r e d _ c o n t r o l _ f l o w . c p p
s r c / s h a d e r _ r e c o m p i l e r / f r o n t e n d / s t r u c t u r e d _ c o n t r o l _ f l o w . h
2024-08-26 12:22:11 +00:00
s r c / s h a d e r _ r e c o m p i l e r / i r / p a s s e s / c o n s t a n t _ p r o p a g a t i o n _ p a s s . c p p
2024-05-28 22:28:34 +00:00
s r c / s h a d e r _ r e c o m p i l e r / i r / p a s s e s / d e a d _ c o d e _ e l i m i n a t i o n _ p a s s . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / p a s s e s / i d e n t i t y _ r e m o v a l _ p a s s . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / p a s s e s / i r _ p a s s e s . h
2024-08-14 16:01:17 +00:00
s r c / s h a d e r _ r e c o m p i l e r / i r / p a s s e s / l o w e r _ s h a r e d _ m e m _ t o _ r e g i s t e r s . c p p
2024-05-28 22:28:34 +00:00
s r c / s h a d e r _ r e c o m p i l e r / i r / p a s s e s / r e s o u r c e _ t r a c k i n g _ p a s s . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / p a s s e s / s h a d e r _ i n f o _ c o l l e c t i o n _ p a s s . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / p a s s e s / s s a _ r e w r i t e _ p a s s . c p p
2024-05-21 22:35:12 +00:00
s r c / s h a d e r _ r e c o m p i l e r / i r / a b s t r a c t _ s y n t a x _ l i s t . h
s r c / s h a d e r _ r e c o m p i l e r / i r / a t t r i b u t e . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / a t t r i b u t e . h
s r c / s h a d e r _ r e c o m p i l e r / i r / b a s i c _ b l o c k . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / b a s i c _ b l o c k . h
s r c / s h a d e r _ r e c o m p i l e r / i r / c o n d i t i o n . h
s r c / s h a d e r _ r e c o m p i l e r / i r / i r _ e m i t t e r . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / i r _ e m i t t e r . h
s r c / s h a d e r _ r e c o m p i l e r / i r / m i c r o i n s t r u c t i o n . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / o p c o d e s . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / o p c o d e s . h
s r c / s h a d e r _ r e c o m p i l e r / i r / o p c o d e s . i n c
s r c / s h a d e r _ r e c o m p i l e r / i r / p o s t _ o r d e r . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / p o s t _ o r d e r . h
s r c / s h a d e r _ r e c o m p i l e r / i r / p r o g r a m . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / p r o g r a m . h
s r c / s h a d e r _ r e c o m p i l e r / i r / r e g . h
s r c / s h a d e r _ r e c o m p i l e r / i r / t y p e . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / t y p e . h
s r c / s h a d e r _ r e c o m p i l e r / i r / v a l u e . c p p
s r c / s h a d e r _ r e c o m p i l e r / i r / v a l u e . h
)
2024-04-29 22:23:28 +00:00
set ( VIDEO_CORE src/video_core/amdgpu/liverpool.cpp
s r c / v i d e o _ c o r e / a m d g p u / l i v e r p o o l . h
s r c / v i d e o _ c o r e / a m d g p u / p i x e l _ f o r m a t . c p p
s r c / v i d e o _ c o r e / a m d g p u / p i x e l _ f o r m a t . h
s r c / v i d e o _ c o r e / a m d g p u / p m 4 _ c m d s . h
s r c / v i d e o _ c o r e / a m d g p u / p m 4 _ o p c o d e s . h
s r c / v i d e o _ c o r e / a m d g p u / r e s o u r c e . h
2024-08-25 20:01:05 +00:00
s r c / v i d e o _ c o r e / a m d g p u / d e f a u l t _ c o n t e x t . c p p
2024-08-08 12:02:10 +00:00
s r c / v i d e o _ c o r e / b u f f e r _ c a c h e / b u f f e r . c p p
s r c / v i d e o _ c o r e / b u f f e r _ c a c h e / b u f f e r . h
s r c / v i d e o _ c o r e / b u f f e r _ c a c h e / b u f f e r _ c a c h e . c p p
s r c / v i d e o _ c o r e / b u f f e r _ c a c h e / b u f f e r _ c a c h e . h
s r c / v i d e o _ c o r e / b u f f e r _ c a c h e / m e m o r y _ t r a c k e r _ b a s e . h
s r c / v i d e o _ c o r e / b u f f e r _ c a c h e / r a n g e _ s e t . h
s r c / v i d e o _ c o r e / b u f f e r _ c a c h e / w o r d _ m a n a g e r . h
2024-05-21 22:35:12 +00:00
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / l i v e r p o o l _ t o _ v k . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / l i v e r p o o l _ t o _ v k . h
2024-04-14 14:09:51 +00:00
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / r e n d e r e r _ v u l k a n . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / r e n d e r e r _ v u l k a n . h
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ c o m m o n . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ c o m m o n . h
2024-05-28 22:28:34 +00:00
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ c o m p u t e _ p i p e l i n e . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ c o m p u t e _ p i p e l i n e . h
2024-04-14 14:09:51 +00:00
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ d e s c r i p t o r _ u p d a t e _ q u e u e . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ d e s c r i p t o r _ u p d a t e _ q u e u e . h
2024-05-21 22:35:12 +00:00
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ g r a p h i c s _ p i p e l i n e . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ g r a p h i c s _ p i p e l i n e . h
2024-04-14 14:09:51 +00:00
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ i n s t a n c e . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ i n s t a n c e . h
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ m a s t e r _ s e m a p h o r e . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ m a s t e r _ s e m a p h o r e . h
2024-05-21 22:35:12 +00:00
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ p i p e l i n e _ c a c h e . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ p i p e l i n e _ c a c h e . h
2024-09-21 19:45:56 +00:00
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ p i p e l i n e _ c o m m o n . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ p i p e l i n e _ c o m m o n . h
2024-04-14 14:09:51 +00:00
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ p l a t f o r m . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ p l a t f o r m . h
2024-05-21 22:35:12 +00:00
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ r a s t e r i z e r . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ r a s t e r i z e r . h
2024-04-14 14:09:51 +00:00
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ r e s o u r c e _ p o o l . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ r e s o u r c e _ p o o l . h
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ s c h e d u l e r . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ s c h e d u l e r . h
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ s h a d e r _ u t i l . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ s h a d e r _ u t i l . h
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ s w a p c h a i n . c p p
s r c / v i d e o _ c o r e / r e n d e r e r _ v u l k a n / v k _ s w a p c h a i n . h
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / i m a g e . c p p
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / i m a g e . h
2024-07-20 09:51:21 +00:00
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / i m a g e _ i n f o . c p p
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / i m a g e _ i n f o . h
2024-04-14 14:09:51 +00:00
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / i m a g e _ v i e w . c p p
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / i m a g e _ v i e w . h
2024-05-26 22:07:46 +00:00
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / s a m p l e r . c p p
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / s a m p l e r . h
2024-04-14 14:09:51 +00:00
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / t e x t u r e _ c a c h e . c p p
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / t e x t u r e _ c a c h e . h
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / t i l e _ m a n a g e r . c p p
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / t i l e _ m a n a g e r . h
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / t y p e s . h
2024-09-04 20:47:57 +00:00
s r c / v i d e o _ c o r e / t e x t u r e _ c a c h e / h o s t _ c o m p a t i b i l i t y . h
2024-08-08 12:02:10 +00:00
s r c / v i d e o _ c o r e / p a g e _ m a n a g e r . c p p
s r c / v i d e o _ c o r e / p a g e _ m a n a g e r . h
s r c / v i d e o _ c o r e / m u l t i _ l e v e l _ p a g e _ t a b l e . h
2024-07-28 13:54:09 +00:00
s r c / v i d e o _ c o r e / r e n d e r d o c . c p p
s r c / v i d e o _ c o r e / r e n d e r d o c . h
2024-02-29 22:00:35 +00:00
)
2024-04-13 21:35:48 +00:00
2024-09-08 19:50:32 +00:00
set ( IMGUI src/imgui/imgui_config.h
s r c / i m g u i / i m g u i _ l a y e r . h
2024-09-08 20:27:50 +00:00
s r c / i m g u i / i m g u i _ s t d . h
2024-09-20 09:34:19 +00:00
s r c / i m g u i / i m g u i _ t e x t u r e . h
2024-09-08 19:50:32 +00:00
s r c / i m g u i / l a y e r / v i d e o _ i n f o . c p p
s r c / i m g u i / l a y e r / v i d e o _ i n f o . h
s r c / i m g u i / r e n d e r e r / i m g u i _ c o r e . c p p
s r c / i m g u i / r e n d e r e r / i m g u i _ c o r e . h
s r c / i m g u i / r e n d e r e r / i m g u i _ i m p l _ s d l 3 . c p p
s r c / i m g u i / r e n d e r e r / i m g u i _ i m p l _ s d l 3 . h
s r c / i m g u i / r e n d e r e r / i m g u i _ i m p l _ v u l k a n . c p p
s r c / i m g u i / r e n d e r e r / i m g u i _ i m p l _ v u l k a n . h
2024-09-20 09:34:19 +00:00
s r c / i m g u i / r e n d e r e r / t e x t u r e _ m a n a g e r . c p p
s r c / i m g u i / r e n d e r e r / t e x t u r e _ m a n a g e r . h
2024-09-08 19:50:32 +00:00
)
2024-04-13 21:41:51 +00:00
set ( INPUT src/input/controller.cpp
s r c / i n p u t / c o n t r o l l e r . h
2024-02-29 22:00:35 +00:00
)
2024-06-11 02:42:21 +00:00
set ( EMULATOR src/emulator.cpp
s r c / e m u l a t o r . h
s r c / s d l _ w i n d o w . h
s r c / s d l _ w i n d o w . c p p
)
2024-07-30 19:41:31 +00:00
# The above is shared in SDL and Qt version (TODO share them all)
2024-04-13 21:35:48 +00:00
if ( ENABLE_QT_GUI )
qt_add_resources ( RESOURCE_FILES src/shadps4.qrc )
2024-04-15 17:35:49 +00:00
2024-08-17 16:13:37 +00:00
set ( QT_GUI src/qt_gui/about_dialog.cpp
s r c / q t _ g u i / a b o u t _ d i a l o g . h
s r c / q t _ g u i / a b o u t _ d i a l o g . u i
2024-09-26 06:12:41 +00:00
s r c / q t _ g u i / b a c k g r o u n d _ m u s i c _ p l a y e r . c p p
s r c / q t _ g u i / b a c k g r o u n d _ m u s i c _ p l a y e r . h
Cheats/Patches (#493)
* Cheats/Patches
Adds the possibility of applying cheats/patches according to the specific game serial+version
The logic for adding modifications has not yet been implemented!
Interface based on issues/372 https://github.com/shadps4-emu/shadPS4/issues/372
[X]Front-end
[]Back-end
Create a synchronized fork of the cheats/patches repository
* Clang Format
* separate files
The code has been separated into separate files as suggested by georgemoralis.
Added the Patch tab, which has not been implemented yet.
Added the 'applyCheat' area to apply the modification, not implemented yet...
And added LOG_INFO.
* reuse
* initial implementation of cheat functionality
* Update cheats_patches.cpp
sets all added buttons to the size of the largest button.
and fixes some aesthetic issues.
* move eboot_address to module.h
fixes the non-qt builds and makes more sense to be there anyway
* Patchs menu and fixes
adds the possibility to download Patches, it does not modify the memory yet.
and some other fixes
* MemoryPatcher namespace, activate cheats on start
* format
* initial patch implementation
* format
* format again...
* convertValueToHex
* Fixes
Choosing which cheat file to use.
And some other fixes
* fix bytes16, bytes32, bytes64 type patches
If a patch is any of these types we convert it from little endian to big endian
* format
* format again :(
* Implement pattern scanning for mask type patches
* add check to stop patches applying to wrong game
previously if you added a patch to a game, but closed the window and opened a different game it would still try to apply the patch, this is now fixed
* format
* Fix 'Hint' 0x400000 | and Author
* Management |save checkbox | shadps4 repository
MENU - Cheats/Patches Management (implementing Patches)
save patches checkbox
add shadps4 repository
* Load saved patches, miscellaneous fixes
* Fix an issue with mask patches not being saved
* format + remove debug log
* multiple patches | TR translation for cheats/patches
* clang
* ENABLE_QT_GUI
* OK
* move memory_patcher to qt_gui
* clang
* add cheats hu_HU
* fix log
* Remove the item from the patchesListView if no patches were added (the game has patches, but not for the current version)
---------
Co-authored-by: CrazyBloo <CrazyBloo@users.noreply.github.com>
2024-08-29 04:18:50 +00:00
s r c / q t _ g u i / c h e a t s _ p a t c h e s . c p p
s r c / q t _ g u i / c h e a t s _ p a t c h e s . h
2024-09-24 20:03:15 +00:00
s r c / q t _ g u i / c h e c k _ u p d a t e . c p p
s r c / q t _ g u i / c h e c k _ u p d a t e . h
2024-08-17 16:13:37 +00:00
s r c / q t _ g u i / m a i n _ w i n d o w _ u i . h
2024-08-15 09:33:10 +00:00
s r c / q t _ g u i / m a i n _ w i n d o w . c p p
s r c / q t _ g u i / m a i n _ w i n d o w . h
s r c / q t _ g u i / g u i _ c o n t e x t _ m e n u s . h
s r c / q t _ g u i / g a m e _ l i s t _ u t i l s . h
s r c / q t _ g u i / g a m e _ i n f o . c p p
s r c / q t _ g u i / g a m e _ i n f o . h
s r c / q t _ g u i / g a m e _ l i s t _ f r a m e . c p p
s r c / q t _ g u i / g a m e _ l i s t _ f r a m e . h
s r c / q t _ g u i / g a m e _ g r i d _ f r a m e . c p p
s r c / q t _ g u i / g a m e _ g r i d _ f r a m e . h
s r c / q t _ g u i / g a m e _ i n s t a l l _ d i a l o g . c p p
s r c / q t _ g u i / g a m e _ i n s t a l l _ d i a l o g . h
s r c / q t _ g u i / p k g _ v i e w e r . c p p
s r c / q t _ g u i / p k g _ v i e w e r . h
s r c / q t _ g u i / t r o p h y _ v i e w e r . c p p
s r c / q t _ g u i / t r o p h y _ v i e w e r . h
s r c / q t _ g u i / e l f _ v i e w e r . c p p
s r c / q t _ g u i / e l f _ v i e w e r . h
s r c / q t _ g u i / m a i n _ w i n d o w _ t h e m e s . c p p
s r c / q t _ g u i / m a i n _ w i n d o w _ t h e m e s . h
s r c / q t _ g u i / s e t t i n g s _ d i a l o g . c p p
s r c / q t _ g u i / s e t t i n g s _ d i a l o g . h
s r c / q t _ g u i / s e t t i n g s _ d i a l o g . u i
s r c / q t _ g u i / m a i n . c p p
$ { E M U L A T O R }
$ { R E S O U R C E _ F I L E S }
2024-08-25 08:45:26 +00:00
$ { T R A N S L A T I O N S }
2024-08-09 14:09:51 +00:00
)
2024-04-13 21:35:48 +00:00
endif ( )
2024-05-01 10:38:41 +00:00
if ( ENABLE_QT_GUI )
qt_add_executable ( shadps4
$ { A U D I O _ C O R E }
2024-09-08 19:50:32 +00:00
$ { I M G U I }
2024-05-01 10:38:41 +00:00
$ { I N P U T }
$ { Q T _ G U I }
$ { C O M M O N }
$ { C O R E }
2024-05-21 22:35:12 +00:00
$ { S H A D E R _ R E C O M P I L E R }
2024-05-01 10:38:41 +00:00
$ { V I D E O _ C O R E }
2024-06-11 02:42:21 +00:00
$ { E M U L A T O R }
2024-08-01 02:36:33 +00:00
s r c / i m a g e s / s h a d P S 4 . i c n s
2024-05-01 10:38:41 +00:00
)
2024-02-29 22:00:35 +00:00
else ( )
2024-05-01 10:38:41 +00:00
add_executable ( shadps4
$ { A U D I O _ C O R E }
2024-09-08 19:50:32 +00:00
$ { I M G U I }
2024-05-01 10:38:41 +00:00
$ { I N P U T }
$ { C O M M O N }
$ { C O R E }
2024-05-21 22:35:12 +00:00
$ { S H A D E R _ R E C O M P I L E R }
2024-05-01 10:38:41 +00:00
$ { V I D E O _ C O R E }
2024-06-11 02:42:21 +00:00
$ { E M U L A T O R }
2024-05-01 10:38:41 +00:00
s r c / m a i n . c p p
2024-06-15 11:36:07 +00:00
s r c / e m u l a t o r . c p p
s r c / e m u l a t o r . h
s r c / s d l _ w i n d o w . h
s r c / s d l _ w i n d o w . c p p
2024-05-01 10:38:41 +00:00
)
2024-02-29 22:00:35 +00:00
endif ( )
2023-04-27 16:13:19 +00:00
2023-11-05 15:08:47 +00:00
create_target_directory_groups ( shadps4 )
2024-09-08 19:50:32 +00:00
target_link_libraries ( shadps4 PRIVATE magic_enum::magic_enum fmt::fmt toml11::toml11 tsl::robin_map xbyak::xbyak Tracy::TracyClient RenderDoc::API FFmpeg::ffmpeg Dear_ImGui )
2024-09-11 03:50:55 +00:00
target_link_libraries ( shadps4 PRIVATE Boost::headers GPUOpen::VulkanMemoryAllocator sirit Vulkan::Headers xxHash::xxhash Zydis::Zydis glslang::SPIRV glslang::glslang SDL3::SDL3 pugixml::pugixml )
2024-02-29 22:00:35 +00:00
2024-09-08 19:50:32 +00:00
target_compile_definitions ( shadps4 PRIVATE IMGUI_USER_CONFIG= "imgui/imgui_config.h" )
target_compile_definitions ( Dear_ImGui PRIVATE IMGUI_USER_CONFIG= "${PROJECT_SOURCE_DIR}/src/imgui/imgui_config.h" )
2024-07-09 09:18:34 +00:00
if ( APPLE )
2024-09-03 08:31:00 +00:00
option ( USE_SYSTEM_VULKAN_LOADER "Enables using the system Vulkan loader instead of directly linking with MoltenVK. Useful for loading validation layers." OFF )
if ( USE_SYSTEM_VULKAN_LOADER )
target_compile_definitions ( shadps4 PRIVATE USE_SYSTEM_VULKAN_LOADER=1 )
else ( )
# Link MoltenVK for Vulkan support
find_library ( MOLTENVK MoltenVK REQUIRED )
target_link_libraries ( shadps4 PRIVATE ${ MOLTENVK } )
endif ( )
2024-09-09 10:23:16 +00:00
if ( ARCHITECTURE STREQUAL "x86_64" )
# Reserve system-managed memory space.
target_link_options ( shadps4 PRIVATE -Wl,-no_pie,-no_fixup_chains,-no_huge,-pagezero_size,0x4000,-segaddr,TCB_SPACE,0x4000,-segaddr,GUEST_SYSTEM,0x400000,-image_base,0x20000000000 )
endif ( )
2024-07-15 21:34:54 +00:00
2024-07-17 08:56:07 +00:00
# Replacement for std::chrono::time_zone
target_link_libraries ( shadps4 PRIVATE date::date-tz )
2024-07-19 08:09:07 +00:00
# Half float conversions for F16C patches
target_link_libraries ( shadps4 PRIVATE half )
2024-07-09 09:18:34 +00:00
endif ( )
2024-05-01 10:38:41 +00:00
if ( NOT ENABLE_QT_GUI )
2024-06-27 10:46:55 +00:00
target_link_libraries ( shadps4 PRIVATE SDL3::SDL3 )
2024-02-29 22:00:35 +00:00
endif ( )
2024-05-01 10:38:41 +00:00
if ( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND MSVC )
2024-06-27 10:46:55 +00:00
target_link_libraries ( shadps4 PRIVATE cryptoppwin zlib-ng::zlib )
2024-02-29 22:00:35 +00:00
else ( )
2024-06-27 10:46:55 +00:00
target_link_libraries ( shadps4 PRIVATE cryptopp::cryptopp zlib-ng::zlib )
2024-02-29 22:00:35 +00:00
endif ( )
2024-05-01 10:38:41 +00:00
if ( ENABLE_QT_GUI )
2024-09-26 06:12:41 +00:00
target_link_libraries ( shadps4 PRIVATE Qt6::Widgets Qt6::Concurrent Qt6::Network Qt6::Multimedia )
Cheats/Patches (#493)
* Cheats/Patches
Adds the possibility of applying cheats/patches according to the specific game serial+version
The logic for adding modifications has not yet been implemented!
Interface based on issues/372 https://github.com/shadps4-emu/shadPS4/issues/372
[X]Front-end
[]Back-end
Create a synchronized fork of the cheats/patches repository
* Clang Format
* separate files
The code has been separated into separate files as suggested by georgemoralis.
Added the Patch tab, which has not been implemented yet.
Added the 'applyCheat' area to apply the modification, not implemented yet...
And added LOG_INFO.
* reuse
* initial implementation of cheat functionality
* Update cheats_patches.cpp
sets all added buttons to the size of the largest button.
and fixes some aesthetic issues.
* move eboot_address to module.h
fixes the non-qt builds and makes more sense to be there anyway
* Patchs menu and fixes
adds the possibility to download Patches, it does not modify the memory yet.
and some other fixes
* MemoryPatcher namespace, activate cheats on start
* format
* initial patch implementation
* format
* format again...
* convertValueToHex
* Fixes
Choosing which cheat file to use.
And some other fixes
* fix bytes16, bytes32, bytes64 type patches
If a patch is any of these types we convert it from little endian to big endian
* format
* format again :(
* Implement pattern scanning for mask type patches
* add check to stop patches applying to wrong game
previously if you added a patch to a game, but closed the window and opened a different game it would still try to apply the patch, this is now fixed
* format
* Fix 'Hint' 0x400000 | and Author
* Management |save checkbox | shadps4 repository
MENU - Cheats/Patches Management (implementing Patches)
save patches checkbox
add shadps4 repository
* Load saved patches, miscellaneous fixes
* Fix an issue with mask patches not being saved
* format + remove debug log
* multiple patches | TR translation for cheats/patches
* clang
* ENABLE_QT_GUI
* OK
* move memory_patcher to qt_gui
* clang
* add cheats hu_HU
* fix log
* Remove the item from the patchesListView if no patches were added (the game has patches, but not for the current version)
---------
Co-authored-by: CrazyBloo <CrazyBloo@users.noreply.github.com>
2024-08-29 04:18:50 +00:00
add_definitions ( -DENABLE_QT_GUI )
2024-02-29 22:00:35 +00:00
endif ( )
2023-11-05 11:22:18 +00:00
if ( WIN32 )
2024-08-20 16:26:35 +00:00
target_link_libraries ( shadps4 PRIVATE mincore winpthreads )
if ( MSVC )
# MSVC likes putting opinions on what people can use, disable:
add_definitions ( -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS )
endif ( )
2024-02-27 22:10:34 +00:00
add_definitions ( -DNOMINMAX -DWIN32_LEAN_AND_MEAN )
2024-08-20 16:26:35 +00:00
2024-05-01 10:38:41 +00:00
if ( MSVC )
# Needed for conflicts with time.h of windows.h
add_definitions ( -D_TIMESPEC_DEFINED )
endif ( )
2024-08-20 16:26:35 +00:00
2024-04-29 12:16:42 +00:00
# Target Windows 10 RS5
add_definitions ( -DNTDDI_VERSION=0x0A000006 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 )
2024-08-20 16:26:35 +00:00
if ( MSVC )
target_link_libraries ( shadps4 PRIVATE clang_rt.builtins-x86_64.lib )
endif ( )
2024-05-16 12:55:50 +00:00
# Disable ASLR so we can reserve the user area
if ( MSVC )
target_link_options ( shadps4 PRIVATE /DYNAMICBASE:NO )
else ( )
target_link_options ( shadps4 PRIVATE -Wl,--disable-dynamicbase )
endif ( )
2024-08-20 16:26:35 +00:00
# Increase stack commit area (Needed, otherwise there are crashes)
if ( MSVC )
target_link_options ( shadps4 PRIVATE /STACK:0x200000,0x200000 )
else ( )
target_link_options ( shadps4 PRIVATE -Wl,--stack,2097152 )
endif ( )
2023-11-05 11:22:18 +00:00
endif ( )
2023-05-10 19:22:46 +00:00
2024-05-01 10:38:41 +00:00
if ( WIN32 )
2024-02-29 22:00:35 +00:00
target_sources ( shadps4 PRIVATE src/shadps4.rc )
endif ( )
2024-07-10 21:07:34 +00:00
add_definitions ( -DBOOST_ASIO_STANDALONE )
2024-02-29 22:00:35 +00:00
target_include_directories ( shadps4 PRIVATE ${ CMAKE_CURRENT_SOURCE_DIR } )
2024-06-05 12:31:50 +00:00
# Shaders sources
set ( HOST_SHADERS_INCLUDE ${ CMAKE_CURRENT_SOURCE_DIR } /src/video_core/host_shaders )
add_subdirectory ( ${ HOST_SHADERS_INCLUDE } )
add_dependencies ( shadps4 host_shaders )
target_include_directories ( shadps4 PRIVATE ${ HOST_SHADERS_INCLUDE } )
2024-09-23 11:50:49 +00:00
# ImGui resources
add_subdirectory ( ${ CMAKE_CURRENT_SOURCE_DIR } /src/imgui/renderer )
add_dependencies ( shadps4 ImGui_Resources )
target_include_directories ( shadps4 PRIVATE ${ IMGUI_RESOURCES_INCLUDE } )
2024-05-01 10:38:41 +00:00
if ( ENABLE_QT_GUI )
set_target_properties ( shadps4 PROPERTIES
2024-07-30 19:41:31 +00:00
# WIN32_EXECUTABLE ON
2024-08-01 02:36:33 +00:00
M A C O S X _ B U N D L E O N
M A C O S X _ B U N D L E _ I C O N _ F I L E s h a d P S 4 . i c n s )
set_source_files_properties ( src/images/shadPS4.icns PROPERTIES
M A C O S X _ P A C K A G E _ L O C A T I O N R e s o u r c e s )
2024-02-29 22:00:35 +00:00
endif ( )
2024-09-02 18:30:50 +00:00
2024-09-02 23:18:36 +00:00
if ( UNIX AND NOT APPLE )
if ( ENABLE_QT_GUI )
find_package ( OpenSSL REQUIRED )
target_link_libraries ( shadps4 PRIVATE ${ OPENSSL_LIBRARIES } )
endif ( )
2024-09-24 20:03:15 +00:00
endif ( )