]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/stacktrace/build/Jamfile.v2
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / stacktrace / build / Jamfile.v2
1 # Copyright (C) 2016-2017, Antony Polukhin.
2 #
3 # Use, modification and distribution is subject to the Boost Software License,
4 # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 # http://www.boost.org/LICENSE_1_0.txt)
6 #
7
8 project
9 : source-location .
10 : requirements
11 <target-os>linux:<cxxflags>"-fvisibility=hidden"
12 ;
13
14 lib dl ;
15 lib gcc_s ;
16 lib Dbgeng ;
17 lib ole32 ;
18
19
20 local LIBBACKTRACE_PATH = [ modules.peek : LIBBACKTRACE_PATH ] ;
21 lib backtrace
22 :
23 : <search>$(LIBBACKTRACE_PATH)/lib <link>static
24 :
25 : <include>$(LIBBACKTRACE_PATH)/include
26 ;
27
28 actions mp_simple_run_action
29 {
30 $(>) > $(<)
31 }
32
33 rule mp-run-simple ( sources + : args * : input-files * : requirements * : target-name )
34 {
35 exe $(target-name)_exe : $(sources) : $(requirements) ;
36 explicit $(target-name)_exe ;
37 make $(target-name).output : $(target-name)_exe : @mp_simple_run_action ;
38 explicit $(target-name).output ;
39 alias $(target-name) : $(target-name).output ;
40 }
41
42 mp-run-simple has_backtrace.cpp : : : <library>backtrace : libbacktrace ;
43 explicit libbacktrace ;
44
45 mp-run-simple has_addr2line.cpp : : : : addr2line ;
46 explicit addr2line ;
47
48 mp-run-simple has_windbg.cpp : : : <library>Dbgeng <library>ole32 : WinDbg ;
49 explicit WinDbg ;
50
51 mp-run-simple has_windbg_cached.cpp : : : <library>Dbgeng <library>ole32 : WinDbgCached ;
52 explicit WinDbgCached ;
53
54 lib boost_stacktrace_noop
55 : # sources
56 ../src/noop.cpp
57 : # requirements
58 <warnings>all
59 <link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
60 : # default build
61 : # usage-requirements
62 #<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
63 ;
64
65 boost-install boost_stacktrace_noop ;
66
67 lib boost_stacktrace_backtrace
68 : # sources
69 ../src/backtrace.cpp
70 : # requirements
71 <warnings>all
72 <target-os>linux:<library>dl
73 <library>backtrace
74 <link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
75 [ check-target-builds ../build//libbacktrace : : <build>no ]
76 : # default build
77 : # usage-requirements
78 #<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
79 ;
80
81 boost-install boost_stacktrace_backtrace ;
82
83 lib boost_stacktrace_addr2line
84 : # sources
85 ../src/addr2line.cpp
86 : # requirements
87 <warnings>all
88 <target-os>linux:<library>dl
89 <link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
90 [ check-target-builds ../build//addr2line : : <build>no ]
91 : # default build
92 : # usage-requirements
93 #<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
94 ;
95
96 boost-install boost_stacktrace_addr2line ;
97
98 lib boost_stacktrace_basic
99 : # sources
100 ../src/basic.cpp
101 : # requirements
102 <warnings>all
103 <target-os>linux:<library>dl
104 <link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
105 [ check-target-builds ../build//WinDbg : <build>no ]
106 : # default build
107 : # usage-requirements
108 #<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
109 ;
110
111 boost-install boost_stacktrace_basic ;
112
113 lib boost_stacktrace_windbg
114 : # sources
115 ../src/windbg.cpp
116 : # requirements
117 <warnings>all
118 <library>Dbgeng <library>ole32
119 <link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
120 [ check-target-builds ../build//WinDbg : : <build>no ]
121 : # default build
122 : # usage-requirements
123 #<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
124 ;
125
126 boost-install boost_stacktrace_windbg ;
127
128 lib boost_stacktrace_windbg_cached
129 : # sources
130 ../src/windbg_cached.cpp
131 : # requirements
132 <warnings>all
133 <library>Dbgeng <library>ole32
134 <link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
135 [ check-target-builds ../build//WinDbgCached : : <build>no ]
136 : # default build
137 : # usage-requirements
138 #<link>shared:<define>BOOST_STACKTRACE_DYN_LINK=1
139 ;
140
141 boost-install boost_stacktrace_windbg_cached ;
142