mirror of
https://github.com/boostorg/thread.git
synced 2026-01-24 06:22:12 +00:00
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
# (C) Copyright William E. Kempf 2001. Permission to copy, use, modify, sell and
|
|
# distribute this software is granted provided this copyright notice appears
|
|
# in all copies. This software is provided "as is" without express or implied
|
|
# warranty, and with no claim as to its suitability for any purpose.
|
|
#
|
|
# Boost.Threads build and test Jamfile
|
|
#
|
|
# Declares the following targets:
|
|
# 1. libboost_thread, a static link library.
|
|
# 1a. On Win32, a dynamic link library libboost_threadmon,
|
|
# which must be used in conjunction with libboost_thread.
|
|
|
|
# declare the location of this subproject relative to the root
|
|
subproject libs/thread/build ;
|
|
|
|
#######################
|
|
|
|
#
|
|
# Declare the Boost.Threads static link library.
|
|
#
|
|
|
|
# For Win32 we need to build a special DLL, libboost_threadmon, to handle
|
|
# TSS destruction.
|
|
if $(NT)
|
|
{
|
|
if $(PTW32)
|
|
{
|
|
PTW32_REQUIREMENTS = <define>BOOST_HAS_PTHREADS <define>PtW32NoCatchWarn ;
|
|
}
|
|
else
|
|
{
|
|
dll libboost_threadmon : ../src/threadmon.cpp
|
|
# requirements
|
|
: <include>$(BOOST_ROOT)
|
|
<threading>multi
|
|
: debug release ;
|
|
}
|
|
}
|
|
|
|
# Base names of the source files for libboost_thread
|
|
CPP_SOURCES =
|
|
condition mutex recursive_mutex thread tss xtime once exceptions ;
|
|
|
|
lib libboost_thread : ../src/$(CPP_SOURCES).cpp
|
|
# requirements
|
|
: <include>$(BOOST_ROOT)
|
|
$(PTW32_REQUIREMENTS)
|
|
<threading>multi
|
|
: debug release ;
|