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 | # Boost.Threads build Jamfile |
---|
13 | # |
---|
14 | # Additional configuration variables used: |
---|
15 | # See threads.jam. |
---|
16 | |
---|
17 | # Declare the location of this subproject relative to the root. |
---|
18 | subproject libs/thread/build ; |
---|
19 | |
---|
20 | # Include threads.jam for Boost.Threads global build information. |
---|
21 | # This greatly simplifies the Jam code needed to configure the build |
---|
22 | # for the various Win32 build types. |
---|
23 | import ./threads ; |
---|
24 | |
---|
25 | { |
---|
26 | CPP_SOURCES = |
---|
27 | barrier |
---|
28 | condition |
---|
29 | exceptions |
---|
30 | mutex |
---|
31 | once |
---|
32 | recursive_mutex |
---|
33 | thread |
---|
34 | tss_hooks |
---|
35 | tss_dll |
---|
36 | tss_pe |
---|
37 | tss |
---|
38 | xtime |
---|
39 | ; |
---|
40 | |
---|
41 | template boost_thread_lib_base |
---|
42 | : ## sources ## |
---|
43 | <template>thread_base |
---|
44 | ../src/$(CPP_SOURCES).cpp |
---|
45 | : ## requirements ## |
---|
46 | <sysinclude>$(BOOST_ROOT) #:should be unnecessary (because already included in thread_base) |
---|
47 | <define>BOOST_THREAD_BUILD_LIB=1 |
---|
48 | # the common names rule ensures that the library will |
---|
49 | # be named according to the rules used by the install |
---|
50 | # and auto-link features: |
---|
51 | common-variant-tag |
---|
52 | : ## default build ## |
---|
53 | ; |
---|
54 | |
---|
55 | template boost_thread_dll_base |
---|
56 | : ## sources ## |
---|
57 | <template>thread_base |
---|
58 | ../src/$(CPP_SOURCES).cpp |
---|
59 | : ## requirements ## |
---|
60 | <sysinclude>$(BOOST_ROOT) #:should be unnecessary (because already included in thread_base) |
---|
61 | <define>BOOST_THREAD_BUILD_DLL=1 |
---|
62 | <runtime-link>dynamic |
---|
63 | # the common names rule ensures that the library will |
---|
64 | # be named according to the rules used by the install |
---|
65 | # and auto-link features: |
---|
66 | common-variant-tag |
---|
67 | : ## default build ## |
---|
68 | ; |
---|
69 | |
---|
70 | lib $(boost_thread_lib_name) |
---|
71 | : ## sources ## |
---|
72 | <template>boost_thread_lib_base |
---|
73 | : ## requirements ## |
---|
74 | <define>BOOST_THREAD_LIB_NAME=$(boost_thread_lib_name) |
---|
75 | : ## default build ## |
---|
76 | ; |
---|
77 | |
---|
78 | dll $(boost_thread_lib_name) |
---|
79 | : ## sources ## |
---|
80 | <template>boost_thread_dll_base |
---|
81 | : ## requirements ## |
---|
82 | <define>BOOST_THREAD_LIB_NAME=$(boost_thread_lib_name) |
---|
83 | : ## default build ## |
---|
84 | ; |
---|
85 | |
---|
86 | stage bin-stage |
---|
87 | : <dll>$(boost_thread_lib_name) |
---|
88 | <lib>$(boost_thread_lib_name) |
---|
89 | ; |
---|
90 | |
---|
91 | install thread lib |
---|
92 | : <dll>$(boost_thread_lib_name) |
---|
93 | <lib>$(boost_thread_lib_name) |
---|
94 | ; |
---|
95 | |
---|
96 | if $(boost_thread_lib_settings_ptw32) |
---|
97 | { |
---|
98 | lib $(boost_thread_lib_name_ptw32) |
---|
99 | : ## sources ## |
---|
100 | <template>boost_thread_lib_base |
---|
101 | : ## requirements ## |
---|
102 | <define>BOOST_THREAD_LIB_NAME=$(boost_thread_lib_name_ptw32) |
---|
103 | $(boost_thread_lib_settings_ptw32) |
---|
104 | : ## default build ## |
---|
105 | ; |
---|
106 | |
---|
107 | dll $(boost_thread_lib_name_ptw32) |
---|
108 | : ## sources ## |
---|
109 | <template>boost_thread_dll_base |
---|
110 | : ## requirements ## |
---|
111 | <define>BOOST_THREAD_LIB_NAME=$(boost_thread_lib_name_ptw32) |
---|
112 | $(boost_thread_lib_settings_ptw32) |
---|
113 | : ## default build ## |
---|
114 | ; |
---|
115 | |
---|
116 | stage bin-stage |
---|
117 | : <dll>$(boost_thread_lib_name_ptw32) |
---|
118 | <lib>$(boost_thread_lib_name_ptw32) |
---|
119 | ; |
---|
120 | |
---|
121 | install thread lib |
---|
122 | : <dll>$(boost_thread_lib_name_ptw32) |
---|
123 | <lib>$(boost_thread_lib_name_ptw32) |
---|
124 | ; |
---|
125 | } |
---|
126 | } |
---|