1if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS}) 2 add_subdirectory(${LIBC_TARGET_OS}) 3endif() 4 5add_entrypoint_object( 6 call_once 7 ALIAS 8 DEPENDS 9 .${LIBC_TARGET_OS}.call_once 10) 11 12add_entrypoint_object( 13 thrd_create 14 ALIAS 15 DEPENDS 16 .${LIBC_TARGET_OS}.thrd_create 17) 18 19add_entrypoint_object( 20 thrd_join 21 ALIAS 22 DEPENDS 23 .${LIBC_TARGET_OS}.thrd_join 24) 25 26add_entrypoint_object( 27 mtx_init 28 SRCS 29 mtx_init.cpp 30 HDRS 31 mtx_init.h 32 DEPENDS 33 libc.include.threads 34 libc.src.__support.threads.mutex 35) 36 37add_entrypoint_object( 38 mtx_destroy 39 SRCS 40 mtx_destroy.cpp 41 HDRS 42 mtx_destroy.h 43 DEPENDS 44 libc.include.threads 45 libc.src.__support.threads.mutex 46) 47 48add_entrypoint_object( 49 mtx_lock 50 SRCS 51 mtx_lock.cpp 52 HDRS 53 mtx_lock.h 54 DEPENDS 55 libc.include.threads 56 libc.src.__support.threads.mutex 57) 58 59add_entrypoint_object( 60 mtx_unlock 61 SRCS 62 mtx_unlock.cpp 63 HDRS 64 mtx_unlock.h 65 DEPENDS 66 libc.include.threads 67 libc.src.__support.threads.mutex 68) 69 70add_entrypoint_object( 71 cnd_init 72 ALIAS 73 DEPENDS 74 .${LIBC_TARGET_OS}.cnd_init 75) 76 77add_entrypoint_object( 78 cnd_destroy 79 ALIAS 80 DEPENDS 81 .${LIBC_TARGET_OS}.cnd_destroy 82) 83 84add_entrypoint_object( 85 cnd_wait 86 ALIAS 87 DEPENDS 88 .${LIBC_TARGET_OS}.cnd_wait 89) 90 91add_entrypoint_object( 92 cnd_signal 93 ALIAS 94 DEPENDS 95 .${LIBC_TARGET_OS}.cnd_signal 96) 97 98add_entrypoint_object( 99 cnd_broadcast 100 ALIAS 101 DEPENDS 102 .${LIBC_TARGET_OS}.cnd_broadcast 103) 104