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
10 # http://www.apache.org/licenses/LICENSE-2.0
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
19 AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc
21 BUILT_SOURCES = gen-cpp/AnnotationTest_types.h \
22 gen-cpp/DebugProtoTest_types.h \
23 gen-cpp/EnumTest_types.h \
24 gen-cpp/OptionalRequiredTest_types.h \
25 gen-cpp/Recursive_types.h \
26 gen-cpp/ThriftTest_types.h \
27 gen-cpp/TypedefTest_types.h \
28 gen-cpp/ChildService.h \
29 gen-cpp/EmptyService.h \
30 gen-cpp/ParentService.h \
31 gen-cpp/OneWayTest_types.h \
32 gen-cpp/OneWayService.h \
33 gen-cpp/OneWayTest_constants.h \
36 noinst_LTLIBRARIES = libtestgencpp.la libprocessortest.la
37 nodist_libtestgencpp_la_SOURCES = \
38 gen-cpp/AnnotationTest_types.cpp \
39 gen-cpp/AnnotationTest_types.h \
40 gen-cpp/DebugProtoTest_types.cpp \
41 gen-cpp/DebugProtoTest_types.h \
42 gen-cpp/DoubleConstantsTest_constants.cpp \
43 gen-cpp/DoubleConstantsTest_constants.h \
44 gen-cpp/EnumTest_types.cpp \
45 gen-cpp/EnumTest_types.h \
46 gen-cpp/OptionalRequiredTest_types.cpp \
47 gen-cpp/OptionalRequiredTest_types.h \
48 gen-cpp/Recursive_types.cpp \
49 gen-cpp/Recursive_types.h \
50 gen-cpp/ThriftTest_types.cpp \
51 gen-cpp/ThriftTest_types.h \
52 gen-cpp/ThriftTest_constants.cpp \
53 gen-cpp/ThriftTest_constants.h \
54 gen-cpp/TypedefTest_types.cpp \
55 gen-cpp/TypedefTest_types.h \
56 gen-cpp/OneWayService.cpp \
57 gen-cpp/OneWayTest_constants.cpp \
58 gen-cpp/OneWayTest_types.h \
59 gen-cpp/OneWayService.h \
60 gen-cpp/OneWayTest_constants.h \
61 gen-cpp/OneWayTest_types.cpp \
62 ThriftTest_extras.cpp \
63 DebugProtoTest_extras.cpp
65 nodist_libprocessortest_la_SOURCES = \
66 gen-cpp/ChildService.cpp \
67 gen-cpp/ChildService.h \
68 gen-cpp/EmptyService.cpp \
69 gen-cpp/EmptyService.h \
70 gen-cpp/ParentService.cpp \
71 gen-cpp/ParentService.h \
72 gen-cpp/proc_types.cpp \
75 ThriftTest_extras.o: gen-cpp/ThriftTest_types.h
76 DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h
78 libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
80 noinst_PROGRAMS = Benchmark \
86 Benchmark_LDADD = libtestgencpp.la
94 OptionalRequiredTest \
100 TServerIntegrationTest \
105 OpenSSLManualInitTest \
107 RenderedDoubleConstantsTest \
114 TNonblockingServerTest \
115 TNonblockingSSLServerTest
119 BOOST_TEST_LOG_SINK=tests.xml \
120 BOOST_TEST_LOG_LEVEL=test_suite \
121 BOOST_TEST_LOG_FORMAT=XML
126 UnitTests_SOURCES = \
129 TMemoryBufferTest.cpp \
130 TBufferBaseTest.cpp \
134 TServerSocketTest.cpp \
135 TServerTransportTest.cpp \
136 TTransportCheckThrow.h
140 $(BOOST_TEST_LDADD) \
141 $(BOOST_SYSTEM_LDADD) \
142 $(BOOST_THREAD_LDADD)
144 TInterruptTest_SOURCES = \
145 TSocketInterruptTest.cpp \
146 TSSLSocketInterruptTest.cpp
148 TInterruptTest_LDADD = \
150 $(BOOST_TEST_LDADD) \
151 $(BOOST_FILESYSTEM_LDADD) \
152 $(BOOST_CHRONO_LDADD) \
153 $(BOOST_SYSTEM_LDADD) \
154 $(BOOST_THREAD_LDADD)
156 TServerIntegrationTest_SOURCES = \
157 TServerIntegrationTest.cpp
159 TServerIntegrationTest_LDADD = \
161 libprocessortest.la \
162 $(BOOST_TEST_LDADD) \
163 $(BOOST_SYSTEM_LDADD) \
164 $(BOOST_THREAD_LDADD)
166 SecurityTest_SOURCES = \
169 SecurityTest_LDADD = \
171 libprocessortest.la \
172 $(BOOST_TEST_LDADD) \
173 $(BOOST_FILESYSTEM_LDADD) \
174 $(BOOST_SYSTEM_LDADD) \
175 $(BOOST_THREAD_LDADD)
177 TransportTest_SOURCES = \
180 TransportTest_LDADD = \
182 $(top_builddir)/lib/cpp/libthriftz.la \
183 $(BOOST_TEST_LDADD) \
191 $(top_builddir)/lib/cpp/libthriftz.la \
192 $(BOOST_TEST_LDADD) \
202 RenderedDoubleConstantsTest_SOURCES = RenderedDoubleConstantsTest.cpp
204 RenderedDoubleConstantsTest_LDADD = libtestgencpp.la $(BOOST_TEST_LDADD)
206 AnnotationTest_SOURCES = \
209 AnnotationTest_LDADD = \
213 TFileTransportTest_SOURCES = \
214 TFileTransportTest.cpp
216 TFileTransportTest_LDADD = \
223 TFDTransportTest_SOURCES = \
226 TFDTransportTest_LDADD = \
227 $(top_builddir)/lib/cpp/libthrift.la \
232 # TPipedTransportTest
234 TPipedTransportTest_SOURCES = \
235 TPipedTransportTest.cpp \
236 TPipeInterruptTest.cpp
238 TPipedTransportTest_LDADD = \
240 $(top_builddir)/lib/cpp/libthrift.la \
241 $(BOOST_TEST_LDADD) \
242 $(BOOST_SYSTEM_LDADD) \
243 $(BOOST_THREAD_LDADD)
248 AllProtocolsTest_SOURCES = \
249 AllProtocolTests.cpp \
250 AllProtocolTests.tcc \
253 AllProtocolsTest_LDADD = \
260 DebugProtoTest_SOURCES = \
263 DebugProtoTest_LDADD = \
271 JSONProtoTest_SOURCES = \
274 JSONProtoTest_LDADD = \
279 # TNonblockingServerTest
281 TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
283 TNonblockingServerTest_LDADD = libprocessortest.la \
284 $(top_builddir)/lib/cpp/libthrift.la \
285 $(top_builddir)/lib/cpp/libthriftnb.la \
286 $(BOOST_TEST_LDADD) \
290 # TNonblockingSSLServerTest
292 TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp
294 TNonblockingSSLServerTest_LDADD = libprocessortest.la \
295 $(top_builddir)/lib/cpp/libthrift.la \
296 $(top_builddir)/lib/cpp/libthriftnb.la \
297 $(BOOST_TEST_LDADD) \
299 $(BOOST_FILESYSTEM_LDADD) \
300 $(BOOST_CHRONO_LDADD) \
301 $(BOOST_SYSTEM_LDADD) \
302 $(BOOST_THREAD_LDADD) \
306 # OptionalRequiredTest
308 OptionalRequiredTest_SOURCES = \
309 OptionalRequiredTest.cpp
311 OptionalRequiredTest_LDADD = \
316 # OptionalRequiredTest
318 RecursiveTest_SOURCES = \
321 RecursiveTest_LDADD = \
328 SpecializationTest_SOURCES = \
329 SpecializationTest.cpp
331 SpecializationTest_LDADD = \
335 concurrency_test_SOURCES = \
336 concurrency/Tests.cpp \
337 concurrency/ThreadFactoryTests.h \
338 concurrency/ThreadManagerTests.h \
339 concurrency/TimerManagerTests.h
341 concurrency_test_LDADD = \
342 $(top_builddir)/lib/cpp/libthrift.la
344 link_test_SOURCES = \
346 link/TemplatedService1.cpp \
347 link/TemplatedService2.cpp
349 processor_test_SOURCES = \
350 processor/ProcessorTest.cpp \
351 processor/EventLog.cpp \
352 processor/ServerThread.cpp \
353 processor/EventLog.h \
354 processor/Handlers.h \
355 processor/ServerThread.h
357 processor_test_LDADD = libprocessortest.la \
358 $(top_builddir)/lib/cpp/libthrift.la \
359 $(top_builddir)/lib/cpp/libthriftnb.la \
360 $(BOOST_TEST_LDADD) \
364 OpenSSLManualInitTest_SOURCES = \
365 OpenSSLManualInitTest.cpp
367 OpenSSLManualInitTest_LDADD = \
368 $(top_builddir)/lib/cpp/libthrift.la \
369 $(BOOST_TEST_LDADD) \
374 # Common thrift code generation rules
377 gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
378 $(THRIFT) --gen cpp $<
380 gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h gen-cpp/EmptyService.cpp gen-cpp/EmptyService.h: $(top_srcdir)/test/DebugProtoTest.thrift
381 $(THRIFT) --gen cpp $<
383 gen-cpp/DoubleConstantsTest_constants.cpp gen-cpp/DoubleConstantsTest_constants.h: $(top_srcdir)/test/DoubleConstantsTest.thrift
384 $(THRIFT) --gen cpp $<
387 gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
388 $(THRIFT) --gen cpp $<
390 gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
391 $(THRIFT) --gen cpp $<
393 gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
394 $(THRIFT) --gen cpp $<
396 gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
397 $(THRIFT) --gen cpp $<
399 gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
400 $(THRIFT) --gen cpp $<
402 gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_types.h: $(top_srcdir)/test/ThriftTest.thrift
403 $(THRIFT) --gen cpp $<
405 gen-cpp/OneWayService.cpp gen-cpp/OneWayTest_constants.cpp gen-cpp/OneWayTest_types.h gen-cpp/OneWayService.h gen-cpp/OneWayTest_constants.h gen-cpp/OneWayTest_types.cpp: OneWayTest.thrift
406 $(THRIFT) --gen cpp $<
408 gen-cpp/ChildService.cpp gen-cpp/ChildService.h gen-cpp/ParentService.cpp gen-cpp/ParentService.h gen-cpp/proc_types.cpp gen-cpp/proc_types.h: processor/proc.thrift
409 $(THRIFT) --gen cpp:templates,cob_style $<
411 AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src -I$(top_srcdir)/lib/cpp/src/thrift -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I.
412 AM_LDFLAGS = $(BOOST_LDFLAGS)
413 AM_CXXFLAGS = -Wall -Wextra -pedantic
423 DebugProtoTest_extras.cpp \
424 ThriftTest_extras.cpp \