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