mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 07:31:33 +01:00
This mechanism isn't perfect, and sometimes it will guess wrong, but it will help our automation.
30 lines
822 B
Text
30 lines
822 B
Text
|
|
noinst_LIBRARIES += src/lib/libtor-thread.a
|
|
|
|
if UNITTESTS_ENABLED
|
|
noinst_LIBRARIES += src/lib/libtor-thread-testing.a
|
|
endif
|
|
|
|
if THREADS_PTHREADS
|
|
threads_impl_source=src/lib/thread/compat_pthreads.c
|
|
endif
|
|
if THREADS_WIN32
|
|
threads_impl_source=src/lib/thread/compat_winthreads.c
|
|
endif
|
|
|
|
# ADD_C_FILE: INSERT SOURCES HERE.
|
|
src_lib_libtor_thread_a_SOURCES = \
|
|
src/lib/thread/compat_threads.c \
|
|
src/lib/thread/numcpus.c \
|
|
$(threads_impl_source)
|
|
|
|
src_lib_libtor_thread_testing_a_SOURCES = \
|
|
$(src_lib_libtor_thread_a_SOURCES)
|
|
src_lib_libtor_thread_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
|
src_lib_libtor_thread_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
|
|
|
|
# ADD_C_FILE: INSERT HEADERS HERE.
|
|
noinst_HEADERS += \
|
|
src/lib/thread/numcpus.h \
|
|
src/lib/thread/thread_sys.h \
|
|
src/lib/thread/threads.h
|