blob: 253b68e8c25abf4bd606c3e63b5186869c34133d [file] [log] [blame]
David Reissea2cba82009-03-30 21:35:00 +00001#
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
David Reiss351e22b2010-08-31 16:51:19 +000020SUBDIRS = . test
21
Mark Sleeb16074d2007-11-28 05:54:33 +000022pkgconfigdir = $(libdir)/pkgconfig
23
David Reiss79ae0f82007-09-17 21:15:47 +000024lib_LTLIBRARIES = libthrift.la
Mark Sleeb16074d2007-11-28 05:54:33 +000025pkgconfig_DATA = thrift.pc
26
David Reiss79ae0f82007-09-17 21:15:47 +000027## We only build the extra libraries if we have the dependencies,
28## but we install all of the headers unconditionally.
29if AMX_HAVE_LIBEVENT
30lib_LTLIBRARIES += libthriftnb.la
Mark Sleeb16074d2007-11-28 05:54:33 +000031pkgconfig_DATA += thrift-nb.pc
David Reiss79ae0f82007-09-17 21:15:47 +000032endif
David Reissfaebedd2007-09-17 23:20:38 +000033if AMX_HAVE_ZLIB
34lib_LTLIBRARIES += libthriftz.la
Mark Sleeb16074d2007-11-28 05:54:33 +000035pkgconfig_DATA += thrift-z.pc
David Reissfaebedd2007-09-17 23:20:38 +000036endif
Marc Slemko6f038a72006-08-03 18:58:09 +000037
David Reissc6c64982008-06-11 01:16:45 +000038AM_CXXFLAGS = -Wall
39AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(srcdir)/src
Marc Slemko9d4a3e22006-07-21 19:53:48 +000040
David Reissfaebedd2007-09-17 23:20:38 +000041# Define the source files for the module
Marc Slemko9d4a3e22006-07-21 19:53:48 +000042
David Reiss79ae0f82007-09-17 21:15:47 +000043libthrift_la_SOURCES = src/Thrift.cpp \
David Reiss5f013bb2010-03-10 22:11:26 +000044 src/TApplicationException.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000045 src/concurrency/Mutex.cpp \
46 src/concurrency/Monitor.cpp \
47 src/concurrency/PosixThreadFactory.cpp \
48 src/concurrency/ThreadManager.cpp \
49 src/concurrency/TimerManager.cpp \
David Reiss53f18f02008-07-11 00:45:29 +000050 src/concurrency/Util.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000051 src/protocol/TDebugProtocol.cpp \
52 src/protocol/TDenseProtocol.cpp \
David Reissdb0ea152008-02-18 01:49:37 +000053 src/protocol/TJSONProtocol.cpp \
54 src/protocol/TBase64Utils.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000055 src/transport/TTransportException.cpp \
David Reisse4db03d2008-04-08 05:06:59 +000056 src/transport/TFDTransport.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000057 src/transport/TFileTransport.cpp \
David Reissabb56a42009-03-26 06:23:57 +000058 src/transport/TSimpleFileTransport.cpp \
David Reiss112e3092010-08-12 23:03:29 +000059 src/transport/THttpTransport.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000060 src/transport/THttpClient.cpp \
David Reiss112e3092010-08-12 23:03:29 +000061 src/transport/THttpServer.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000062 src/transport/TSocket.cpp \
Bryan Duxburycd9aea12011-02-22 18:12:06 +000063 src/transport/TSSLSocket.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000064 src/transport/TSocketPool.cpp \
65 src/transport/TServerSocket.cpp \
Bryan Duxburycd9aea12011-02-22 18:12:06 +000066 src/transport/TSSLServerSocket.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000067 src/transport/TTransportUtils.cpp \
David Reiss28f298d2008-05-01 06:17:36 +000068 src/transport/TBufferTransports.cpp \
veeve01d187c2008-02-26 05:12:08 +000069 src/server/TServer.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000070 src/server/TSimpleServer.cpp \
71 src/server/TThreadPoolServer.cpp \
72 src/server/TThreadedServer.cpp \
David Reiss5ddabb82010-10-06 17:09:37 +000073 src/async/TAsyncChannel.cpp \
David Reiss79ae0f82007-09-17 21:15:47 +000074 src/processor/PeekProcessor.cpp
Aditya Agarwal000b1112007-08-31 08:03:05 +000075
David Reiss5ddabb82010-10-06 17:09:37 +000076libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp \
77 src/async/TAsyncProtocolProcessor.cpp
Marc Slemko9d4a3e22006-07-21 19:53:48 +000078
David Reissfaebedd2007-09-17 23:20:38 +000079libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp
80
81
82# Flags for the various libraries
David Reissc6c64982008-06-11 01:16:45 +000083libthriftnb_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBEVENT_CPPFLAGS)
84libthriftz_la_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CPPFLAGS)
Christian Lavoieaf65f1b2010-11-24 21:58:05 +000085libthriftnb_la_CXXFLAGS = $(AM_CXXFLAGS)
86libthriftz_la_CXXFLAGS = $(AM_CXXFLAGS)
Marc Slemko9d4a3e22006-07-21 19:53:48 +000087
Marc Slemko16698852006-08-04 03:16:10 +000088include_thriftdir = $(includedir)/thrift
89include_thrift_HEADERS = \
David Reissc6c64982008-06-11 01:16:45 +000090 $(top_builddir)/config.h \
James Wang3e9d1772007-03-27 23:17:34 +000091 src/Thrift.h \
David Reiss0c90f6f2008-02-06 22:18:40 +000092 src/TReflectionLocal.h \
James Wang3e9d1772007-03-27 23:17:34 +000093 src/TProcessor.h \
David Reiss5f013bb2010-03-10 22:11:26 +000094 src/TApplicationException.h \
James Wang3e9d1772007-03-27 23:17:34 +000095 src/TLogging.h
Marc Slemko16698852006-08-04 03:16:10 +000096
Marc Slemkod42a2c22006-08-10 03:30:18 +000097include_concurrencydir = $(include_thriftdir)/concurrency
Marc Slemko16698852006-08-04 03:16:10 +000098include_concurrency_HEADERS = \
James Wang3e9d1772007-03-27 23:17:34 +000099 src/concurrency/Exception.h \
Mark Slee0f70d772006-10-28 00:51:14 +0000100 src/concurrency/Mutex.h \
Marc Slemko6f038a72006-08-03 18:58:09 +0000101 src/concurrency/Monitor.h \
102 src/concurrency/PosixThreadFactory.h \
103 src/concurrency/Thread.h \
104 src/concurrency/ThreadManager.h \
Marc Slemkoe18890f2006-08-17 01:23:12 +0000105 src/concurrency/TimerManager.h \
David Reiss48141bf2009-03-18 23:59:56 +0000106 src/concurrency/FunctionRunner.h \
Mark Sleeb16074d2007-11-28 05:54:33 +0000107 src/concurrency/Util.h
Marc Slemko16698852006-08-04 03:16:10 +0000108
Marc Slemkod42a2c22006-08-10 03:30:18 +0000109include_protocoldir = $(include_thriftdir)/protocol
Marc Slemko16698852006-08-04 03:16:10 +0000110include_protocol_HEADERS = \
Marc Slemko6f038a72006-08-03 18:58:09 +0000111 src/protocol/TBinaryProtocol.h \
David Reisse71115b2010-10-06 17:09:56 +0000112 src/protocol/TBinaryProtocol.tcc \
David Reisse4d4ea02009-04-02 21:37:17 +0000113 src/protocol/TCompactProtocol.h \
David Reisse71115b2010-10-06 17:09:56 +0000114 src/protocol/TCompactProtocol.tcc \
David Reissb72d19f2007-09-18 19:46:00 +0000115 src/protocol/TDenseProtocol.h \
David Reiss00dcccf2007-07-21 01:18:10 +0000116 src/protocol/TDebugProtocol.h \
David Reiss94058452008-04-21 18:07:58 +0000117 src/protocol/TBase64Utils.h \
118 src/protocol/TJSONProtocol.h \
David Reisse0e3d1b2008-04-08 05:06:45 +0000119 src/protocol/TProtocolTap.h \
Mark Sleef9831082007-02-20 20:59:21 +0000120 src/protocol/TProtocolException.h \
David Reiss6806fb82010-10-06 17:09:52 +0000121 src/protocol/TVirtualProtocol.h \
Marc Slemko16698852006-08-04 03:16:10 +0000122 src/protocol/TProtocol.h
123
Marc Slemkod42a2c22006-08-10 03:30:18 +0000124include_transportdir = $(include_thriftdir)/transport
Marc Slemko16698852006-08-04 03:16:10 +0000125include_transport_HEADERS = \
David Reisse4db03d2008-04-08 05:06:59 +0000126 src/transport/TFDTransport.h \
Aditya Agarwal25b29362006-12-09 00:58:15 +0000127 src/transport/TFileTransport.h \
David Reissabb56a42009-03-26 06:23:57 +0000128 src/transport/TSimpleFileTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000129 src/transport/TServerSocket.h \
Bryan Duxburycd9aea12011-02-22 18:12:06 +0000130 src/transport/TSSLServerSocket.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000131 src/transport/TServerTransport.h \
David Reiss112e3092010-08-12 23:03:29 +0000132 src/transport/THttpTransport.h \
Mark Slee8a98e1b2007-02-27 05:16:23 +0000133 src/transport/THttpClient.h \
David Reiss112e3092010-08-12 23:03:29 +0000134 src/transport/THttpServer.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000135 src/transport/TSocket.h \
Bryan Duxburycd9aea12011-02-22 18:12:06 +0000136 src/transport/TSSLSocket.h \
jsobele02e4242007-05-08 17:51:49 +0000137 src/transport/TSocketPool.h \
David Reisse879c2f2010-10-06 17:09:50 +0000138 src/transport/TVirtualTransport.h \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000139 src/transport/TTransport.h \
Mark Sleed788b2e2006-09-07 01:26:35 +0000140 src/transport/TTransportException.h \
David Reissfaebedd2007-09-17 23:20:38 +0000141 src/transport/TTransportUtils.h \
David Reiss28f298d2008-05-01 06:17:36 +0000142 src/transport/TBufferTransports.h \
David Reiss48141bf2009-03-18 23:59:56 +0000143 src/transport/TShortReadTransport.h \
David Reissfaebedd2007-09-17 23:20:38 +0000144 src/transport/TZlibTransport.h
Marc Slemko16698852006-08-04 03:16:10 +0000145
Marc Slemkod42a2c22006-08-10 03:30:18 +0000146include_serverdir = $(include_thriftdir)/server
Marc Slemko16698852006-08-04 03:16:10 +0000147include_server_HEADERS = \
148 src/server/TServer.h \
Marc Slemko6f038a72006-08-03 18:58:09 +0000149 src/server/TSimpleServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000150 src/server/TThreadPoolServer.h \
Mark Sleeb3cb6292007-02-01 22:55:00 +0000151 src/server/TThreadedServer.h \
Mark Slee2f6404d2006-10-10 01:37:40 +0000152 src/server/TNonblockingServer.h
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000153
Aditya Agarwal000b1112007-08-31 08:03:05 +0000154include_processordir = $(include_thriftdir)/processor
155include_processor_HEADERS = \
156 src/processor/PeekProcessor.h \
157 src/processor/StatsProcessor.h
158
David Reiss5ddabb82010-10-06 17:09:37 +0000159include_asyncdir = $(include_thriftdir)/async
160include_async_HEADERS = \
161 src/async/TAsyncChannel.h \
162 src/async/TAsyncProcessor.h \
163 src/async/TAsyncBufferProcessor.h \
164 src/async/TAsyncProtocolProcessor.h \
165 src/async/TEvhttpClientChannel.h \
Bryan Duxbury82dc2e22011-06-28 17:43:30 +0000166 src/async/TEvhttpServer.h
David Reiss5ddabb82010-10-06 17:09:37 +0000167
168
David Reissb72d19f2007-09-18 19:46:00 +0000169noinst_PROGRAMS = concurrency_test
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000170
Mark Sleeb3bd81f2006-10-25 01:36:44 +0000171concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000172 src/concurrency/test/ThreadFactoryTests.h \
173 src/concurrency/test/ThreadManagerTests.h \
174 src/concurrency/test/TimerManagerTests.h
175
Marc Slemkoc09a65a2006-08-09 01:20:16 +0000176concurrency_test_LDADD = libthrift.la
Marc Slemko9d4a3e22006-07-21 19:53:48 +0000177
David Reiss832b2622007-12-28 18:25:33 +0000178EXTRA_DIST = \
David Reiss0c90f6f2008-02-06 22:18:40 +0000179 README \
180 thrift-nb.pc.in \
181 thrift.pc.in \
182 thrift-z.pc.in