2009-03-30 21:35:00 +00:00
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
# or more contributor license agreements. See the NOTICE file
|
|
|
|
# distributed with this work for additional information
|
|
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
|
|
# to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance
|
|
|
|
# with the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing,
|
|
|
|
# software distributed under the License is distributed on an
|
|
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
# KIND, either express or implied. See the License for the
|
|
|
|
# specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
#
|
|
|
|
|
2014-10-22 12:09:43 +00:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
|
2012-02-10 19:53:20 +00:00
|
|
|
moc_%.cpp: %.h
|
2014-10-03 18:42:54 +00:00
|
|
|
$(QT_MOC) $(QT_CFLAGS) $< -o $@
|
2012-02-10 19:53:20 +00:00
|
|
|
|
2014-12-07 12:45:33 +00:00
|
|
|
moc__%.cpp: %.h
|
|
|
|
$(QT5_MOC) $(QT5_CFLAGS) $< -o $@
|
|
|
|
|
2011-09-14 03:43:49 +00:00
|
|
|
SUBDIRS = .
|
|
|
|
|
|
|
|
if WITH_TESTS
|
|
|
|
SUBDIRS += test
|
|
|
|
endif
|
2010-08-31 16:51:19 +00:00
|
|
|
|
2007-11-28 05:54:33 +00:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
|
2007-09-17 21:15:47 +00:00
|
|
|
lib_LTLIBRARIES = libthrift.la
|
2007-11-28 05:54:33 +00:00
|
|
|
pkgconfig_DATA = thrift.pc
|
2014-12-12 01:36:12 +00:00
|
|
|
libthrift_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS) $(OPENSSL_LDFLAGS)
|
2007-11-28 05:54:33 +00:00
|
|
|
|
2007-09-17 21:15:47 +00:00
|
|
|
## We only build the extra libraries if we have the dependencies,
|
|
|
|
## but we install all of the headers unconditionally.
|
|
|
|
if AMX_HAVE_LIBEVENT
|
|
|
|
lib_LTLIBRARIES += libthriftnb.la
|
2007-11-28 05:54:33 +00:00
|
|
|
pkgconfig_DATA += thrift-nb.pc
|
2007-09-17 21:15:47 +00:00
|
|
|
endif
|
2007-09-17 23:20:38 +00:00
|
|
|
if AMX_HAVE_ZLIB
|
|
|
|
lib_LTLIBRARIES += libthriftz.la
|
2007-11-28 05:54:33 +00:00
|
|
|
pkgconfig_DATA += thrift-z.pc
|
2007-09-17 23:20:38 +00:00
|
|
|
endif
|
2012-02-10 19:53:20 +00:00
|
|
|
if AMX_HAVE_QT
|
|
|
|
lib_LTLIBRARIES += libthriftqt.la
|
|
|
|
pkgconfig_DATA += thrift-qt.pc
|
|
|
|
endif
|
2014-12-07 12:45:33 +00:00
|
|
|
if AMX_HAVE_QT5
|
|
|
|
lib_LTLIBRARIES += libthriftqt5.la
|
|
|
|
pkgconfig_DATA += thrift-qt5.pc
|
|
|
|
endif
|
2006-08-03 18:58:09 +00:00
|
|
|
|
2014-10-13 00:13:35 +00:00
|
|
|
AM_CXXFLAGS = -Wall -Wextra -pedantic
|
2014-12-12 01:36:12 +00:00
|
|
|
AM_CPPFLAGS = $(BOOST_CPPFLAGS) $(OPENSSL_INCLUDES) -I$(srcdir)/src
|
|
|
|
AM_LDFLAGS = $(BOOST_LDFLAGS) $(OPENSSL_LDFLAGS)
|
2006-07-21 19:53:48 +00:00
|
|
|
|
2007-09-17 23:20:38 +00:00
|
|
|
# Define the source files for the module
|
2006-07-21 19:53:48 +00:00
|
|
|
|
2012-04-13 09:12:31 +00:00
|
|
|
libthrift_la_SOURCES = src/thrift/Thrift.cpp \
|
|
|
|
src/thrift/TApplicationException.cpp \
|
|
|
|
src/thrift/VirtualProfiling.cpp \
|
|
|
|
src/thrift/concurrency/ThreadManager.cpp \
|
|
|
|
src/thrift/concurrency/TimerManager.cpp \
|
|
|
|
src/thrift/concurrency/Util.cpp \
|
|
|
|
src/thrift/protocol/TDebugProtocol.cpp \
|
|
|
|
src/thrift/protocol/TDenseProtocol.cpp \
|
|
|
|
src/thrift/protocol/TJSONProtocol.cpp \
|
|
|
|
src/thrift/protocol/TBase64Utils.cpp \
|
2013-03-26 21:14:03 +00:00
|
|
|
src/thrift/protocol/TMultiplexedProtocol.cpp \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/transport/TTransportException.cpp \
|
|
|
|
src/thrift/transport/TFDTransport.cpp \
|
|
|
|
src/thrift/transport/TFileTransport.cpp \
|
|
|
|
src/thrift/transport/TSimpleFileTransport.cpp \
|
|
|
|
src/thrift/transport/THttpTransport.cpp \
|
|
|
|
src/thrift/transport/THttpClient.cpp \
|
|
|
|
src/thrift/transport/THttpServer.cpp \
|
|
|
|
src/thrift/transport/TSocket.cpp \
|
2012-06-05 19:57:10 +00:00
|
|
|
src/thrift/transport/TPipe.cpp \
|
|
|
|
src/thrift/transport/TPipeServer.cpp \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/transport/TSSLSocket.cpp \
|
|
|
|
src/thrift/transport/TSocketPool.cpp \
|
|
|
|
src/thrift/transport/TServerSocket.cpp \
|
|
|
|
src/thrift/transport/TSSLServerSocket.cpp \
|
|
|
|
src/thrift/transport/TTransportUtils.cpp \
|
|
|
|
src/thrift/transport/TBufferTransports.cpp \
|
2015-04-26 11:52:40 +00:00
|
|
|
src/thrift/server/TConnectedClient.cpp \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/server/TServer.cpp \
|
2015-04-26 22:30:26 +00:00
|
|
|
src/thrift/server/TServerFramework.cpp \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/server/TSimpleServer.cpp \
|
|
|
|
src/thrift/server/TThreadPoolServer.cpp \
|
|
|
|
src/thrift/server/TThreadedServer.cpp \
|
|
|
|
src/thrift/async/TAsyncChannel.cpp \
|
|
|
|
src/thrift/processor/PeekProcessor.cpp
|
2007-09-17 21:15:47 +00:00
|
|
|
|
2011-10-02 10:51:45 +00:00
|
|
|
if WITH_BOOSTTHREADS
|
2012-04-13 09:12:31 +00:00
|
|
|
libthrift_la_SOURCES += src/thrift/concurrency/BoostThreadFactory.cpp \
|
|
|
|
src/thrift/concurrency/BoostMonitor.cpp \
|
|
|
|
src/thrift/concurrency/BoostMutex.cpp
|
2011-10-02 10:51:45 +00:00
|
|
|
else
|
2012-04-13 09:12:31 +00:00
|
|
|
libthrift_la_SOURCES += src/thrift/concurrency/Mutex.cpp \
|
|
|
|
src/thrift/concurrency/Monitor.cpp \
|
|
|
|
src/thrift/concurrency/PosixThreadFactory.cpp
|
2011-10-02 10:51:45 +00:00
|
|
|
endif
|
|
|
|
|
2012-04-13 09:12:31 +00:00
|
|
|
libthriftnb_la_SOURCES = src/thrift/server/TNonblockingServer.cpp \
|
|
|
|
src/thrift/async/TAsyncProtocolProcessor.cpp \
|
|
|
|
src/thrift/async/TEvhttpServer.cpp \
|
2014-07-10 13:14:51 +00:00
|
|
|
src/thrift/async/TEvhttpClientChannel.cpp
|
2007-09-17 21:15:47 +00:00
|
|
|
|
2012-04-13 09:12:31 +00:00
|
|
|
libthriftz_la_SOURCES = src/thrift/transport/TZlibTransport.cpp
|
2007-09-17 23:20:38 +00:00
|
|
|
|
2012-04-13 09:13:13 +00:00
|
|
|
libthriftqt_la_MOC = src/thrift/qt/moc_TQTcpServer.cpp
|
2014-12-23 17:18:58 +00:00
|
|
|
nodist_libthriftqt_la_SOURCES = $(libthriftqt_la_MOC)
|
|
|
|
libthriftqt_la_SOURCES = src/thrift/qt/TQIODeviceTransport.cpp \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/qt/TQTcpServer.cpp
|
2012-02-10 19:53:20 +00:00
|
|
|
CLEANFILES = $(libthriftqt_la_MOC)
|
|
|
|
|
2014-12-07 12:45:33 +00:00
|
|
|
libthriftqt5_la_MOC = src/thrift/qt/moc__TQTcpServer.cpp
|
2014-12-23 17:18:58 +00:00
|
|
|
nodist_libthriftqt5_la_SOURCES = $(libthriftqt5_la_MOC)
|
|
|
|
libthriftqt5_la_SOURCES = src/thrift/qt/TQIODeviceTransport.cpp \
|
|
|
|
src/thrift/qt/TQTcpServer.cpp
|
|
|
|
CLEANFILES += $(libthriftqt5_la_MOC)
|
2014-12-07 12:45:33 +00:00
|
|
|
|
2007-09-17 23:20:38 +00:00
|
|
|
# Flags for the various libraries
|
2008-06-11 01:16:45 +00:00
|
|
|
libthriftnb_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBEVENT_CPPFLAGS)
|
|
|
|
libthriftz_la_CPPFLAGS = $(AM_CPPFLAGS) $(ZLIB_CPPFLAGS)
|
2012-02-10 19:53:20 +00:00
|
|
|
libthriftqt_la_CPPFLAGS = $(AM_CPPFLAGS) $(QT_CFLAGS)
|
2014-12-07 12:45:33 +00:00
|
|
|
libthriftqt5_la_CPPFLAGS = $(AM_CPPFLAGS) $(QT5_CFLAGS)
|
|
|
|
if QT5_REDUCE_RELOCATIONS
|
|
|
|
libthriftqt5_la_CPPFLAGS += -fPIC
|
|
|
|
endif
|
2010-11-24 21:58:05 +00:00
|
|
|
libthriftnb_la_CXXFLAGS = $(AM_CXXFLAGS)
|
|
|
|
libthriftz_la_CXXFLAGS = $(AM_CXXFLAGS)
|
2012-02-10 19:53:20 +00:00
|
|
|
libthriftqt_la_CXXFLAGS = $(AM_CXXFLAGS)
|
2014-12-07 12:45:33 +00:00
|
|
|
libthriftqt5_la_CXXFLAGS = $(AM_CXXFLAGS)
|
2011-11-06 11:29:41 +00:00
|
|
|
libthriftnb_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS)
|
|
|
|
libthriftz_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS)
|
2012-02-10 19:53:20 +00:00
|
|
|
libthriftqt_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS) $(QT_LIBS)
|
2014-12-07 12:45:33 +00:00
|
|
|
libthriftqt5_la_LDFLAGS = -release $(VERSION) $(BOOST_LDFLAGS) $(QT5_LIBS)
|
2011-10-02 10:51:45 +00:00
|
|
|
|
2006-08-04 03:16:10 +00:00
|
|
|
include_thriftdir = $(includedir)/thrift
|
|
|
|
include_thrift_HEADERS = \
|
2008-06-11 01:16:45 +00:00
|
|
|
$(top_builddir)/config.h \
|
2013-06-25 19:36:29 +00:00
|
|
|
src/thrift/thrift-config.h \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/TDispatchProcessor.h \
|
|
|
|
src/thrift/Thrift.h \
|
|
|
|
src/thrift/TReflectionLocal.h \
|
|
|
|
src/thrift/TProcessor.h \
|
|
|
|
src/thrift/TApplicationException.h \
|
2013-01-22 20:36:42 +00:00
|
|
|
src/thrift/TLogging.h \
|
2014-09-02 14:00:47 +00:00
|
|
|
src/thrift/cxxfunctional.h \
|
|
|
|
src/thrift/TToString.h
|
2006-08-04 03:16:10 +00:00
|
|
|
|
2006-08-10 03:30:18 +00:00
|
|
|
include_concurrencydir = $(include_thriftdir)/concurrency
|
2006-08-04 03:16:10 +00:00
|
|
|
include_concurrency_HEADERS = \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/concurrency/BoostThreadFactory.h \
|
|
|
|
src/thrift/concurrency/Exception.h \
|
|
|
|
src/thrift/concurrency/Mutex.h \
|
|
|
|
src/thrift/concurrency/Monitor.h \
|
|
|
|
src/thrift/concurrency/PlatformThreadFactory.h \
|
|
|
|
src/thrift/concurrency/PosixThreadFactory.h \
|
2013-08-15 23:21:43 +00:00
|
|
|
src/thrift/concurrency/StdMonitor.cpp \
|
|
|
|
src/thrift/concurrency/StdMutex.cpp \
|
|
|
|
src/thrift/concurrency/StdThreadFactory.cpp \
|
|
|
|
src/thrift/concurrency/StdThreadFactory.h \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/concurrency/Thread.h \
|
|
|
|
src/thrift/concurrency/ThreadManager.h \
|
|
|
|
src/thrift/concurrency/TimerManager.h \
|
|
|
|
src/thrift/concurrency/FunctionRunner.h \
|
|
|
|
src/thrift/concurrency/Util.h
|
2006-08-04 03:16:10 +00:00
|
|
|
|
2006-08-10 03:30:18 +00:00
|
|
|
include_protocoldir = $(include_thriftdir)/protocol
|
2006-08-04 03:16:10 +00:00
|
|
|
include_protocol_HEADERS = \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/protocol/TBinaryProtocol.h \
|
|
|
|
src/thrift/protocol/TBinaryProtocol.tcc \
|
|
|
|
src/thrift/protocol/TCompactProtocol.h \
|
|
|
|
src/thrift/protocol/TCompactProtocol.tcc \
|
|
|
|
src/thrift/protocol/TDenseProtocol.h \
|
|
|
|
src/thrift/protocol/TDebugProtocol.h \
|
|
|
|
src/thrift/protocol/TBase64Utils.h \
|
|
|
|
src/thrift/protocol/TJSONProtocol.h \
|
2013-03-26 21:14:03 +00:00
|
|
|
src/thrift/protocol/TMultiplexedProtocol.h \
|
|
|
|
src/thrift/protocol/TProtocolDecorator.h \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/protocol/TProtocolTap.h \
|
|
|
|
src/thrift/protocol/TProtocolException.h \
|
|
|
|
src/thrift/protocol/TVirtualProtocol.h \
|
|
|
|
src/thrift/protocol/TProtocol.h
|
2006-08-04 03:16:10 +00:00
|
|
|
|
2006-08-10 03:30:18 +00:00
|
|
|
include_transportdir = $(include_thriftdir)/transport
|
2006-08-04 03:16:10 +00:00
|
|
|
include_transport_HEADERS = \
|
2013-06-25 19:36:29 +00:00
|
|
|
src/thrift/transport/PlatformSocket.h \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/transport/TFDTransport.h \
|
|
|
|
src/thrift/transport/TFileTransport.h \
|
|
|
|
src/thrift/transport/TSimpleFileTransport.h \
|
|
|
|
src/thrift/transport/TServerSocket.h \
|
|
|
|
src/thrift/transport/TSSLServerSocket.h \
|
|
|
|
src/thrift/transport/TServerTransport.h \
|
|
|
|
src/thrift/transport/THttpTransport.h \
|
|
|
|
src/thrift/transport/THttpClient.h \
|
|
|
|
src/thrift/transport/THttpServer.h \
|
|
|
|
src/thrift/transport/TSocket.h \
|
2012-06-05 19:57:10 +00:00
|
|
|
src/thrift/transport/TPipe.h \
|
|
|
|
src/thrift/transport/TPipeServer.h \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/transport/TSSLSocket.h \
|
|
|
|
src/thrift/transport/TSocketPool.h \
|
|
|
|
src/thrift/transport/TVirtualTransport.h \
|
|
|
|
src/thrift/transport/TTransport.h \
|
|
|
|
src/thrift/transport/TTransportException.h \
|
|
|
|
src/thrift/transport/TTransportUtils.h \
|
|
|
|
src/thrift/transport/TBufferTransports.h \
|
|
|
|
src/thrift/transport/TShortReadTransport.h \
|
|
|
|
src/thrift/transport/TZlibTransport.h
|
2006-08-04 03:16:10 +00:00
|
|
|
|
2006-08-10 03:30:18 +00:00
|
|
|
include_serverdir = $(include_thriftdir)/server
|
2006-08-04 03:16:10 +00:00
|
|
|
include_server_HEADERS = \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/server/TServer.h \
|
|
|
|
src/thrift/server/TSimpleServer.h \
|
|
|
|
src/thrift/server/TThreadPoolServer.h \
|
|
|
|
src/thrift/server/TThreadedServer.h \
|
|
|
|
src/thrift/server/TNonblockingServer.h
|
2006-07-21 19:53:48 +00:00
|
|
|
|
2007-08-31 08:03:05 +00:00
|
|
|
include_processordir = $(include_thriftdir)/processor
|
|
|
|
include_processor_HEADERS = \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/processor/PeekProcessor.h \
|
2013-03-26 21:14:03 +00:00
|
|
|
src/thrift/processor/StatsProcessor.h \
|
|
|
|
src/thrift/processor/TMultiplexedProcessor.h
|
2007-08-31 08:03:05 +00:00
|
|
|
|
2010-10-06 17:09:37 +00:00
|
|
|
include_asyncdir = $(include_thriftdir)/async
|
|
|
|
include_async_HEADERS = \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/async/TAsyncChannel.h \
|
|
|
|
src/thrift/async/TAsyncDispatchProcessor.h \
|
|
|
|
src/thrift/async/TAsyncProcessor.h \
|
|
|
|
src/thrift/async/TAsyncBufferProcessor.h \
|
|
|
|
src/thrift/async/TAsyncProtocolProcessor.h \
|
|
|
|
src/thrift/async/TEvhttpClientChannel.h \
|
|
|
|
src/thrift/async/TEvhttpServer.h
|
2010-10-06 17:09:37 +00:00
|
|
|
|
2012-02-10 19:53:20 +00:00
|
|
|
include_qtdir = $(include_thriftdir)/qt
|
|
|
|
include_qt_HEADERS = \
|
2012-04-13 09:12:31 +00:00
|
|
|
src/thrift/qt/TQIODeviceTransport.h \
|
|
|
|
src/thrift/qt/TQTcpServer.h
|
2012-02-10 19:53:20 +00:00
|
|
|
|
2012-05-10 09:01:45 +00:00
|
|
|
THRIFT = $(top_builddir)/compiler/cpp/thrift
|
|
|
|
|
2011-11-16 12:58:36 +00:00
|
|
|
WINDOWS_DIST = \
|
2012-05-10 21:17:53 +00:00
|
|
|
src/thrift/windows \
|
2011-11-16 12:58:36 +00:00
|
|
|
thrift.sln \
|
|
|
|
libthrift.vcxproj \
|
|
|
|
libthrift.vcxproj.filters \
|
|
|
|
libthriftnb.vcxproj \
|
2014-07-10 13:14:51 +00:00
|
|
|
libthriftnb.vcxproj.filters \
|
|
|
|
3rdparty.props
|
2011-11-16 12:58:36 +00:00
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
EXTRA_DIST = \
|
2014-03-16 20:12:11 +00:00
|
|
|
README.md \
|
2008-02-06 22:18:40 +00:00
|
|
|
thrift-nb.pc.in \
|
|
|
|
thrift.pc.in \
|
2011-11-16 12:58:36 +00:00
|
|
|
thrift-z.pc.in \
|
2012-02-10 19:53:20 +00:00
|
|
|
thrift-qt.pc.in \
|
2014-12-07 12:45:33 +00:00
|
|
|
thrift-qt5.pc.in \
|
2011-11-16 12:58:36 +00:00
|
|
|
$(WINDOWS_DIST)
|
2014-11-13 14:33:38 +00:00
|
|
|
|
|
|
|
style-local:
|
|
|
|
$(CPPSTYLE_CMD)
|