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