Skip to content

Commit

Permalink
cmake: build libpatches
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziemas committed Oct 3, 2024
1 parent fda166f commit 515c504
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ee/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
add_subdirectory(debug)
add_subdirectory(sbv)
14 changes: 14 additions & 0 deletions ee/sbv/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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(kernel PROPERTIES PUBLIC_HEADER "${PATCHES_INCLUDE_FILES}")

install(TARGETS patches)

0 comments on commit 515c504

Please sign in to comment.