this repo has no description
1project(liblaunch)
2
3cmake_minimum_required(VERSION 3.13)
4
5include_directories(
6 ${CMAKE_CURRENT_BINARY_DIR}
7 ${CMAKE_CURRENT_SOURCE_DIR}/../src
8)
9
10add_definitions(-w -nostdinc)
11
12set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks -include ${CMAKE_SOURCE_DIR}/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/fileport.h -ggdb")
13set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib")
14
15mig(job.defs)
16mig(helper.defs)
17
18set(launch_sources
19 libbootstrap.c
20 liblaunch.c
21 libvproc.c
22 ${CMAKE_CURRENT_BINARY_DIR}/jobUser.c
23 ${CMAKE_CURRENT_BINARY_DIR}/helperServer.c
24)
25
26set(DYLIB_INSTALL_NAME "/usr/lib/system/liblaunch.dylib")
27add_circular(launch FAT
28 SOURCES
29 ${launch_sources}
30 SIBLINGS
31 system_c
32 system_kernel
33 system_dyld
34 DEPENDENCIES
35 system_pthread
36 system_malloc
37 platform
38 libdispatch_shared
39 compiler_rt
40)
41
42install(TARGETS launch DESTINATION libexec/darling/usr/lib/system)
43