2018-11-19 15:56:30 +01:00
|
|
|
threads_dep = dependency('threads')
|
|
|
|
|
|
|
|
conf.set('HAVE_PTHREAD_SETNAME_NP', compiler.has_function('pthread_setname_np', dependencies: threads_dep))
|
|
|
|
|
2017-12-29 17:12:55 +01:00
|
|
|
thread = static_library(
|
|
|
|
'thread',
|
|
|
|
'Util.cxx',
|
|
|
|
'Thread.cxx',
|
|
|
|
include_directories: inc,
|
|
|
|
dependencies: [
|
2018-11-19 15:56:30 +01:00
|
|
|
threads_dep,
|
2017-12-29 17:12:55 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
thread_dep = declare_dependency(
|
|
|
|
link_with: thread,
|
|
|
|
)
|