]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/thrift/lib/cpp/Makefile.am
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / jaegertracing / thrift / lib / cpp / Makefile.am
CommitLineData
f67539c2
TL
1#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
20AUTOMAKE_OPTIONS = subdir-objects nostdinc
21
22moc__%.cpp: %.h
23 $(QT5_MOC) $(QT5_CFLAGS) $< -o $@
24
25SUBDIRS = .
26
27if WITH_TESTS
28SUBDIRS += test
29endif
30
31pkgconfigdir = $(libdir)/pkgconfig
32
33lib_LTLIBRARIES = libthrift.la
34pkgconfig_DATA = thrift.pc
35libthrift_la_LDFLAGS = -release $(VERSION)
36libthrift_la_LIBADD = $(BOOST_LDFLAGS) $(OPENSSL_LDFLAGS) $(OPENSSL_LIBS)
37
38## We only build the extra libraries if we have the dependencies,
39## but we install all of the headers unconditionally.
40if AMX_HAVE_LIBEVENT
41lib_LTLIBRARIES += libthriftnb.la
42pkgconfig_DATA += thrift-nb.pc
43endif
44if AMX_HAVE_ZLIB
45lib_LTLIBRARIES += libthriftz.la
46pkgconfig_DATA += thrift-z.pc
47endif
48if AMX_HAVE_QT5
49lib_LTLIBRARIES += libthriftqt5.la
50pkgconfig_DATA += thrift-qt5.pc
51endif
52
53AM_CXXFLAGS = -Wall -Wextra -pedantic
54AM_CPPFLAGS = $(BOOST_CPPFLAGS) $(OPENSSL_INCLUDES) -I$(srcdir)/src -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
55
56# Define the source files for the module
57
58libthrift_la_SOURCES = src/thrift/TApplicationException.cpp \
59 src/thrift/TOutput.cpp \
60 src/thrift/VirtualProfiling.cpp \
61 src/thrift/async/TAsyncChannel.cpp \
62 src/thrift/async/TAsyncProtocolProcessor.cpp \
63 src/thrift/async/TConcurrentClientSyncInfo.cpp \
64 src/thrift/concurrency/ThreadManager.cpp \
65 src/thrift/concurrency/TimerManager.cpp \
66 src/thrift/processor/PeekProcessor.cpp \
67 src/thrift/protocol/TDebugProtocol.cpp \
68 src/thrift/protocol/TJSONProtocol.cpp \
69 src/thrift/protocol/TBase64Utils.cpp \
70 src/thrift/protocol/TMultiplexedProtocol.cpp \
71 src/thrift/protocol/TProtocol.cpp \
72 src/thrift/transport/TTransportException.cpp \
73 src/thrift/transport/TFDTransport.cpp \
74 src/thrift/transport/TFileTransport.cpp \
75 src/thrift/transport/TSimpleFileTransport.cpp \
76 src/thrift/transport/THttpTransport.cpp \
77 src/thrift/transport/THttpClient.cpp \
78 src/thrift/transport/THttpServer.cpp \
79 src/thrift/transport/TSocket.cpp \
80 src/thrift/transport/TPipe.cpp \
81 src/thrift/transport/TPipeServer.cpp \
82 src/thrift/transport/TSSLSocket.cpp \
83 src/thrift/transport/TSocketPool.cpp \
84 src/thrift/transport/TServerSocket.cpp \
85 src/thrift/transport/TSSLServerSocket.cpp \
86 src/thrift/transport/TNonblockingServerSocket.cpp \
87 src/thrift/transport/TNonblockingSSLServerSocket.cpp \
88 src/thrift/transport/TTransportUtils.cpp \
89 src/thrift/transport/TBufferTransports.cpp \
90 src/thrift/server/TConnectedClient.cpp \
91 src/thrift/server/TServer.cpp \
92 src/thrift/server/TServerFramework.cpp \
93 src/thrift/server/TSimpleServer.cpp \
94 src/thrift/server/TThreadPoolServer.cpp \
95 src/thrift/server/TThreadedServer.cpp
96
97libthrift_la_SOURCES += src/thrift/concurrency/Mutex.cpp \
98 src/thrift/concurrency/ThreadFactory.cpp \
99 src/thrift/concurrency/Thread.cpp \
100 src/thrift/concurrency/Monitor.cpp
101
102libthriftnb_la_SOURCES = src/thrift/server/TNonblockingServer.cpp \
103 src/thrift/async/TEvhttpServer.cpp \
104 src/thrift/async/TEvhttpClientChannel.cpp
105
106libthriftz_la_SOURCES = src/thrift/transport/TZlibTransport.cpp \
107 src/thrift/transport/THeaderTransport.cpp \
108 src/thrift/protocol/THeaderProtocol.cpp
109
110
111libthriftqt5_la_MOC = src/thrift/qt/moc__TQTcpServer.cpp
112nodist_libthriftqt5_la_SOURCES = $(libthriftqt5_la_MOC)
113libthriftqt5_la_SOURCES = src/thrift/qt/TQIODeviceTransport.cpp \
114 src/thrift/qt/TQTcpServer.cpp
115CLEANFILES = $(libthriftqt5_la_MOC)
116
117# Flags for the various libraries
118libthriftnb_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBEVENT_CPPFLAGS)
119libthriftz_la_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CPPFLAGS)
120libthriftqt5_la_CPPFLAGS = $(AM_CPPFLAGS) $(QT5_CFLAGS)
121if QT5_REDUCE_RELOCATIONS
122libthriftqt5_la_CPPFLAGS += -fPIC
123endif
124libthriftnb_la_CXXFLAGS = $(AM_CXXFLAGS)
125libthriftz_la_CXXFLAGS = $(AM_CXXFLAGS)
126libthriftqt5_la_CXXFLAGS = $(AM_CXXFLAGS)
127libthriftnb_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS)
128libthriftz_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS) $(ZLIB_LIBS)
129libthriftqt5_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS) $(QT5_LIBS)
130
131include_thriftdir = $(includedir)/thrift
132include_thrift_HEADERS = \
133 $(top_builddir)/config.h \
134 src/thrift/thrift-config.h \
135 src/thrift/thrift_export.h \
136 src/thrift/TDispatchProcessor.h \
137 src/thrift/Thrift.h \
138 src/thrift/TOutput.h \
139 src/thrift/TProcessor.h \
140 src/thrift/TApplicationException.h \
141 src/thrift/TLogging.h \
142 src/thrift/TToString.h \
143 src/thrift/TBase.h
144
145include_concurrencydir = $(include_thriftdir)/concurrency
146include_concurrency_HEADERS = \
147 src/thrift/concurrency/Exception.h \
148 src/thrift/concurrency/Mutex.h \
149 src/thrift/concurrency/Monitor.h \
150 src/thrift/concurrency/ThreadFactory.h \
151 src/thrift/concurrency/Thread.h \
152 src/thrift/concurrency/ThreadManager.h \
153 src/thrift/concurrency/TimerManager.h \
154 src/thrift/concurrency/FunctionRunner.h
155
156include_protocoldir = $(include_thriftdir)/protocol
157include_protocol_HEADERS = \
158 src/thrift/protocol/TBinaryProtocol.h \
159 src/thrift/protocol/TBinaryProtocol.tcc \
160 src/thrift/protocol/TCompactProtocol.h \
161 src/thrift/protocol/TCompactProtocol.tcc \
162 src/thrift/protocol/TDebugProtocol.h \
163 src/thrift/protocol/THeaderProtocol.h \
164 src/thrift/protocol/TBase64Utils.h \
165 src/thrift/protocol/TJSONProtocol.h \
166 src/thrift/protocol/TMultiplexedProtocol.h \
167 src/thrift/protocol/TProtocolDecorator.h \
168 src/thrift/protocol/TProtocolTap.h \
169 src/thrift/protocol/TProtocolTypes.h \
170 src/thrift/protocol/TProtocolException.h \
171 src/thrift/protocol/TVirtualProtocol.h \
172 src/thrift/protocol/TProtocol.h
173
174include_transportdir = $(include_thriftdir)/transport
175include_transport_HEADERS = \
176 src/thrift/transport/PlatformSocket.h \
177 src/thrift/transport/TFDTransport.h \
178 src/thrift/transport/TFileTransport.h \
179 src/thrift/transport/THeaderTransport.h \
180 src/thrift/transport/TSimpleFileTransport.h \
181 src/thrift/transport/TServerSocket.h \
182 src/thrift/transport/TSSLServerSocket.h \
183 src/thrift/transport/TServerTransport.h \
184 src/thrift/transport/TNonblockingServerTransport.h \
185 src/thrift/transport/TNonblockingServerSocket.h \
186 src/thrift/transport/TNonblockingSSLServerSocket.h \
187 src/thrift/transport/THttpTransport.h \
188 src/thrift/transport/THttpClient.h \
189 src/thrift/transport/THttpServer.h \
190 src/thrift/transport/TSocket.h \
191 src/thrift/transport/TPipe.h \
192 src/thrift/transport/TPipeServer.h \
193 src/thrift/transport/TSSLSocket.h \
194 src/thrift/transport/TSocketPool.h \
195 src/thrift/transport/TVirtualTransport.h \
196 src/thrift/transport/TTransport.h \
197 src/thrift/transport/TTransportException.h \
198 src/thrift/transport/TTransportUtils.h \
199 src/thrift/transport/TBufferTransports.h \
200 src/thrift/transport/TShortReadTransport.h \
201 src/thrift/transport/TZlibTransport.h
202
203include_serverdir = $(include_thriftdir)/server
204include_server_HEADERS = \
205 src/thrift/server/TConnectedClient.h \
206 src/thrift/server/TServer.h \
207 src/thrift/server/TServerFramework.h \
208 src/thrift/server/TSimpleServer.h \
209 src/thrift/server/TThreadPoolServer.h \
210 src/thrift/server/TThreadedServer.h \
211 src/thrift/server/TNonblockingServer.h
212
213include_processordir = $(include_thriftdir)/processor
214include_processor_HEADERS = \
215 src/thrift/processor/PeekProcessor.h \
216 src/thrift/processor/StatsProcessor.h \
217 src/thrift/processor/TMultiplexedProcessor.h
218
219include_asyncdir = $(include_thriftdir)/async
220include_async_HEADERS = \
221 src/thrift/async/TAsyncChannel.h \
222 src/thrift/async/TAsyncDispatchProcessor.h \
223 src/thrift/async/TAsyncProcessor.h \
224 src/thrift/async/TAsyncBufferProcessor.h \
225 src/thrift/async/TAsyncProtocolProcessor.h \
226 src/thrift/async/TConcurrentClientSyncInfo.h \
227 src/thrift/async/TEvhttpClientChannel.h \
228 src/thrift/async/TEvhttpServer.h
229
230include_qtdir = $(include_thriftdir)/qt
231include_qt_HEADERS = \
232 src/thrift/qt/TQIODeviceTransport.h \
233 src/thrift/qt/TQTcpServer.h
234
235WINDOWS_DIST = \
236 src/thrift/windows \
237 thrift.sln \
238 libthrift.vcxproj \
239 libthrift.vcxproj.filters \
240 libthriftnb.vcxproj \
241 libthriftnb.vcxproj.filters \
242 3rdparty.props
243
244EXTRA_DIST = \
245 CMakeLists.txt \
246 coding_standards.md \
247 README.md \
248 thrift-nb.pc.in \
249 thrift.pc.in \
250 thrift-z.pc.in \
251 thrift-qt5.pc.in \
252 src/thrift/qt/CMakeLists.txt \
253 $(WINDOWS_DIST)
254
255style-local:
256 $(CPPSTYLE_CMD)