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 | |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 20 | moc_%.cpp: %.h |
| 21 | $(QT_MOC) $(QT_CFLAGS) $< -o $@ |
| 22 | |
Jake Farrell | 627f1a0 | 2011-09-14 03:43:49 +0000 | [diff] [blame] | 23 | SUBDIRS = . |
| 24 | |
| 25 | if WITH_TESTS |
| 26 | SUBDIRS += test |
| 27 | endif |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 28 | |
Mark Slee | b16074d | 2007-11-28 05:54:33 +0000 | [diff] [blame] | 29 | pkgconfigdir = $(libdir)/pkgconfig |
| 30 | |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 31 | lib_LTLIBRARIES = libthrift.la |
Mark Slee | b16074d | 2007-11-28 05:54:33 +0000 | [diff] [blame] | 32 | pkgconfig_DATA = thrift.pc |
Roger Meier | 3831578 | 2011-11-06 11:29:41 +0000 | [diff] [blame] | 33 | libthrift_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS) |
Mark Slee | b16074d | 2007-11-28 05:54:33 +0000 | [diff] [blame] | 34 | |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 35 | ## We only build the extra libraries if we have the dependencies, |
| 36 | ## but we install all of the headers unconditionally. |
| 37 | if AMX_HAVE_LIBEVENT |
| 38 | lib_LTLIBRARIES += libthriftnb.la |
Mark Slee | b16074d | 2007-11-28 05:54:33 +0000 | [diff] [blame] | 39 | pkgconfig_DATA += thrift-nb.pc |
David Reiss | 79ae0f8 | 2007-09-17 21:15:47 +0000 | [diff] [blame] | 40 | endif |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 41 | if AMX_HAVE_ZLIB |
| 42 | lib_LTLIBRARIES += libthriftz.la |
Mark Slee | b16074d | 2007-11-28 05:54:33 +0000 | [diff] [blame] | 43 | pkgconfig_DATA += thrift-z.pc |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 44 | endif |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 45 | if AMX_HAVE_QT |
| 46 | lib_LTLIBRARIES += libthriftqt.la |
| 47 | pkgconfig_DATA += thrift-qt.pc |
| 48 | endif |
Marc Slemko | 6f038a7 | 2006-08-03 18:58:09 +0000 | [diff] [blame] | 49 | |
Jake Farrell | ea949fb | 2011-12-13 20:02:33 +0000 | [diff] [blame] | 50 | AM_CXXFLAGS = -Wall |
Roger Meier | 16ee0d1 | 2013-05-30 09:57:00 +0200 | [diff] [blame] | 51 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(srcdir)/src |
Roger Meier | 3faaedf | 2011-10-02 10:51:45 +0000 | [diff] [blame] | 52 | AM_LDFLAGS = $(BOOST_LDFLAGS) |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 53 | |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 54 | # Define the source files for the module |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 55 | |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 56 | libthrift_la_SOURCES = src/thrift/Thrift.cpp \ |
| 57 | src/thrift/TApplicationException.cpp \ |
| 58 | src/thrift/VirtualProfiling.cpp \ |
| 59 | src/thrift/concurrency/ThreadManager.cpp \ |
| 60 | src/thrift/concurrency/TimerManager.cpp \ |
| 61 | src/thrift/concurrency/Util.cpp \ |
| 62 | src/thrift/protocol/TDebugProtocol.cpp \ |
| 63 | src/thrift/protocol/TDenseProtocol.cpp \ |
| 64 | src/thrift/protocol/TJSONProtocol.cpp \ |
| 65 | src/thrift/protocol/TBase64Utils.cpp \ |
Roger Meier | 3a931b5 | 2013-03-26 22:14:03 +0100 | [diff] [blame] | 66 | src/thrift/protocol/TMultiplexedProtocol.cpp \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 67 | src/thrift/transport/TTransportException.cpp \ |
| 68 | src/thrift/transport/TFDTransport.cpp \ |
| 69 | src/thrift/transport/TFileTransport.cpp \ |
| 70 | src/thrift/transport/TSimpleFileTransport.cpp \ |
| 71 | src/thrift/transport/THttpTransport.cpp \ |
| 72 | src/thrift/transport/THttpClient.cpp \ |
| 73 | src/thrift/transport/THttpServer.cpp \ |
| 74 | src/thrift/transport/TSocket.cpp \ |
Roger Meier | 7d0a040 | 2012-06-05 19:57:10 +0000 | [diff] [blame] | 75 | src/thrift/transport/TPipe.cpp \ |
| 76 | src/thrift/transport/TPipeServer.cpp \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 77 | src/thrift/transport/TSSLSocket.cpp \ |
| 78 | src/thrift/transport/TSocketPool.cpp \ |
| 79 | src/thrift/transport/TServerSocket.cpp \ |
| 80 | src/thrift/transport/TSSLServerSocket.cpp \ |
| 81 | src/thrift/transport/TTransportUtils.cpp \ |
| 82 | src/thrift/transport/TBufferTransports.cpp \ |
| 83 | src/thrift/server/TServer.cpp \ |
| 84 | src/thrift/server/TSimpleServer.cpp \ |
| 85 | src/thrift/server/TThreadPoolServer.cpp \ |
| 86 | src/thrift/server/TThreadedServer.cpp \ |
| 87 | src/thrift/async/TAsyncChannel.cpp \ |
| 88 | src/thrift/processor/PeekProcessor.cpp |
Aditya Agarwal | 000b111 | 2007-08-31 08:03:05 +0000 | [diff] [blame] | 89 | |
Roger Meier | 3faaedf | 2011-10-02 10:51:45 +0000 | [diff] [blame] | 90 | if WITH_BOOSTTHREADS |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 91 | libthrift_la_SOURCES += src/thrift/concurrency/BoostThreadFactory.cpp \ |
| 92 | src/thrift/concurrency/BoostMonitor.cpp \ |
| 93 | src/thrift/concurrency/BoostMutex.cpp |
Roger Meier | 3faaedf | 2011-10-02 10:51:45 +0000 | [diff] [blame] | 94 | else |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 95 | libthrift_la_SOURCES += src/thrift/concurrency/Mutex.cpp \ |
| 96 | src/thrift/concurrency/Monitor.cpp \ |
| 97 | src/thrift/concurrency/PosixThreadFactory.cpp |
Roger Meier | 3faaedf | 2011-10-02 10:51:45 +0000 | [diff] [blame] | 98 | endif |
| 99 | |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 100 | libthriftnb_la_SOURCES = src/thrift/server/TNonblockingServer.cpp \ |
| 101 | src/thrift/async/TAsyncProtocolProcessor.cpp \ |
| 102 | src/thrift/async/TEvhttpServer.cpp \ |
| 103 | src/thrift/async/TEvhttpClientChannel.cpp |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 104 | |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 105 | libthriftz_la_SOURCES = src/thrift/transport/TZlibTransport.cpp |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 106 | |
Roger Meier | 33eaa0f | 2012-04-13 09:13:13 +0000 | [diff] [blame] | 107 | libthriftqt_la_MOC = src/thrift/qt/moc_TQTcpServer.cpp |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 108 | libthriftqt_la_SOURCES = $(libthriftqt_la_MOC) \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 109 | src/thrift/qt/TQIODeviceTransport.cpp \ |
| 110 | src/thrift/qt/TQTcpServer.cpp |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 111 | CLEANFILES = $(libthriftqt_la_MOC) |
| 112 | |
David Reiss | faebedd | 2007-09-17 23:20:38 +0000 | [diff] [blame] | 113 | # Flags for the various libraries |
David Reiss | c6c6498 | 2008-06-11 01:16:45 +0000 | [diff] [blame] | 114 | libthriftnb_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBEVENT_CPPFLAGS) |
| 115 | libthriftz_la_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CPPFLAGS) |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 116 | libthriftqt_la_CPPFLAGS = $(AM_CPPFLAGS) $(QT_CFLAGS) |
Christian Lavoie | af65f1b | 2010-11-24 21:58:05 +0000 | [diff] [blame] | 117 | libthriftnb_la_CXXFLAGS = $(AM_CXXFLAGS) |
| 118 | libthriftz_la_CXXFLAGS = $(AM_CXXFLAGS) |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 119 | libthriftqt_la_CXXFLAGS = $(AM_CXXFLAGS) |
Roger Meier | 3831578 | 2011-11-06 11:29:41 +0000 | [diff] [blame] | 120 | libthriftnb_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS) |
| 121 | libthriftz_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS) |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 122 | libthriftqt_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS) $(QT_LIBS) |
Roger Meier | 3faaedf | 2011-10-02 10:51:45 +0000 | [diff] [blame] | 123 | |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 124 | include_thriftdir = $(includedir)/thrift |
| 125 | include_thrift_HEADERS = \ |
David Reiss | c6c6498 | 2008-06-11 01:16:45 +0000 | [diff] [blame] | 126 | $(top_builddir)/config.h \ |
Jens Geyer | 8095447 | 2013-06-25 21:36:29 +0200 | [diff] [blame^] | 127 | src/thrift/thrift-config.h \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 128 | src/thrift/TDispatchProcessor.h \ |
| 129 | src/thrift/Thrift.h \ |
| 130 | src/thrift/TReflectionLocal.h \ |
| 131 | src/thrift/TProcessor.h \ |
| 132 | src/thrift/TApplicationException.h \ |
Roger Meier | d34bea0 | 2013-01-22 21:36:42 +0100 | [diff] [blame] | 133 | src/thrift/TLogging.h \ |
| 134 | src/thrift/cxxfunctional.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_concurrencydir = $(include_thriftdir)/concurrency |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 137 | include_concurrency_HEADERS = \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 138 | src/thrift/concurrency/BoostThreadFactory.h \ |
| 139 | src/thrift/concurrency/Exception.h \ |
| 140 | src/thrift/concurrency/Mutex.h \ |
| 141 | src/thrift/concurrency/Monitor.h \ |
| 142 | src/thrift/concurrency/PlatformThreadFactory.h \ |
| 143 | src/thrift/concurrency/PosixThreadFactory.h \ |
| 144 | src/thrift/concurrency/Thread.h \ |
| 145 | src/thrift/concurrency/ThreadManager.h \ |
| 146 | src/thrift/concurrency/TimerManager.h \ |
| 147 | src/thrift/concurrency/FunctionRunner.h \ |
| 148 | src/thrift/concurrency/Util.h |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 149 | |
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 150 | include_protocoldir = $(include_thriftdir)/protocol |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 151 | include_protocol_HEADERS = \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 152 | src/thrift/protocol/TBinaryProtocol.h \ |
| 153 | src/thrift/protocol/TBinaryProtocol.tcc \ |
| 154 | src/thrift/protocol/TCompactProtocol.h \ |
| 155 | src/thrift/protocol/TCompactProtocol.tcc \ |
| 156 | src/thrift/protocol/TDenseProtocol.h \ |
| 157 | src/thrift/protocol/TDebugProtocol.h \ |
| 158 | src/thrift/protocol/TBase64Utils.h \ |
| 159 | src/thrift/protocol/TJSONProtocol.h \ |
Roger Meier | 3a931b5 | 2013-03-26 22:14:03 +0100 | [diff] [blame] | 160 | src/thrift/protocol/TMultiplexedProtocol.h \ |
| 161 | src/thrift/protocol/TProtocolDecorator.h \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 162 | src/thrift/protocol/TProtocolTap.h \ |
| 163 | src/thrift/protocol/TProtocolException.h \ |
| 164 | src/thrift/protocol/TVirtualProtocol.h \ |
| 165 | src/thrift/protocol/TProtocol.h |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 166 | |
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 167 | include_transportdir = $(include_thriftdir)/transport |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 168 | include_transport_HEADERS = \ |
Jens Geyer | 8095447 | 2013-06-25 21:36:29 +0200 | [diff] [blame^] | 169 | src/thrift/transport/PlatformSocket.h \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 170 | src/thrift/transport/TFDTransport.h \ |
| 171 | src/thrift/transport/TFileTransport.h \ |
| 172 | src/thrift/transport/TSimpleFileTransport.h \ |
| 173 | src/thrift/transport/TServerSocket.h \ |
| 174 | src/thrift/transport/TSSLServerSocket.h \ |
| 175 | src/thrift/transport/TServerTransport.h \ |
| 176 | src/thrift/transport/THttpTransport.h \ |
| 177 | src/thrift/transport/THttpClient.h \ |
| 178 | src/thrift/transport/THttpServer.h \ |
| 179 | src/thrift/transport/TSocket.h \ |
Roger Meier | 7d0a040 | 2012-06-05 19:57:10 +0000 | [diff] [blame] | 180 | src/thrift/transport/TPipe.h \ |
| 181 | src/thrift/transport/TPipeServer.h \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 182 | src/thrift/transport/TSSLSocket.h \ |
| 183 | src/thrift/transport/TSocketPool.h \ |
| 184 | src/thrift/transport/TVirtualTransport.h \ |
| 185 | src/thrift/transport/TTransport.h \ |
| 186 | src/thrift/transport/TTransportException.h \ |
| 187 | src/thrift/transport/TTransportUtils.h \ |
| 188 | src/thrift/transport/TBufferTransports.h \ |
| 189 | src/thrift/transport/TShortReadTransport.h \ |
| 190 | src/thrift/transport/TZlibTransport.h |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 191 | |
Marc Slemko | d42a2c2 | 2006-08-10 03:30:18 +0000 | [diff] [blame] | 192 | include_serverdir = $(include_thriftdir)/server |
Marc Slemko | 1669885 | 2006-08-04 03:16:10 +0000 | [diff] [blame] | 193 | include_server_HEADERS = \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 194 | src/thrift/server/TServer.h \ |
| 195 | src/thrift/server/TSimpleServer.h \ |
| 196 | src/thrift/server/TThreadPoolServer.h \ |
| 197 | src/thrift/server/TThreadedServer.h \ |
| 198 | src/thrift/server/TNonblockingServer.h |
Marc Slemko | 9d4a3e2 | 2006-07-21 19:53:48 +0000 | [diff] [blame] | 199 | |
Aditya Agarwal | 000b111 | 2007-08-31 08:03:05 +0000 | [diff] [blame] | 200 | include_processordir = $(include_thriftdir)/processor |
| 201 | include_processor_HEADERS = \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 202 | src/thrift/processor/PeekProcessor.h \ |
Roger Meier | 3a931b5 | 2013-03-26 22:14:03 +0100 | [diff] [blame] | 203 | src/thrift/processor/StatsProcessor.h \ |
| 204 | src/thrift/processor/TMultiplexedProcessor.h |
Aditya Agarwal | 000b111 | 2007-08-31 08:03:05 +0000 | [diff] [blame] | 205 | |
David Reiss | 5ddabb8 | 2010-10-06 17:09:37 +0000 | [diff] [blame] | 206 | include_asyncdir = $(include_thriftdir)/async |
| 207 | include_async_HEADERS = \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 208 | src/thrift/async/TAsyncChannel.h \ |
| 209 | src/thrift/async/TAsyncDispatchProcessor.h \ |
| 210 | src/thrift/async/TAsyncProcessor.h \ |
| 211 | src/thrift/async/TAsyncBufferProcessor.h \ |
| 212 | src/thrift/async/TAsyncProtocolProcessor.h \ |
| 213 | src/thrift/async/TEvhttpClientChannel.h \ |
| 214 | src/thrift/async/TEvhttpServer.h |
David Reiss | 5ddabb8 | 2010-10-06 17:09:37 +0000 | [diff] [blame] | 215 | |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 216 | include_qtdir = $(include_thriftdir)/qt |
| 217 | include_qt_HEADERS = \ |
Roger Meier | 49ff8b1 | 2012-04-13 09:12:31 +0000 | [diff] [blame] | 218 | src/thrift/qt/TQIODeviceTransport.h \ |
| 219 | src/thrift/qt/TQTcpServer.h |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 220 | |
Roger Meier | 2be7f24 | 2012-05-10 09:01:45 +0000 | [diff] [blame] | 221 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
| 222 | |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 223 | WINDOWS_DIST = \ |
| 224 | README_WINDOWS \ |
Roger Meier | 67377e7 | 2012-05-10 21:17:53 +0000 | [diff] [blame] | 225 | src/thrift/windows \ |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 226 | thrift.sln \ |
| 227 | libthrift.vcxproj \ |
| 228 | libthrift.vcxproj.filters \ |
| 229 | libthriftnb.vcxproj \ |
| 230 | libthriftnb.vcxproj.filters |
| 231 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame] | 232 | EXTRA_DIST = \ |
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 233 | README \ |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 234 | README.SSL \ |
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 235 | thrift-nb.pc.in \ |
| 236 | thrift.pc.in \ |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 237 | thrift-z.pc.in \ |
Roger Meier | 86e8986 | 2012-02-10 19:53:20 +0000 | [diff] [blame] | 238 | thrift-qt.pc.in \ |
Jake Farrell | e0c5316 | 2011-11-16 12:58:36 +0000 | [diff] [blame] | 239 | $(WINDOWS_DIST) |