1 | # Copyright (C) 2001-2003 |
---|
2 | # William E. Kempf |
---|
3 | # |
---|
4 | # Permission to use, copy, modify, distribute and sell this software |
---|
5 | # and its documentation for any purpose is hereby granted without fee, |
---|
6 | # provided that the above copyright notice appear in all copies and |
---|
7 | # that both that copyright notice and this permission notice appear |
---|
8 | # in supporting documentation. William E. Kempf makes no representations |
---|
9 | # about the suitability of this software for any purpose. |
---|
10 | # It is provided "as is" without express or implied warranty. |
---|
11 | |
---|
12 | # Additional configuration variables used: |
---|
13 | # 1. PTW32_DIR and PTW32_LIB may be used on Win32 platforms to specify that |
---|
14 | # a version of Boost.Threads should be built that uses the |
---|
15 | # the pthreads-win32 library instead of the Win32 native threading APIs. |
---|
16 | # This feature is mostly used for testing and it's generally recommended |
---|
17 | # that you use the Win32 native threading libraries instead. |
---|
18 | # |
---|
19 | # PTW32_Dir should be set to the installation path of the |
---|
20 | # pthreads-win32 library and PTW32_LIB should be set to the name of the |
---|
21 | # library variant to link against (see the pthreads-win32 documentation). |
---|
22 | # Example: jam -sPTW32_DIR="c:\pthreads-win32" -sPTW32_LIB="pthreadVCE.lib" |
---|
23 | # Alternately, environment variables having the names PTW32_DIR and PTW32_LIB |
---|
24 | # can be set instead of passing these values on the command line. |
---|
25 | # |
---|
26 | # In either case, libraries having the names boost_thread_ptw32<tags>.dll |
---|
27 | # and libboost_thread_ptw32<tags>.lib will be built |
---|
28 | # in addition to the usual boost_thread<tags>.dll and |
---|
29 | # libboost_thread<tags>.lib. Link with one of the ptw32 versions |
---|
30 | # of the Boost.Threads libraries to use the version of Boost.Threads |
---|
31 | # that is implemented using pthreads-win32 (you will need to #define |
---|
32 | # BOOST_THREAD_NO_LIB or BOOST_ALL_NO_LIB to disable auto-linking |
---|
33 | # if your platform supports auto-linking in order to prevent |
---|
34 | # your build from attempting to link to two different versions of |
---|
35 | # the Boost.Threads library). |
---|
36 | |
---|
37 | # Do some OS-specific setup |
---|
38 | { |
---|
39 | #thread library name |
---|
40 | boost_thread_lib_name = boost_thread ; |
---|
41 | |
---|
42 | #thread library name with "pthreads-win32" library |
---|
43 | boost_thread_lib_name_ptw32 = boost_thread_ptw32 ; |
---|
44 | |
---|
45 | if $(NT) |
---|
46 | { |
---|
47 | if $(PTW32_DIR) |
---|
48 | { |
---|
49 | if $(PTW32_LIB) |
---|
50 | { |
---|
51 | boost_thread_lib_settings_ptw32 = |
---|
52 | <define>BOOST_HAS_PTHREADS |
---|
53 | <define>PtW32NoCatchWarn |
---|
54 | <include>$(PTW32_DIR)/pre-built/include |
---|
55 | <library-file>$(PTW32_DIR)/pre-built/lib/$(PTW32_LIB) |
---|
56 | ; |
---|
57 | } |
---|
58 | } |
---|
59 | } |
---|
60 | |
---|
61 | template thread_base |
---|
62 | : ## sources ## |
---|
63 | : ## requirements ## |
---|
64 | <sysinclude>$(BOOST_ROOT) |
---|
65 | <threading>multi |
---|
66 | <borland><*><cxxflags>-w-8004 |
---|
67 | <borland><*><cxxflags>-w-8057 |
---|
68 | : ## default build ## |
---|
69 | ; |
---|
70 | } |
---|