From badbd143768d2c246e99545e350d1a6899f21a46 Mon Sep 17 00:00:00 2001 From: Ziemas Date: Thu, 3 Oct 2024 08:04:15 +0200 Subject: [PATCH] cmake: build libpatches --- ee/CMakeLists.txt | 3 ++- ee/sbv/CMakeLists.txt | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 ee/sbv/CMakeLists.txt diff --git a/ee/CMakeLists.txt b/ee/CMakeLists.txt index b7ba17aacca..443973ec604 100644 --- a/ee/CMakeLists.txt +++ b/ee/CMakeLists.txt @@ -6,4 +6,5 @@ set(EE_INC ${PS2SDKSRC_ROOT}/common/include ${PROJECT_SOURCE_DIR}/kernel/include add_subdirectory(kernel) add_subdirectory(libcglue) -add_subdirectory(debug) \ No newline at end of file +add_subdirectory(debug) +add_subdirectory(sbv) \ No newline at end of file diff --git a/ee/sbv/CMakeLists.txt b/ee/sbv/CMakeLists.txt new file mode 100644 index 00000000000..0d8ed223ab5 --- /dev/null +++ b/ee/sbv/CMakeLists.txt @@ -0,0 +1,14 @@ +add_library(patches) +target_include_directories(patches PUBLIC include) +target_include_directories(patches PRIVATE ${EE_INC}) +target_sources(patches PRIVATE src/smem.c src/smod.c src/slib.c + src/patch_enable_lmb.c src/patch_disable_prefix_check.c + src/patch_user_mem_clear.c src/patch_fileio.c src/common.c + #src/erl-support.c TODO +) + +file(GLOB PATCHES_INCLUDE_FILES "include/*.h*") +set_target_properties(patches PROPERTIES PUBLIC_HEADER "${PATCHES_INCLUDE_FILES}") + +install(TARGETS patches) +