2021-01-27 16:26:19 -05:00
|
|
|
project(libreborn)
|
|
|
|
|
2022-05-13 22:36:12 -04:00
|
|
|
add_library(reborn-util STATIC src/util/elf.c src/util/exec.c src/util/string.c src/util/util.c)
|
2022-03-14 19:09:25 -04:00
|
|
|
target_include_directories(reborn-util PUBLIC include)
|
2021-01-27 16:26:19 -05:00
|
|
|
|
2021-06-17 17:32:24 -04:00
|
|
|
if(BUILD_ARM_COMPONENTS)
|
2022-03-14 19:09:25 -04:00
|
|
|
add_library(reborn-patch SHARED src/patch/patch.c)
|
2022-05-13 22:36:12 -04:00
|
|
|
target_link_libraries(reborn-patch dl pthread reborn-util)
|
2022-03-14 19:09:25 -04:00
|
|
|
target_compile_definitions(reborn-patch PUBLIC -DREBORN_HAS_PATCH_CODE)
|
2021-06-17 17:32:24 -04:00
|
|
|
# Install
|
2022-03-14 19:09:25 -04:00
|
|
|
install(TARGETS reborn-patch DESTINATION "${MCPI_LIB_DIR}")
|
2021-06-17 17:32:24 -04:00
|
|
|
endif()
|