2024-02-23 22:32:32 +01:00
|
|
|
# SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2023-04-27 18:13:19 +02:00
|
|
|
cmake_minimum_required(VERSION 3.16.3)
|
2023-11-05 12:22:18 +01:00
|
|
|
|
2024-02-29 23:00:35 +01:00
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
2023-05-02 17:22:19 +02:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
2023-04-27 18:13:19 +02:00
|
|
|
|
2024-07-09 11:18:34 +02:00
|
|
|
if(APPLE)
|
|
|
|
enable_language(OBJC)
|
2024-07-15 10:30:27 +02:00
|
|
|
set(CMAKE_OSX_DEPLOYMENT_TARGET 11)
|
2024-07-09 11:18:34 +02:00
|
|
|
endif()
|
|
|
|
|
2023-11-05 12:22:18 +01:00
|
|
|
if (NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE Release)
|
2023-05-03 18:40:47 +02:00
|
|
|
endif()
|
|
|
|
|
2024-06-14 14:32:41 +02:00
|
|
|
project(shadPS4)
|
2023-04-27 18:13:19 +02:00
|
|
|
|
2024-02-29 23:00:35 +01:00
|
|
|
option(ENABLE_QT_GUI "Enable the Qt GUI. If not selected then the emulator uses a minimal SDL-based UI instead" OFF)
|
|
|
|
|
2024-07-30 21:41:31 +02: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 16:08:47 +01:00
|
|
|
function(create_target_directory_groups target_name)
|
2024-07-30 21:41:31 +02: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 16:08:47 +01: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 21:57:57 +01: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 14:16:42 +02:00
|
|
|
add_custom_target(clang-format
|
|
|
|
COMMAND powershell.exe -Command "Get-ChildItem '${SRCS}/*' -Include *.cpp,*.h,*.mm -Recurse | Foreach {&'${CLANG_FORMAT}' -i $_.fullname}"
|
|
|
|
COMMENT ${CCOMMENT})
|
2024-02-23 21:57:57 +01:00
|
|
|
else()
|
|
|
|
add_custom_target(clang-format
|
|
|
|
COMMAND find ${SRCS} -iname *.h -o -iname *.cpp -o -iname *.mm | xargs ${CLANG_FORMAT} -i
|
|
|
|
COMMENT ${CCOMMENT})
|
|
|
|
endif()
|
|
|
|
unset(SRCS)
|
|
|
|
unset(CCOMMENT)
|
|
|
|
endif()
|
|
|
|
|
2024-06-27 12:46:55 +02:00
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
|
|
|
|
2024-07-31 23:56:10 +02: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)
|
|
|
|
|
|
|
|
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 14:33:42 +02:00
|
|
|
find_package(Boost 1.84.0 CONFIG)
|
2024-06-27 12:46:55 +02:00
|
|
|
find_package(cryptopp 8.9.0 MODULE)
|
2024-07-01 18:39:12 +02:00
|
|
|
find_package(fmt 10.2.1 CONFIG)
|
2024-06-27 12:46:55 +02:00
|
|
|
find_package(glslang 14.2.0 CONFIG)
|
2024-07-01 18:39:12 +02:00
|
|
|
find_package(magic_enum 0.9.6 CONFIG)
|
2024-06-27 12:46:55 +02:00
|
|
|
find_package(SDL3 3.1.2 CONFIG)
|
|
|
|
find_package(toml11 3.8.1 CONFIG)
|
|
|
|
find_package(tsl-robin-map 1.3.0 CONFIG)
|
2024-07-01 18:39:12 +02:00
|
|
|
find_package(VulkanHeaders 1.3.289 CONFIG)
|
2024-06-27 12:46:55 +02:00
|
|
|
find_package(VulkanMemoryAllocator 3.1.0 CONFIG)
|
|
|
|
find_package(xbyak 7.07 CONFIG)
|
|
|
|
find_package(xxHash 0.8.2 MODULE)
|
2024-07-01 18:39:12 +02:00
|
|
|
find_package(zlib-ng 2.2.0 MODULE)
|
2024-06-27 12:46:55 +02:00
|
|
|
find_package(Zydis 4.1.0 CONFIG)
|
2024-07-28 15:54:09 +02:00
|
|
|
find_package(RenderDoc MODULE)
|
2024-06-27 12:46:55 +02:00
|
|
|
|
2024-07-17 10:56:07 +02:00
|
|
|
if (APPLE)
|
|
|
|
find_package(date 3.0.1 CONFIG)
|
|
|
|
endif()
|
|
|
|
|
2024-07-29 01:31:15 +02:00
|
|
|
# Note: Windows always has these functions through winpthreads
|
2024-07-09 11:18:34 +02: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-07-29 01:31:15 +02:00
|
|
|
check_symbol_exists(sem_timedwait "semaphore.h" HAVE_SEM_TIMEDWAIT)
|
|
|
|
if(HAVE_SEM_TIMEDWAIT OR WIN32)
|
|
|
|
add_compile_options(-DHAVE_SEM_TIMEDWAIT)
|
|
|
|
endif()
|
2024-07-09 11:18:34 +02:00
|
|
|
|
2024-02-27 19:24:47 +01:00
|
|
|
add_subdirectory(externals)
|
2023-08-02 14:16:00 +02:00
|
|
|
include_directories(src)
|
2023-04-27 18:13:19 +02:00
|
|
|
|
2024-04-13 21:37:21 +02:00
|
|
|
if(ENABLE_QT_GUI)
|
|
|
|
find_package(Qt6 REQUIRED COMPONENTS Widgets Concurrent)
|
|
|
|
qt_standard_project_setup()
|
|
|
|
set(CMAKE_AUTORCC ON)
|
2024-08-09 16:09:51 +02:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
2024-04-13 21:37:21 +02:00
|
|
|
endif()
|
|
|
|
|
2024-08-15 11:33:10 +02:00
|
|
|
set(AUDIO_CORE src/audio_core/sdl_audio.cpp
|
2024-03-22 17:12:37 +01:00
|
|
|
src/audio_core/sdl_audio.h
|
|
|
|
)
|
2024-04-13 23:35:48 +02:00
|
|
|
|
|
|
|
set(AUDIO_LIB src/core/libraries/audio/audioin.cpp
|
|
|
|
src/core/libraries/audio/audioin.h
|
|
|
|
src/core/libraries/audio/audioout.cpp
|
|
|
|
src/core/libraries/audio/audioout.h
|
2024-06-27 15:37:17 +02:00
|
|
|
src/core/libraries/ajm/ajm.cpp
|
|
|
|
src/core/libraries/ajm/ajm.h
|
2024-02-24 21:39:29 +01:00
|
|
|
)
|
2024-03-14 13:18:16 +01:00
|
|
|
|
2024-04-13 23:35:48 +02:00
|
|
|
set(GNM_LIB src/core/libraries/gnmdriver/gnmdriver.cpp
|
|
|
|
src/core/libraries/gnmdriver/gnmdriver.h
|
2023-10-06 20:49:53 +02:00
|
|
|
)
|
|
|
|
|
2024-05-28 13:29:53 +02:00
|
|
|
set(KERNEL_LIB
|
|
|
|
src/core/libraries/kernel/event_flag/event_flag.cpp
|
|
|
|
src/core/libraries/kernel/event_flag/event_flag.h
|
|
|
|
src/core/libraries/kernel/event_flag/event_flag_obj.cpp
|
|
|
|
src/core/libraries/kernel/event_flag/event_flag_obj.h
|
2024-06-15 13:36:07 +02:00
|
|
|
src/core/libraries/kernel/threads/rwlock.cpp
|
|
|
|
src/core/libraries/kernel/threads/semaphore.cpp
|
|
|
|
src/core/libraries/kernel/threads/keys.cpp
|
|
|
|
src/core/libraries/kernel/threads/threads.h
|
2024-05-28 13:29:53 +02:00
|
|
|
src/core/libraries/kernel/cpu_management.cpp
|
2024-04-13 23:35:48 +02:00
|
|
|
src/core/libraries/kernel/cpu_management.h
|
|
|
|
src/core/libraries/kernel/event_queue.cpp
|
|
|
|
src/core/libraries/kernel/event_queue.h
|
|
|
|
src/core/libraries/kernel/event_queues.cpp
|
|
|
|
src/core/libraries/kernel/event_queues.h
|
|
|
|
src/core/libraries/kernel/file_system.cpp
|
|
|
|
src/core/libraries/kernel/file_system.h
|
|
|
|
src/core/libraries/kernel/libkernel.cpp
|
|
|
|
src/core/libraries/kernel/libkernel.h
|
|
|
|
src/core/libraries/kernel/memory_management.cpp
|
|
|
|
src/core/libraries/kernel/memory_management.h
|
|
|
|
src/core/libraries/kernel/thread_management.cpp
|
|
|
|
src/core/libraries/kernel/thread_management.h
|
|
|
|
src/core/libraries/kernel/time_management.cpp
|
|
|
|
src/core/libraries/kernel/time_management.h
|
2023-10-07 11:03:03 +02:00
|
|
|
)
|
|
|
|
|
2024-04-13 23:35:48 +02:00
|
|
|
set(NETWORK_LIBS src/core/libraries/network/http.cpp
|
|
|
|
src/core/libraries/network/http.h
|
|
|
|
src/core/libraries/network/net.cpp
|
|
|
|
src/core/libraries/network/netctl.cpp
|
|
|
|
src/core/libraries/network/netctl.h
|
|
|
|
src/core/libraries/network/net.h
|
|
|
|
src/core/libraries/network/ssl.cpp
|
|
|
|
src/core/libraries/network/ssl.h
|
2023-10-20 06:25:52 +02:00
|
|
|
)
|
|
|
|
|
2024-04-13 23:35:48 +02:00
|
|
|
set(SYSTEM_LIBS src/core/libraries/system/commondialog.cpp
|
|
|
|
src/core/libraries/system/commondialog.h
|
|
|
|
src/core/libraries/system/msgdialog.cpp
|
|
|
|
src/core/libraries/system/msgdialog.h
|
|
|
|
src/core/libraries/system/posix.cpp
|
|
|
|
src/core/libraries/system/posix.h
|
2024-05-04 21:08:04 +02:00
|
|
|
src/core/libraries/save_data/error_codes.h
|
2024-05-04 18:08:46 +02:00
|
|
|
src/core/libraries/save_data/savedata.cpp
|
|
|
|
src/core/libraries/save_data/savedata.h
|
2024-04-13 23:35:48 +02:00
|
|
|
src/core/libraries/system/savedatadialog.cpp
|
|
|
|
src/core/libraries/system/savedatadialog.h
|
|
|
|
src/core/libraries/system/sysmodule.cpp
|
|
|
|
src/core/libraries/system/sysmodule.h
|
|
|
|
src/core/libraries/system/systemservice.cpp
|
|
|
|
src/core/libraries/system/systemservice.h
|
|
|
|
src/core/libraries/system/userservice.cpp
|
|
|
|
src/core/libraries/system/userservice.h
|
2024-05-31 14:03:05 +02:00
|
|
|
src/core/libraries/app_content/app_content.cpp
|
|
|
|
src/core/libraries/app_content/app_content.h
|
2024-06-08 21:41:25 +02:00
|
|
|
src/core/libraries/rtc/rtc.cpp
|
|
|
|
src/core/libraries/rtc/rtc.h
|
|
|
|
src/core/libraries/disc_map/disc_map.cpp
|
|
|
|
src/core/libraries/disc_map/disc_map.h
|
|
|
|
src/core/libraries/disc_map/disc_map_codes.h
|
2024-07-10 18:20:19 +02:00
|
|
|
src/core/libraries/avplayer/avplayer.cpp
|
|
|
|
src/core/libraries/avplayer/avplayer.h
|
2023-10-19 11:13:09 +02:00
|
|
|
)
|
|
|
|
|
2024-04-14 16:09:51 +02:00
|
|
|
set(VIDEOOUT_LIB src/core/libraries/videoout/buffer.h
|
|
|
|
src/core/libraries/videoout/driver.cpp
|
|
|
|
src/core/libraries/videoout/driver.h
|
|
|
|
src/core/libraries/videoout/video_out.cpp
|
|
|
|
src/core/libraries/videoout/video_out.h
|
|
|
|
)
|
|
|
|
|
2024-04-13 23:35:48 +02:00
|
|
|
set(LIBC_SOURCES src/core/libraries/libc/libc.cpp
|
|
|
|
src/core/libraries/libc/libc.h
|
|
|
|
src/core/libraries/libc/printf.h
|
|
|
|
src/core/libraries/libc/va_ctx.h
|
|
|
|
src/core/libraries/libc/libc_cxa.cpp
|
|
|
|
src/core/libraries/libc/libc_cxa.h
|
|
|
|
src/core/libraries/libc/libc_stdio.cpp
|
|
|
|
src/core/libraries/libc/libc_stdio.h
|
|
|
|
src/core/libraries/libc/libc_math.cpp
|
|
|
|
src/core/libraries/libc/libc_math.h
|
|
|
|
src/core/libraries/libc/libc_string.cpp
|
|
|
|
src/core/libraries/libc/libc_string.h
|
|
|
|
src/core/libraries/libc/libc_stdlib.cpp
|
|
|
|
src/core/libraries/libc/libc_stdlib.h
|
2024-05-13 15:13:33 +02:00
|
|
|
src/core/libraries/libc_internal/libc_internal.cpp
|
|
|
|
src/core/libraries/libc_internal/libc_internal.h
|
2024-04-13 23:35:48 +02:00
|
|
|
)
|
2024-02-29 23:00:35 +01:00
|
|
|
|
2024-07-10 18:20:19 +02:00
|
|
|
set(DIALOGS_LIB src/core/libraries/dialogs/error_dialog.cpp
|
|
|
|
src/core/libraries/dialogs/error_dialog.h
|
|
|
|
src/core/libraries/dialogs/ime_dialog.cpp
|
|
|
|
src/core/libraries/dialogs/ime_dialog.h
|
|
|
|
src/core/libraries/dialogs/error_codes.h
|
|
|
|
)
|
|
|
|
|
2024-04-13 23:35:48 +02:00
|
|
|
set(PAD_LIB src/core/libraries/pad/pad.cpp
|
|
|
|
src/core/libraries/pad/pad.h
|
|
|
|
)
|
2024-02-29 23:00:35 +01:00
|
|
|
|
2024-06-14 09:37:26 +02:00
|
|
|
set(PNG_LIB src/core/libraries/libpng/pngdec.cpp
|
|
|
|
src/core/libraries/libpng/pngdec.h
|
|
|
|
)
|
|
|
|
|
2024-06-15 16:51:51 +02:00
|
|
|
set(PLAYGO_LIB src/core/libraries/playgo/playgo.cpp
|
|
|
|
src/core/libraries/playgo/playgo.h
|
|
|
|
src/core/libraries/playgo/playgo_types.h
|
|
|
|
)
|
|
|
|
|
2024-07-31 13:01:22 +02:00
|
|
|
set(RANDOM_LIB src/core/libraries/random/random.cpp
|
|
|
|
src/core/libraries/random/random.h
|
|
|
|
)
|
|
|
|
|
2024-06-15 16:51:51 +02:00
|
|
|
set(USBD_LIB src/core/libraries/usbd/usbd.cpp
|
|
|
|
src/core/libraries/usbd/usbd.h
|
|
|
|
)
|
|
|
|
|
2024-05-02 17:16:10 +02:00
|
|
|
set(NP_LIBS src/core/libraries/np_manager/np_manager.cpp
|
|
|
|
src/core/libraries/np_manager/np_manager.h
|
|
|
|
src/core/libraries/np_score/np_score.cpp
|
|
|
|
src/core/libraries/np_score/np_score.h
|
|
|
|
src/core/libraries/np_trophy/np_trophy.cpp
|
|
|
|
src/core/libraries/np_trophy/np_trophy.h
|
|
|
|
)
|
|
|
|
set(MISC_LIBS src/core/libraries/screenshot/screenshot.cpp
|
|
|
|
src/core/libraries/screenshot/screenshot.h
|
|
|
|
)
|
|
|
|
|
2024-02-29 23:00:35 +01:00
|
|
|
set(COMMON src/common/logging/backend.cpp
|
|
|
|
src/common/logging/backend.h
|
|
|
|
src/common/logging/filter.cpp
|
|
|
|
src/common/logging/filter.h
|
|
|
|
src/common/logging/formatter.h
|
|
|
|
src/common/logging/log_entry.h
|
|
|
|
src/common/logging/log.h
|
|
|
|
src/common/logging/text_formatter.cpp
|
|
|
|
src/common/logging/text_formatter.h
|
|
|
|
src/common/logging/types.h
|
2024-04-14 16:09:51 +02:00
|
|
|
src/common/alignment.h
|
2024-02-29 23:00:35 +01:00
|
|
|
src/common/assert.cpp
|
|
|
|
src/common/assert.h
|
2024-04-30 00:23:28 +02:00
|
|
|
src/common/bit_field.h
|
2024-02-29 23:00:35 +01:00
|
|
|
src/common/bounded_threadsafe_queue.h
|
|
|
|
src/common/concepts.h
|
2024-03-11 12:26:33 +01:00
|
|
|
src/common/config.cpp
|
|
|
|
src/common/config.h
|
2024-02-29 23:00:35 +01:00
|
|
|
src/common/debug.h
|
|
|
|
src/common/disassembler.cpp
|
|
|
|
src/common/disassembler.h
|
|
|
|
src/common/endian.h
|
2024-04-14 16:09:51 +02:00
|
|
|
src/common/enum.h
|
2024-02-29 23:00:35 +01:00
|
|
|
src/common/io_file.cpp
|
|
|
|
src/common/io_file.h
|
|
|
|
src/common/error.cpp
|
|
|
|
src/common/error.h
|
2024-05-22 00:35:12 +02:00
|
|
|
src/common/scope_exit.h
|
|
|
|
src/common/func_traits.h
|
2024-02-29 23:00:35 +01:00
|
|
|
src/common/native_clock.cpp
|
|
|
|
src/common/native_clock.h
|
|
|
|
src/common/path_util.cpp
|
|
|
|
src/common/path_util.h
|
2024-08-08 14:02:10 +02:00
|
|
|
src/common/object_pool.h
|
2024-04-29 14:16:42 +02:00
|
|
|
src/common/polyfill_thread.h
|
2024-02-29 23:00:35 +01:00
|
|
|
src/common/rdtsc.cpp
|
|
|
|
src/common/rdtsc.h
|
|
|
|
src/common/singleton.h
|
2024-06-08 01:19:51 +02:00
|
|
|
src/common/slot_vector.h
|
2024-02-29 23:00:35 +01:00
|
|
|
src/common/string_util.cpp
|
|
|
|
src/common/string_util.h
|
|
|
|
src/common/thread.cpp
|
|
|
|
src/common/thread.h
|
|
|
|
src/common/types.h
|
|
|
|
src/common/uint128.h
|
2024-08-08 14:02:10 +02:00
|
|
|
src/common/unique_function.h
|
2024-02-29 23:00:35 +01:00
|
|
|
src/common/version.h
|
2024-07-11 14:35:58 +02:00
|
|
|
src/common/ntapi.h
|
|
|
|
src/common/ntapi.cpp
|
2024-07-31 23:56:10 +02:00
|
|
|
src/common/scm_rev.cpp
|
|
|
|
src/common/scm_rev.h
|
2024-02-29 23:00:35 +01:00
|
|
|
)
|
|
|
|
|
2024-04-13 23:35:48 +02:00
|
|
|
set(CORE src/core/aerolib/stubs.cpp
|
|
|
|
src/core/aerolib/stubs.h
|
|
|
|
src/core/aerolib/aerolib.cpp
|
|
|
|
src/core/aerolib/aerolib.h
|
2024-05-16 14:55:50 +02:00
|
|
|
src/core/address_space.cpp
|
|
|
|
src/core/address_space.h
|
2024-07-14 06:38:20 +02:00
|
|
|
src/core/cpu_patches.cpp
|
|
|
|
src/core/cpu_patches.h
|
2024-04-13 23:35:48 +02:00
|
|
|
src/core/crypto/crypto.cpp
|
|
|
|
src/core/crypto/crypto.h
|
|
|
|
src/core/crypto/keys.h
|
|
|
|
src/core/file_format/pfs.h
|
|
|
|
src/core/file_format/pkg.cpp
|
|
|
|
src/core/file_format/pkg.h
|
|
|
|
src/core/file_format/pkg_type.cpp
|
|
|
|
src/core/file_format/pkg_type.h
|
|
|
|
src/core/file_format/psf.cpp
|
|
|
|
src/core/file_format/psf.h
|
2024-07-24 18:02:22 +02:00
|
|
|
src/core/file_format/playgo_chunk.cpp
|
|
|
|
src/core/file_format/playgo_chunk.h
|
2024-06-11 04:42:21 +02:00
|
|
|
src/core/file_format/trp.cpp
|
|
|
|
src/core/file_format/trp.h
|
2024-05-16 15:58:14 +02:00
|
|
|
src/core/file_format/splash.h
|
|
|
|
src/core/file_format/splash.cpp
|
2024-04-13 23:35:48 +02:00
|
|
|
src/core/file_sys/fs.cpp
|
2024-07-09 11:18:34 +02:00
|
|
|
src/core/file_sys/fs.h
|
2024-04-13 23:35:48 +02:00
|
|
|
src/core/loader.cpp
|
2024-02-29 23:00:35 +01:00
|
|
|
src/core/loader.h
|
2024-06-15 13:36:07 +02:00
|
|
|
src/core/loader/dwarf.cpp
|
|
|
|
src/core/loader/dwarf.h
|
2024-04-13 23:35:48 +02:00
|
|
|
src/core/loader/elf.cpp
|
|
|
|
src/core/loader/elf.h
|
|
|
|
src/core/loader/symbols_resolver.h
|
|
|
|
src/core/loader/symbols_resolver.cpp
|
|
|
|
src/core/libraries/error_codes.h
|
|
|
|
src/core/libraries/libs.h
|
|
|
|
src/core/libraries/libs.cpp
|
|
|
|
${AUDIO_LIB}
|
|
|
|
${GNM_LIB}
|
|
|
|
${KERNEL_LIB}
|
|
|
|
${NETWORK_LIBS}
|
|
|
|
${SYSTEM_LIBS}
|
|
|
|
${LIBC_SOURCES}
|
|
|
|
${PAD_LIB}
|
2024-04-14 16:09:51 +02:00
|
|
|
${VIDEOOUT_LIB}
|
2024-05-02 17:16:10 +02:00
|
|
|
${NP_LIBS}
|
2024-06-14 09:37:26 +02:00
|
|
|
${PNG_LIB}
|
2024-06-15 16:51:51 +02:00
|
|
|
${PLAYGO_LIB}
|
2024-07-31 13:01:22 +02:00
|
|
|
${RANDOM_LIB}
|
2024-06-15 16:51:51 +02:00
|
|
|
${USBD_LIB}
|
2024-05-02 17:16:10 +02:00
|
|
|
${MISC_LIBS}
|
2024-07-10 18:20:19 +02:00
|
|
|
${DIALOGS_LIB}
|
2024-04-13 23:35:48 +02:00
|
|
|
src/core/linker.cpp
|
|
|
|
src/core/linker.h
|
2024-05-16 14:55:50 +02:00
|
|
|
src/core/memory.cpp
|
|
|
|
src/core/memory.h
|
2024-06-05 21:08:18 +02:00
|
|
|
src/core/module.cpp
|
|
|
|
src/core/module.h
|
2024-05-16 15:58:14 +02:00
|
|
|
src/core/platform.h
|
2024-04-13 23:35:48 +02:00
|
|
|
src/core/tls.cpp
|
2024-05-16 15:58:14 +02:00
|
|
|
src/core/tls.h
|
2024-04-13 23:35:48 +02:00
|
|
|
src/core/virtual_memory.cpp
|
|
|
|
src/core/virtual_memory.h
|
2024-02-29 23:00:35 +01:00
|
|
|
)
|
|
|
|
|
2024-05-22 00:35:12 +02:00
|
|
|
set(SHADER_RECOMPILER src/shader_recompiler/exception.h
|
|
|
|
src/shader_recompiler/profile.h
|
|
|
|
src/shader_recompiler/recompiler.cpp
|
|
|
|
src/shader_recompiler/recompiler.h
|
|
|
|
src/shader_recompiler/runtime_info.h
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv.h
|
2024-07-04 23:15:44 +02:00
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_atomic.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_barriers.cpp
|
2024-05-22 00:35:12 +02:00
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_bitwise_conversion.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_composite.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_convert.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_floating_point.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_image.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_instructions.h
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_integer.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_logical.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_select.cpp
|
2024-07-04 23:15:44 +02:00
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_shared_memory.cpp
|
2024-05-22 00:35:12 +02:00
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_special.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_undefined.cpp
|
2024-06-10 21:35:14 +02:00
|
|
|
src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp
|
2024-05-22 00:35:12 +02:00
|
|
|
src/shader_recompiler/backend/spirv/spirv_emit_context.cpp
|
|
|
|
src/shader_recompiler/backend/spirv/spirv_emit_context.h
|
|
|
|
src/shader_recompiler/frontend/translate/data_share.cpp
|
|
|
|
src/shader_recompiler/frontend/translate/export.cpp
|
|
|
|
src/shader_recompiler/frontend/translate/flat_memory.cpp
|
|
|
|
src/shader_recompiler/frontend/translate/scalar_alu.cpp
|
|
|
|
src/shader_recompiler/frontend/translate/scalar_memory.cpp
|
|
|
|
src/shader_recompiler/frontend/translate/translate.cpp
|
|
|
|
src/shader_recompiler/frontend/translate/translate.h
|
|
|
|
src/shader_recompiler/frontend/translate/vector_alu.cpp
|
|
|
|
src/shader_recompiler/frontend/translate/vector_interpolation.cpp
|
|
|
|
src/shader_recompiler/frontend/translate/vector_memory.cpp
|
|
|
|
src/shader_recompiler/frontend/control_flow_graph.cpp
|
|
|
|
src/shader_recompiler/frontend/control_flow_graph.h
|
|
|
|
src/shader_recompiler/frontend/decode.cpp
|
|
|
|
src/shader_recompiler/frontend/decode.h
|
2024-05-25 14:33:15 +02:00
|
|
|
src/shader_recompiler/frontend/fetch_shader.cpp
|
|
|
|
src/shader_recompiler/frontend/fetch_shader.h
|
2024-05-22 00:35:12 +02:00
|
|
|
src/shader_recompiler/frontend/format.cpp
|
|
|
|
src/shader_recompiler/frontend/instruction.cpp
|
|
|
|
src/shader_recompiler/frontend/instruction.h
|
|
|
|
src/shader_recompiler/frontend/opcodes.h
|
|
|
|
src/shader_recompiler/frontend/structured_control_flow.cpp
|
|
|
|
src/shader_recompiler/frontend/structured_control_flow.h
|
|
|
|
src/shader_recompiler/ir/passes/constant_propogation_pass.cpp
|
2024-05-29 00:28:34 +02:00
|
|
|
src/shader_recompiler/ir/passes/dead_code_elimination_pass.cpp
|
|
|
|
src/shader_recompiler/ir/passes/identity_removal_pass.cpp
|
|
|
|
src/shader_recompiler/ir/passes/ir_passes.h
|
2024-08-14 18:01:17 +02:00
|
|
|
src/shader_recompiler/ir/passes/lower_shared_mem_to_registers.cpp
|
2024-05-29 00:28:34 +02:00
|
|
|
src/shader_recompiler/ir/passes/resource_tracking_pass.cpp
|
|
|
|
src/shader_recompiler/ir/passes/shader_info_collection_pass.cpp
|
|
|
|
src/shader_recompiler/ir/passes/ssa_rewrite_pass.cpp
|
2024-05-22 00:35:12 +02:00
|
|
|
src/shader_recompiler/ir/abstract_syntax_list.h
|
|
|
|
src/shader_recompiler/ir/attribute.cpp
|
|
|
|
src/shader_recompiler/ir/attribute.h
|
|
|
|
src/shader_recompiler/ir/basic_block.cpp
|
|
|
|
src/shader_recompiler/ir/basic_block.h
|
|
|
|
src/shader_recompiler/ir/condition.h
|
|
|
|
src/shader_recompiler/ir/ir_emitter.cpp
|
|
|
|
src/shader_recompiler/ir/ir_emitter.h
|
|
|
|
src/shader_recompiler/ir/microinstruction.cpp
|
|
|
|
src/shader_recompiler/ir/opcodes.cpp
|
|
|
|
src/shader_recompiler/ir/opcodes.h
|
|
|
|
src/shader_recompiler/ir/opcodes.inc
|
|
|
|
src/shader_recompiler/ir/post_order.cpp
|
|
|
|
src/shader_recompiler/ir/post_order.h
|
|
|
|
src/shader_recompiler/ir/program.cpp
|
|
|
|
src/shader_recompiler/ir/program.h
|
|
|
|
src/shader_recompiler/ir/reg.h
|
|
|
|
src/shader_recompiler/ir/type.cpp
|
|
|
|
src/shader_recompiler/ir/type.h
|
|
|
|
src/shader_recompiler/ir/value.cpp
|
|
|
|
src/shader_recompiler/ir/value.h
|
|
|
|
)
|
|
|
|
|
2024-04-30 00:23:28 +02:00
|
|
|
set(VIDEO_CORE src/video_core/amdgpu/liverpool.cpp
|
|
|
|
src/video_core/amdgpu/liverpool.h
|
|
|
|
src/video_core/amdgpu/pixel_format.cpp
|
|
|
|
src/video_core/amdgpu/pixel_format.h
|
|
|
|
src/video_core/amdgpu/pm4_cmds.h
|
|
|
|
src/video_core/amdgpu/pm4_opcodes.h
|
|
|
|
src/video_core/amdgpu/resource.h
|
2024-08-08 14:02:10 +02:00
|
|
|
src/video_core/buffer_cache/buffer.cpp
|
|
|
|
src/video_core/buffer_cache/buffer.h
|
|
|
|
src/video_core/buffer_cache/buffer_cache.cpp
|
|
|
|
src/video_core/buffer_cache/buffer_cache.h
|
|
|
|
src/video_core/buffer_cache/memory_tracker_base.h
|
|
|
|
src/video_core/buffer_cache/range_set.h
|
|
|
|
src/video_core/buffer_cache/word_manager.h
|
2024-05-22 00:35:12 +02:00
|
|
|
src/video_core/renderer_vulkan/liverpool_to_vk.cpp
|
|
|
|
src/video_core/renderer_vulkan/liverpool_to_vk.h
|
2024-04-14 16:09:51 +02:00
|
|
|
src/video_core/renderer_vulkan/renderer_vulkan.cpp
|
|
|
|
src/video_core/renderer_vulkan/renderer_vulkan.h
|
|
|
|
src/video_core/renderer_vulkan/vk_common.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_common.h
|
2024-05-29 00:28:34 +02:00
|
|
|
src/video_core/renderer_vulkan/vk_compute_pipeline.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_compute_pipeline.h
|
2024-04-14 16:09:51 +02:00
|
|
|
src/video_core/renderer_vulkan/vk_descriptor_update_queue.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_descriptor_update_queue.h
|
2024-05-22 00:35:12 +02:00
|
|
|
src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_graphics_pipeline.h
|
2024-04-14 16:09:51 +02:00
|
|
|
src/video_core/renderer_vulkan/vk_instance.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_instance.h
|
|
|
|
src/video_core/renderer_vulkan/vk_master_semaphore.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_master_semaphore.h
|
2024-05-22 00:35:12 +02:00
|
|
|
src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_pipeline_cache.h
|
2024-04-14 16:09:51 +02:00
|
|
|
src/video_core/renderer_vulkan/vk_platform.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_platform.h
|
2024-05-22 00:35:12 +02:00
|
|
|
src/video_core/renderer_vulkan/vk_rasterizer.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_rasterizer.h
|
2024-04-14 16:09:51 +02:00
|
|
|
src/video_core/renderer_vulkan/vk_resource_pool.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_resource_pool.h
|
|
|
|
src/video_core/renderer_vulkan/vk_scheduler.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_scheduler.h
|
|
|
|
src/video_core/renderer_vulkan/vk_shader_util.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_shader_util.h
|
|
|
|
src/video_core/renderer_vulkan/vk_swapchain.cpp
|
|
|
|
src/video_core/renderer_vulkan/vk_swapchain.h
|
|
|
|
src/video_core/texture_cache/image.cpp
|
|
|
|
src/video_core/texture_cache/image.h
|
2024-07-20 11:51:21 +02:00
|
|
|
src/video_core/texture_cache/image_info.cpp
|
|
|
|
src/video_core/texture_cache/image_info.h
|
2024-04-14 16:09:51 +02:00
|
|
|
src/video_core/texture_cache/image_view.cpp
|
|
|
|
src/video_core/texture_cache/image_view.h
|
2024-05-27 00:07:46 +02:00
|
|
|
src/video_core/texture_cache/sampler.cpp
|
|
|
|
src/video_core/texture_cache/sampler.h
|
2024-04-14 16:09:51 +02:00
|
|
|
src/video_core/texture_cache/texture_cache.cpp
|
|
|
|
src/video_core/texture_cache/texture_cache.h
|
|
|
|
src/video_core/texture_cache/tile_manager.cpp
|
|
|
|
src/video_core/texture_cache/tile_manager.h
|
|
|
|
src/video_core/texture_cache/types.h
|
2024-08-08 14:02:10 +02:00
|
|
|
src/video_core/page_manager.cpp
|
|
|
|
src/video_core/page_manager.h
|
|
|
|
src/video_core/multi_level_page_table.h
|
2024-07-28 15:54:09 +02:00
|
|
|
src/video_core/renderdoc.cpp
|
|
|
|
src/video_core/renderdoc.h
|
2024-02-29 23:00:35 +01:00
|
|
|
)
|
2024-04-13 23:35:48 +02:00
|
|
|
|
2024-04-13 23:41:51 +02:00
|
|
|
set(INPUT src/input/controller.cpp
|
|
|
|
src/input/controller.h
|
2024-02-29 23:00:35 +01:00
|
|
|
)
|
|
|
|
|
2024-06-11 04:42:21 +02:00
|
|
|
set(EMULATOR src/emulator.cpp
|
|
|
|
src/emulator.h
|
|
|
|
src/sdl_window.h
|
|
|
|
src/sdl_window.cpp
|
|
|
|
)
|
|
|
|
|
2024-07-30 21:41:31 +02:00
|
|
|
# The above is shared in SDL and Qt version (TODO share them all)
|
2024-04-13 23:35:48 +02:00
|
|
|
|
|
|
|
if(ENABLE_QT_GUI)
|
|
|
|
qt_add_resources(RESOURCE_FILES src/shadps4.qrc)
|
2024-04-15 19:35:49 +02:00
|
|
|
|
2024-08-15 11:33:10 +02:00
|
|
|
set(QT_GUI src/qt_gui/main_window_ui.h
|
|
|
|
src/qt_gui/main_window.cpp
|
|
|
|
src/qt_gui/main_window.h
|
|
|
|
src/qt_gui/gui_context_menus.h
|
|
|
|
src/qt_gui/game_list_utils.h
|
|
|
|
src/qt_gui/game_info.cpp
|
|
|
|
src/qt_gui/game_info.h
|
|
|
|
src/qt_gui/game_list_frame.cpp
|
|
|
|
src/qt_gui/game_list_frame.h
|
|
|
|
src/qt_gui/game_grid_frame.cpp
|
|
|
|
src/qt_gui/game_grid_frame.h
|
|
|
|
src/qt_gui/game_install_dialog.cpp
|
|
|
|
src/qt_gui/game_install_dialog.h
|
|
|
|
src/qt_gui/pkg_viewer.cpp
|
|
|
|
src/qt_gui/pkg_viewer.h
|
|
|
|
src/qt_gui/trophy_viewer.cpp
|
|
|
|
src/qt_gui/trophy_viewer.h
|
|
|
|
src/qt_gui/elf_viewer.cpp
|
|
|
|
src/qt_gui/elf_viewer.h
|
|
|
|
src/qt_gui/main_window_themes.cpp
|
|
|
|
src/qt_gui/main_window_themes.h
|
|
|
|
src/qt_gui/settings_dialog.cpp
|
|
|
|
src/qt_gui/settings_dialog.h
|
|
|
|
src/qt_gui/settings_dialog.ui
|
|
|
|
src/qt_gui/main.cpp
|
|
|
|
${EMULATOR}
|
|
|
|
${RESOURCE_FILES}
|
2024-08-09 16:09:51 +02:00
|
|
|
)
|
2024-04-13 23:35:48 +02:00
|
|
|
endif()
|
|
|
|
|
2024-05-01 12:38:41 +02:00
|
|
|
if (ENABLE_QT_GUI)
|
|
|
|
qt_add_executable(shadps4
|
|
|
|
${AUDIO_CORE}
|
|
|
|
${INPUT}
|
|
|
|
${QT_GUI}
|
|
|
|
${COMMON}
|
|
|
|
${CORE}
|
2024-05-22 00:35:12 +02:00
|
|
|
${SHADER_RECOMPILER}
|
2024-05-01 12:38:41 +02:00
|
|
|
${VIDEO_CORE}
|
2024-06-11 04:42:21 +02:00
|
|
|
${EMULATOR}
|
2024-08-01 04:36:33 +02:00
|
|
|
src/images/shadPS4.icns
|
2024-05-01 12:38:41 +02:00
|
|
|
)
|
2024-02-29 23:00:35 +01:00
|
|
|
else()
|
2024-05-01 12:38:41 +02:00
|
|
|
add_executable(shadps4
|
|
|
|
${AUDIO_CORE}
|
|
|
|
${INPUT}
|
|
|
|
${COMMON}
|
|
|
|
${CORE}
|
2024-05-22 00:35:12 +02:00
|
|
|
${SHADER_RECOMPILER}
|
2024-05-01 12:38:41 +02:00
|
|
|
${VIDEO_CORE}
|
2024-06-11 04:42:21 +02:00
|
|
|
${EMULATOR}
|
2024-05-01 12:38:41 +02:00
|
|
|
src/main.cpp
|
2024-06-15 13:36:07 +02:00
|
|
|
src/emulator.cpp
|
|
|
|
src/emulator.h
|
|
|
|
src/sdl_window.h
|
|
|
|
src/sdl_window.cpp
|
2024-05-01 12:38:41 +02:00
|
|
|
)
|
2024-02-29 23:00:35 +01:00
|
|
|
endif()
|
2023-04-27 18:13:19 +02:00
|
|
|
|
2023-11-05 16:08:47 +01:00
|
|
|
create_target_directory_groups(shadps4)
|
|
|
|
|
2024-07-28 15:54:09 +02:00
|
|
|
target_link_libraries(shadps4 PRIVATE magic_enum::magic_enum fmt::fmt toml11::toml11 tsl::robin_map xbyak::xbyak Tracy::TracyClient RenderDoc::API)
|
2024-06-27 12:46:55 +02:00
|
|
|
target_link_libraries(shadps4 PRIVATE Boost::headers GPUOpen::VulkanMemoryAllocator sirit Vulkan::Headers xxHash::xxhash Zydis::Zydis glslang::SPIRV glslang::glslang SDL3::SDL3)
|
2024-02-29 23:00:35 +01:00
|
|
|
|
2024-07-09 11:18:34 +02:00
|
|
|
if (APPLE)
|
2024-07-15 23:34:54 +02:00
|
|
|
# Reserve system-managed memory space.
|
2024-07-16 01:39:38 +02:00
|
|
|
target_link_options(shadps4 PRIVATE -Wl,-no_pie,-no_fixup_chains,-no_huge,-pagezero_size,0x400000,-segaddr,GUEST_SYSTEM,0x400000,-image_base,0x10000000000)
|
2024-07-15 23:34:54 +02:00
|
|
|
|
2024-07-09 11:18:34 +02:00
|
|
|
# Link MoltenVK for Vulkan support
|
|
|
|
find_library(MOLTENVK MoltenVK REQUIRED)
|
|
|
|
target_link_libraries(shadps4 PRIVATE ${MOLTENVK})
|
2024-07-17 10:56:07 +02:00
|
|
|
|
|
|
|
# Replacement for std::chrono::time_zone
|
|
|
|
target_link_libraries(shadps4 PRIVATE date::date-tz)
|
2024-07-09 11:18:34 +02:00
|
|
|
endif()
|
|
|
|
|
2024-05-01 12:38:41 +02:00
|
|
|
if (NOT ENABLE_QT_GUI)
|
2024-06-27 12:46:55 +02:00
|
|
|
target_link_libraries(shadps4 PRIVATE SDL3::SDL3)
|
2024-02-29 23:00:35 +01:00
|
|
|
endif()
|
|
|
|
|
2024-05-01 12:38:41 +02:00
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND MSVC)
|
2024-06-27 12:46:55 +02:00
|
|
|
target_link_libraries(shadps4 PRIVATE cryptoppwin zlib-ng::zlib)
|
2024-02-29 23:00:35 +01:00
|
|
|
else()
|
2024-06-27 12:46:55 +02:00
|
|
|
target_link_libraries(shadps4 PRIVATE cryptopp::cryptopp zlib-ng::zlib)
|
2024-02-29 23:00:35 +01:00
|
|
|
endif()
|
|
|
|
|
2024-05-01 12:38:41 +02:00
|
|
|
if (ENABLE_QT_GUI)
|
2024-02-29 23:00:35 +01:00
|
|
|
target_link_libraries(shadps4 PRIVATE Qt6::Widgets Qt6::Concurrent)
|
|
|
|
endif()
|
|
|
|
|
2023-11-05 12:22:18 +01:00
|
|
|
if (WIN32)
|
2024-05-09 22:45:09 +02:00
|
|
|
target_link_libraries(shadps4 PRIVATE mincore winpthreads clang_rt.builtins-x86_64.lib)
|
2024-02-27 23:10:34 +01:00
|
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS)
|
|
|
|
add_definitions(-DNOMINMAX -DWIN32_LEAN_AND_MEAN)
|
2024-05-01 12:38:41 +02:00
|
|
|
if (MSVC)
|
|
|
|
# Needed for conflicts with time.h of windows.h
|
|
|
|
add_definitions(-D_TIMESPEC_DEFINED)
|
|
|
|
endif()
|
2024-04-29 14:16:42 +02:00
|
|
|
# Target Windows 10 RS5
|
|
|
|
add_definitions(-DNTDDI_VERSION=0x0A000006 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00)
|
2024-05-16 14:55:50 +02:00
|
|
|
# Increase stack commit area
|
2024-05-02 14:48:48 +02:00
|
|
|
target_link_options(shadps4 PRIVATE /STACK:0x200000,0x200000)
|
2024-05-16 14:55:50 +02: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()
|
2023-11-05 12:22:18 +01:00
|
|
|
endif()
|
2023-05-10 21:22:46 +02:00
|
|
|
|
2024-05-01 12:38:41 +02:00
|
|
|
if (WIN32)
|
2024-02-29 23:00:35 +01:00
|
|
|
target_sources(shadps4 PRIVATE src/shadps4.rc)
|
|
|
|
endif()
|
|
|
|
|
2024-07-10 23:07:34 +02:00
|
|
|
add_definitions(-DBOOST_ASIO_STANDALONE)
|
|
|
|
|
2024-02-29 23:00:35 +01:00
|
|
|
target_include_directories(shadps4 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
2024-06-05 14:31:50 +02: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-05-01 12:38:41 +02:00
|
|
|
if (ENABLE_QT_GUI)
|
|
|
|
set_target_properties(shadps4 PROPERTIES
|
2024-07-30 21:41:31 +02:00
|
|
|
# WIN32_EXECUTABLE ON
|
2024-08-01 04:36:33 +02:00
|
|
|
MACOSX_BUNDLE ON
|
|
|
|
MACOSX_BUNDLE_ICON_FILE shadPS4.icns)
|
|
|
|
|
|
|
|
set_source_files_properties(src/images/shadPS4.icns PROPERTIES
|
|
|
|
MACOSX_PACKAGE_LOCATION Resources)
|
2024-02-29 23:00:35 +01:00
|
|
|
endif()
|