David Reiss | ea2cba8 | 2009-03-30 21:35:00 +0000 | [diff] [blame] | 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 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 20 | SUBDIRS = . test |
| 21 | |
Mark Slee | b16074d | 2007-11-28 05:54:33 +0000 | [diff] [blame] | 22 | pkgconfigdir = $(libdir)/pkgconfig |
| 23 | |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 24 | lib_LTLIBRARIES = libthrift.la |
Mark Slee | b16074d | 2007-11-28 05:54:33 +0000 | [diff] [blame] | 25 | pkgconfig_DATA = thrift.pc |
| 26 | |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 27 | ## We only build the extra libraries if we have the dependencies, |
| 28 | ## but we install all of the headers unconditionally. |
| 29 | if AMX_HAVE_LIBEVENT |
| 30 | lib_LTLIBRARIES += libthriftnb.la |
Mark Slee | b16074d | 2007-11-28 05:54:33 +0000 | [diff] [blame] | 31 | pkgconfig_DATA += thrift-nb.pc |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 32 | endif |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 33 | if AMX_HAVE_ZLIB |
| 34 | lib_LTLIBRARIES += libthriftz.la |
Mark Slee | b16074d | 2007-11-28 05:54:33 +0000 | [diff] [blame] | 35 | pkgconfig_DATA += thrift-z.pc |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 36 | endif |
Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 37 | |
David Reiss | c6c6498 | 2008-06-11 01:16:45 +0000 | [diff] [blame] | 38 | AM_CXXFLAGS = -Wall |
| 39 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(srcdir)/src |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 40 | |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 41 | # Define the source files for the module |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 42 | |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 43 | libthrift_la_SOURCES = src/Thrift.cpp \ |
David Reiss | 5f013bb | 2010-03-10 22:11:26 +0000 | [diff] [blame] | 44 | src/TApplicationException.cpp \ |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 45 | 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 Reiss | 53f18f0 | 2008-07-11 00:45:29 +0000 | [diff] [blame] | 50 | src/concurrency/Util.cpp \ |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 51 | src/protocol/TDebugProtocol.cpp \ |
| 52 | src/protocol/TDenseProtocol.cpp \ |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 53 | src/protocol/TJSONProtocol.cpp \ |
| 54 | src/protocol/TBase64Utils.cpp \ |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 55 | src/transport/TTransportException.cpp \ |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 56 | src/transport/TFDTransport.cpp \ |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 57 | src/transport/TFileTransport.cpp \ |
David Reiss | abb56a4 | 2009-03-26 06:23:57 +0000 | [diff] [blame] | 58 | src/transport/TSimpleFileTransport.cpp \ |
David Reiss | 112e309 | 2010-08-12 23:03:29 +0000 | [diff] [blame] | 59 | src/transport/THttpTransport.cpp \ |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 60 | src/transport/THttpClient.cpp \ |
David Reiss | 112e309 | 2010-08-12 23:03:29 +0000 | [diff] [blame] | 61 | src/transport/THttpServer.cpp \ |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 62 | src/transport/TSocket.cpp \ |
Bryan Duxbury | cd9aea1 | 2011-02-22 18:12:06 +0000 | [diff] [blame] | 63 | src/transport/TSSLSocket.cpp \ |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 64 | src/transport/TSocketPool.cpp \ |
| 65 | src/transport/TServerSocket.cpp \ |
Bryan Duxbury | cd9aea1 | 2011-02-22 18:12:06 +0000 | [diff] [blame] | 66 | src/transport/TSSLServerSocket.cpp \ |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 67 | src/transport/TTransportUtils.cpp \ |
David Reiss | 28f298d | 2008-05-01 06:17:36 +0000 | [diff] [blame] | 68 | src/transport/TBufferTransports.cpp \ |
veeve | 01d187c | 2008-02-26 05:12:08 +0000 | [diff] [blame] | 69 | src/server/TServer.cpp \ |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 70 | src/server/TSimpleServer.cpp \ |
| 71 | src/server/TThreadPoolServer.cpp \ |
| 72 | src/server/TThreadedServer.cpp \ |
David Reiss | 5ddabb8 | 2010-10-06 17:09:37 +0000 | [diff] [blame] | 73 | src/async/TAsyncChannel.cpp \ |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 74 | src/processor/PeekProcessor.cpp |
Aditya Agarwal | 000b111 | 2007-08-31 08:03:05 +0000 | [diff] [blame] | 75 | |
David Reiss | 5ddabb8 | 2010-10-06 17:09:37 +0000 | [diff] [blame] | 76 | libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp \ |
| 77 | src/async/TAsyncProtocolProcessor.cpp |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 78 | |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 79 | libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp |
| 80 | |
| 81 | |
| 82 | # Flags for the various libraries |
David Reiss | c6c6498 | 2008-06-11 01:16:45 +0000 | [diff] [blame] | 83 | libthriftnb_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBEVENT_CPPFLAGS) |
| 84 | libthriftz_la_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CPPFLAGS) |
Christian Lavoie | af65f1b | 2010-11-24 21:58:05 +0000 | [diff] [blame] | 85 | libthriftnb_la_CXXFLAGS = $(AM_CXXFLAGS) |
| 86 | libthriftz_la_CXXFLAGS = $(AM_CXXFLAGS) |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 87 | |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 88 | include_thriftdir = $(includedir)/thrift |
| 89 | include_thrift_HEADERS = \ |
David Reiss | c6c6498 | 2008-06-11 01:16:45 +0000 | [diff] [blame] | 90 | $(top_builddir)/config.h \ |
James Wang | 3e9d177 | 2007-03-27 23:17:34 +0000 | [diff] [blame] | 91 | src/Thrift.h \ |
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 92 | src/TReflectionLocal.h \ |
James Wang | 3e9d177 | 2007-03-27 23:17:34 +0000 | [diff] [blame] | 93 | src/TProcessor.h \ |
David Reiss | 5f013bb | 2010-03-10 22:11:26 +0000 | [diff] [blame] | 94 | src/TApplicationException.h \ |
James Wang | 3e9d177 | 2007-03-27 23:17:34 +0000 | [diff] [blame] | 95 | src/TLogging.h |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 96 | |
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 97 | include_concurrencydir = $(include_thriftdir)/concurrency |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 98 | include_concurrency_HEADERS = \ |
James Wang | 3e9d177 | 2007-03-27 23:17:34 +0000 | [diff] [blame] | 99 | src/concurrency/Exception.h \ |
Mark Slee | 0f70d77 | 2006-10-28 00:51:14 +0000 | [diff] [blame] | 100 | src/concurrency/Mutex.h \ |
Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 101 | src/concurrency/Monitor.h \ |
| 102 | src/concurrency/PosixThreadFactory.h \ |
| 103 | src/concurrency/Thread.h \ |
| 104 | src/concurrency/ThreadManager.h \ |
Marc Slemko | e18890f | 2006-08-17 01:23:12 +0000 | [diff] [blame] | 105 | src/concurrency/TimerManager.h \ |
David Reiss | 48141bf | 2009-03-18 23:59:56 +0000 | [diff] [blame] | 106 | src/concurrency/FunctionRunner.h \ |
Mark Slee | b16074d | 2007-11-28 05:54:33 +0000 | [diff] [blame] | 107 | src/concurrency/Util.h |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 108 | |
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 109 | include_protocoldir = $(include_thriftdir)/protocol |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 110 | include_protocol_HEADERS = \ |
Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 111 | src/protocol/TBinaryProtocol.h \ |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 112 | src/protocol/TBinaryProtocol.tcc \ |
David Reiss | e4d4ea0 | 2009-04-02 21:37:17 +0000 | [diff] [blame] | 113 | src/protocol/TCompactProtocol.h \ |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 114 | src/protocol/TCompactProtocol.tcc \ |
David Reiss | b72d19f | 2007-09-18 19:46:00 +0000 | [diff] [blame] | 115 | src/protocol/TDenseProtocol.h \ |
David Reiss | 00dcccf | 2007-07-21 01:18:10 +0000 | [diff] [blame] | 116 | src/protocol/TDebugProtocol.h \ |
David Reiss | 9405845 | 2008-04-21 18:07:58 +0000 | [diff] [blame] | 117 | src/protocol/TBase64Utils.h \ |
| 118 | src/protocol/TJSONProtocol.h \ |
David Reiss | e0e3d1b | 2008-04-08 05:06:45 +0000 | [diff] [blame] | 119 | src/protocol/TProtocolTap.h \ |
Mark Slee | f983108 | 2007-02-20 20:59:21 +0000 | [diff] [blame] | 120 | src/protocol/TProtocolException.h \ |
David Reiss | 6806fb8 | 2010-10-06 17:09:52 +0000 | [diff] [blame] | 121 | src/protocol/TVirtualProtocol.h \ |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 122 | src/protocol/TProtocol.h |
| 123 | |
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 124 | include_transportdir = $(include_thriftdir)/transport |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 125 | include_transport_HEADERS = \ |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 126 | src/transport/TFDTransport.h \ |
Aditya Agarwal | 25b2936 | 2006-12-09 00:58:15 +0000 | [diff] [blame] | 127 | src/transport/TFileTransport.h \ |
David Reiss | abb56a4 | 2009-03-26 06:23:57 +0000 | [diff] [blame] | 128 | src/transport/TSimpleFileTransport.h \ |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 129 | src/transport/TServerSocket.h \ |
Bryan Duxbury | cd9aea1 | 2011-02-22 18:12:06 +0000 | [diff] [blame] | 130 | src/transport/TSSLServerSocket.h \ |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 131 | src/transport/TServerTransport.h \ |
David Reiss | 112e309 | 2010-08-12 23:03:29 +0000 | [diff] [blame] | 132 | src/transport/THttpTransport.h \ |
Mark Slee | 8a98e1b | 2007-02-27 05:16:23 +0000 | [diff] [blame] | 133 | src/transport/THttpClient.h \ |
David Reiss | 112e309 | 2010-08-12 23:03:29 +0000 | [diff] [blame] | 134 | src/transport/THttpServer.h \ |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 135 | src/transport/TSocket.h \ |
Bryan Duxbury | cd9aea1 | 2011-02-22 18:12:06 +0000 | [diff] [blame] | 136 | src/transport/TSSLSocket.h \ |
jsobel | e02e424 | 2007-05-08 17:51:49 +0000 | [diff] [blame] | 137 | src/transport/TSocketPool.h \ |
David Reiss | e879c2f | 2010-10-06 17:09:50 +0000 | [diff] [blame] | 138 | src/transport/TVirtualTransport.h \ |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 139 | src/transport/TTransport.h \ |
Mark Slee | d788b2e | 2006-09-07 01:26:35 +0000 | [diff] [blame] | 140 | src/transport/TTransportException.h \ |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 141 | src/transport/TTransportUtils.h \ |
David Reiss | 28f298d | 2008-05-01 06:17:36 +0000 | [diff] [blame] | 142 | src/transport/TBufferTransports.h \ |
David Reiss | 48141bf | 2009-03-18 23:59:56 +0000 | [diff] [blame] | 143 | src/transport/TShortReadTransport.h \ |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 144 | src/transport/TZlibTransport.h |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 145 | |
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 146 | include_serverdir = $(include_thriftdir)/server |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 147 | include_server_HEADERS = \ |
| 148 | src/server/TServer.h \ |
Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 149 | src/server/TSimpleServer.h \ |
Mark Slee | 2f6404d | 2006-10-10 01:37:40 +0000 | [diff] [blame] | 150 | src/server/TThreadPoolServer.h \ |
Mark Slee | b3cb629 | 2007-02-01 22:55:00 +0000 | [diff] [blame] | 151 | src/server/TThreadedServer.h \ |
Mark Slee | 2f6404d | 2006-10-10 01:37:40 +0000 | [diff] [blame] | 152 | src/server/TNonblockingServer.h |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 153 | |
Aditya Agarwal | 000b111 | 2007-08-31 08:03:05 +0000 | [diff] [blame] | 154 | include_processordir = $(include_thriftdir)/processor |
| 155 | include_processor_HEADERS = \ |
| 156 | src/processor/PeekProcessor.h \ |
| 157 | src/processor/StatsProcessor.h |
| 158 | |
David Reiss | 5ddabb8 | 2010-10-06 17:09:37 +0000 | [diff] [blame] | 159 | include_asyncdir = $(include_thriftdir)/async |
| 160 | include_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 \ |
| 166 | src/async/TEvhttpServer.h \ |
| 167 | src/async/SimpleCallback.h |
| 168 | |
| 169 | |
David Reiss | b72d19f | 2007-09-18 19:46:00 +0000 | [diff] [blame] | 170 | noinst_PROGRAMS = concurrency_test |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 171 | |
Mark Slee | b3bd81f | 2006-10-25 01:36:44 +0000 | [diff] [blame] | 172 | concurrency_test_SOURCES = src/concurrency/test/Tests.cpp \ |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 173 | src/concurrency/test/ThreadFactoryTests.h \ |
| 174 | src/concurrency/test/ThreadManagerTests.h \ |
| 175 | src/concurrency/test/TimerManagerTests.h |
| 176 | |
Marc Slemko | c09a65a | 2006-08-09 01:20:16 +0000 | [diff] [blame] | 177 | concurrency_test_LDADD = libthrift.la |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 178 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 179 | EXTRA_DIST = \ |
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 180 | README \ |
| 181 | thrift-nb.pc.in \ |
| 182 | thrift.pc.in \ |
| 183 | thrift-z.pc.in |