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.
|
|
|
|
#
|
|
|
|
|
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
|
2011-11-06 11:29:41 +00:00
|
|
|
libthrift_la_LDFLAGS = -release $(VERSION) $(BOOST_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
|
2006-08-03 18:58:09 +00:00
|
|
|
|
2011-12-12 22:00:23 +00:00
|
|
|
AM_CXXFLAGS = -Wall -Wextra -std=c++0x -pedantic
|
2008-06-11 01:16:45 +00:00
|
|
|
AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(srcdir)/src
|
2011-10-02 10:51:45 +00:00
|
|
|
AM_LDFLAGS = $(BOOST_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
|
|
|
|
2007-09-17 21:15:47 +00:00
|
|
|
libthrift_la_SOURCES = src/Thrift.cpp \
|
2010-03-10 22:11:26 +00:00
|
|
|
src/TApplicationException.cpp \
|
2011-11-16 12:58:36 +00:00
|
|
|
src/VirtualProfiling.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/concurrency/ThreadManager.cpp \
|
|
|
|
src/concurrency/TimerManager.cpp \
|
2008-07-11 00:45:29 +00:00
|
|
|
src/concurrency/Util.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/protocol/TDebugProtocol.cpp \
|
|
|
|
src/protocol/TDenseProtocol.cpp \
|
2008-02-18 01:49:37 +00:00
|
|
|
src/protocol/TJSONProtocol.cpp \
|
|
|
|
src/protocol/TBase64Utils.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/transport/TTransportException.cpp \
|
2008-04-08 05:06:59 +00:00
|
|
|
src/transport/TFDTransport.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/transport/TFileTransport.cpp \
|
2009-03-26 06:23:57 +00:00
|
|
|
src/transport/TSimpleFileTransport.cpp \
|
2010-08-12 23:03:29 +00:00
|
|
|
src/transport/THttpTransport.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/transport/THttpClient.cpp \
|
2010-08-12 23:03:29 +00:00
|
|
|
src/transport/THttpServer.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/transport/TSocket.cpp \
|
2011-02-22 18:12:06 +00:00
|
|
|
src/transport/TSSLSocket.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/transport/TSocketPool.cpp \
|
|
|
|
src/transport/TServerSocket.cpp \
|
2011-02-22 18:12:06 +00:00
|
|
|
src/transport/TSSLServerSocket.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/transport/TTransportUtils.cpp \
|
2008-05-01 06:17:36 +00:00
|
|
|
src/transport/TBufferTransports.cpp \
|
2008-02-26 05:12:08 +00:00
|
|
|
src/server/TServer.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/server/TSimpleServer.cpp \
|
|
|
|
src/server/TThreadPoolServer.cpp \
|
|
|
|
src/server/TThreadedServer.cpp \
|
2011-07-17 07:28:28 +00:00
|
|
|
src/async/TAsyncChannel.cpp \
|
2007-09-17 21:15:47 +00:00
|
|
|
src/processor/PeekProcessor.cpp
|
|
|
|
|
2011-10-02 10:51:45 +00:00
|
|
|
if WITH_BOOSTTHREADS
|
|
|
|
libthrift_la_SOURCES += src/concurrency/BoostThreadFactory.cpp \
|
|
|
|
src/concurrency/BoostMonitor.cpp \
|
|
|
|
src/concurrency/BoostMutex.cpp
|
|
|
|
else
|
|
|
|
libthrift_la_SOURCES += src/concurrency/Mutex.cpp \
|
|
|
|
src/concurrency/Monitor.cpp \
|
|
|
|
src/concurrency/PosixThreadFactory.cpp
|
|
|
|
endif
|
|
|
|
|
2010-10-06 17:09:37 +00:00
|
|
|
libthriftnb_la_SOURCES = src/server/TNonblockingServer.cpp \
|
2011-07-17 07:28:28 +00:00
|
|
|
src/async/TAsyncProtocolProcessor.cpp \
|
|
|
|
src/async/TEvhttpServer.cpp \
|
|
|
|
src/async/TEvhttpClientChannel.cpp
|
2007-09-17 21:15:47 +00:00
|
|
|
|
2007-09-17 23:20:38 +00:00
|
|
|
libthriftz_la_SOURCES = src/transport/TZlibTransport.cpp
|
|
|
|
|
|
|
|
# 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)
|
2010-11-24 21:58:05 +00:00
|
|
|
libthriftnb_la_CXXFLAGS = $(AM_CXXFLAGS)
|
|
|
|
libthriftz_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)
|
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 \
|
2011-12-08 02:02:20 +00:00
|
|
|
src/TDispatchProcessor.h \
|
2007-03-27 23:17:34 +00:00
|
|
|
src/Thrift.h \
|
2008-02-06 22:18:40 +00:00
|
|
|
src/TReflectionLocal.h \
|
2007-03-27 23:17:34 +00:00
|
|
|
src/TProcessor.h \
|
2010-03-10 22:11:26 +00:00
|
|
|
src/TApplicationException.h \
|
2007-03-27 23:17:34 +00:00
|
|
|
src/TLogging.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 = \
|
2011-11-16 12:58:36 +00:00
|
|
|
src/concurrency/BoostThreadFactory.h \
|
2007-03-27 23:17:34 +00:00
|
|
|
src/concurrency/Exception.h \
|
2006-10-28 00:51:14 +00:00
|
|
|
src/concurrency/Mutex.h \
|
2006-08-03 18:58:09 +00:00
|
|
|
src/concurrency/Monitor.h \
|
2011-11-16 12:58:36 +00:00
|
|
|
src/concurrency/PlatformThreadFactory.h \
|
2006-08-03 18:58:09 +00:00
|
|
|
src/concurrency/PosixThreadFactory.h \
|
|
|
|
src/concurrency/Thread.h \
|
|
|
|
src/concurrency/ThreadManager.h \
|
2006-08-17 01:23:12 +00:00
|
|
|
src/concurrency/TimerManager.h \
|
2009-03-18 23:59:56 +00:00
|
|
|
src/concurrency/FunctionRunner.h \
|
2007-11-28 05:54:33 +00:00
|
|
|
src/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 = \
|
2006-08-03 18:58:09 +00:00
|
|
|
src/protocol/TBinaryProtocol.h \
|
2010-10-06 17:09:56 +00:00
|
|
|
src/protocol/TBinaryProtocol.tcc \
|
2009-04-02 21:37:17 +00:00
|
|
|
src/protocol/TCompactProtocol.h \
|
2010-10-06 17:09:56 +00:00
|
|
|
src/protocol/TCompactProtocol.tcc \
|
2007-09-18 19:46:00 +00:00
|
|
|
src/protocol/TDenseProtocol.h \
|
2007-07-21 01:18:10 +00:00
|
|
|
src/protocol/TDebugProtocol.h \
|
2008-04-21 18:07:58 +00:00
|
|
|
src/protocol/TBase64Utils.h \
|
|
|
|
src/protocol/TJSONProtocol.h \
|
2008-04-08 05:06:45 +00:00
|
|
|
src/protocol/TProtocolTap.h \
|
2007-02-20 20:59:21 +00:00
|
|
|
src/protocol/TProtocolException.h \
|
2010-10-06 17:09:52 +00:00
|
|
|
src/protocol/TVirtualProtocol.h \
|
2006-08-04 03:16:10 +00:00
|
|
|
src/protocol/TProtocol.h
|
|
|
|
|
2006-08-10 03:30:18 +00:00
|
|
|
include_transportdir = $(include_thriftdir)/transport
|
2006-08-04 03:16:10 +00:00
|
|
|
include_transport_HEADERS = \
|
2008-04-08 05:06:59 +00:00
|
|
|
src/transport/TFDTransport.h \
|
2006-12-09 00:58:15 +00:00
|
|
|
src/transport/TFileTransport.h \
|
2009-03-26 06:23:57 +00:00
|
|
|
src/transport/TSimpleFileTransport.h \
|
2006-07-21 19:53:48 +00:00
|
|
|
src/transport/TServerSocket.h \
|
2011-02-22 18:12:06 +00:00
|
|
|
src/transport/TSSLServerSocket.h \
|
2006-07-21 19:53:48 +00:00
|
|
|
src/transport/TServerTransport.h \
|
2010-08-12 23:03:29 +00:00
|
|
|
src/transport/THttpTransport.h \
|
2007-02-27 05:16:23 +00:00
|
|
|
src/transport/THttpClient.h \
|
2010-08-12 23:03:29 +00:00
|
|
|
src/transport/THttpServer.h \
|
2006-07-21 19:53:48 +00:00
|
|
|
src/transport/TSocket.h \
|
2011-02-22 18:12:06 +00:00
|
|
|
src/transport/TSSLSocket.h \
|
2007-05-08 17:51:49 +00:00
|
|
|
src/transport/TSocketPool.h \
|
2010-10-06 17:09:50 +00:00
|
|
|
src/transport/TVirtualTransport.h \
|
2006-07-21 19:53:48 +00:00
|
|
|
src/transport/TTransport.h \
|
2006-09-07 01:26:35 +00:00
|
|
|
src/transport/TTransportException.h \
|
2007-09-17 23:20:38 +00:00
|
|
|
src/transport/TTransportUtils.h \
|
2008-05-01 06:17:36 +00:00
|
|
|
src/transport/TBufferTransports.h \
|
2009-03-18 23:59:56 +00:00
|
|
|
src/transport/TShortReadTransport.h \
|
2007-09-17 23:20:38 +00:00
|
|
|
src/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 = \
|
|
|
|
src/server/TServer.h \
|
2006-08-03 18:58:09 +00:00
|
|
|
src/server/TSimpleServer.h \
|
2006-10-10 01:37:40 +00:00
|
|
|
src/server/TThreadPoolServer.h \
|
2007-02-01 22:55:00 +00:00
|
|
|
src/server/TThreadedServer.h \
|
2006-10-10 01:37:40 +00:00
|
|
|
src/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 = \
|
|
|
|
src/processor/PeekProcessor.h \
|
|
|
|
src/processor/StatsProcessor.h
|
|
|
|
|
2010-10-06 17:09:37 +00:00
|
|
|
include_asyncdir = $(include_thriftdir)/async
|
|
|
|
include_async_HEADERS = \
|
|
|
|
src/async/TAsyncChannel.h \
|
2011-12-08 02:02:20 +00:00
|
|
|
src/async/TAsyncDispatchProcessor.h \
|
2010-10-06 17:09:37 +00:00
|
|
|
src/async/TAsyncProcessor.h \
|
|
|
|
src/async/TAsyncBufferProcessor.h \
|
|
|
|
src/async/TAsyncProtocolProcessor.h \
|
|
|
|
src/async/TEvhttpClientChannel.h \
|
2011-06-28 17:43:30 +00:00
|
|
|
src/async/TEvhttpServer.h
|
2010-10-06 17:09:37 +00:00
|
|
|
|
|
|
|
|
2007-09-18 19:46:00 +00:00
|
|
|
noinst_PROGRAMS = concurrency_test
|
2006-07-21 19:53:48 +00:00
|
|
|
|
2011-11-16 12:58:36 +00:00
|
|
|
concurrency_test_SOURCES = \
|
|
|
|
src/concurrency/test/Tests.cpp \
|
2006-07-21 19:53:48 +00:00
|
|
|
src/concurrency/test/ThreadFactoryTests.h \
|
|
|
|
src/concurrency/test/ThreadManagerTests.h \
|
|
|
|
src/concurrency/test/TimerManagerTests.h
|
|
|
|
|
2006-08-09 01:20:16 +00:00
|
|
|
concurrency_test_LDADD = libthrift.la
|
2006-07-21 19:53:48 +00:00
|
|
|
|
2011-11-16 12:58:36 +00:00
|
|
|
WINDOWS_DIST = \
|
|
|
|
README_WINDOWS \
|
|
|
|
src/windows \
|
|
|
|
thrift.sln \
|
|
|
|
libthrift.vcxproj \
|
|
|
|
libthrift.vcxproj.filters \
|
|
|
|
libthriftnb.vcxproj \
|
|
|
|
libthriftnb.vcxproj.filters
|
|
|
|
|
2007-12-28 18:25:33 +00:00
|
|
|
EXTRA_DIST = \
|
2008-02-06 22:18:40 +00:00
|
|
|
README \
|
2011-11-16 12:58:36 +00:00
|
|
|
README.SSL \
|
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 \
|
|
|
|
$(WINDOWS_DIST)
|