mirror of
https://github.com/darlinghq/darling-keymgr.git
synced 2024-11-27 06:10:33 +00:00
bc92c5d0da
Source is based keymgr-30
33 lines
721 B
CMake
33 lines
721 B
CMake
project(keymgr)
|
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc")
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib")
|
|
|
|
add_definitions(-DHAVE_STDINT_H=1)
|
|
|
|
set(keymgr_sources
|
|
keymgr.c
|
|
)
|
|
|
|
set(DYLIB_INSTALL_NAME "/usr/lib/system/libkeymgr.dylib")
|
|
add_circular(keymgr FAT
|
|
SOURCES
|
|
${keymgr_sources}
|
|
SIBLINGS
|
|
system_c
|
|
system_dyld
|
|
system_malloc
|
|
system_pthread
|
|
platform
|
|
system_kernel
|
|
)
|
|
#target_link_libraries(keymgr PRIVATE system_c system_dyld system_malloc system_pthread)
|
|
#make_fat(keymgr)
|
|
|
|
add_darling_static_library(keymgr_static SOURCES ${keymgr_sources})
|
|
make_fat(keymgr_static)
|
|
|
|
install(TARGETS keymgr DESTINATION libexec/darling/usr/lib/system)
|