2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-04-06 01:11:15 +08:00
|
|
|
|
|
|
|
add_library(PTHREAD INTERFACE)
|
|
|
|
|
2018-06-15 02:21:18 +08:00
|
|
|
target_include_directories(PTHREAD INTERFACE ${ZEPHYR_BASE}/include/posix)
|
2018-04-06 01:11:15 +08:00
|
|
|
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources(pthread_common.c)
|
2018-09-28 14:15:47 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC pthread_cond.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC pthread_mutex.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC pthread_barrier.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC pthread.c)
|
2018-04-06 01:11:15 +08:00
|
|
|
zephyr_library_sources(pthread_sched.c)
|
|
|
|
zephyr_library_sources(clock.c)
|
|
|
|
zephyr_library_sources(sleep.c)
|
|
|
|
zephyr_library_sources(timer.c)
|
2018-09-28 14:15:47 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC pthread_rwlock.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC semaphore.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_PTHREAD_IPC pthread_key.c)
|
2018-04-06 01:11:15 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_POSIX_MQUEUE mqueue.c)
|
2018-05-03 19:47:22 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_POSIX_FS fs.c)
|
2018-04-06 01:11:15 +08:00
|
|
|
|
|
|
|
zephyr_library_link_libraries(PTHREAD)
|
|
|
|
target_link_libraries(PTHREAD INTERFACE zephyr_interface)
|