blob: d9ab09208c9e15c3da0a5cb50ef3301a4d89c326 [file] [log] [blame]
David Reiss351e22b2010-08-31 16:51:19 +00001#
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#
Kevin Wojniaka3925662019-07-01 11:07:45 -070019AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc
Roger Meier81a1f992014-10-22 14:09:43 +020020
James E. King, IIIb4c190b2017-02-13 16:39:59 -050021BUILT_SOURCES = gen-cpp/AnnotationTest_types.h \
22 gen-cpp/DebugProtoTest_types.h \
Nobuaki Sukegawaa0c5ab72015-02-01 00:27:12 +090023 gen-cpp/EnumTest_types.h \
24 gen-cpp/OptionalRequiredTest_types.h \
25 gen-cpp/Recursive_types.h \
26 gen-cpp/ThriftTest_types.h \
Sven Roederer4f5bfd82024-07-17 15:27:24 +020027 gen-cpp/Thrift5272_types.h \
Nobuaki Sukegawaa0c5ab72015-02-01 00:27:12 +090028 gen-cpp/TypedefTest_types.h \
29 gen-cpp/ChildService.h \
Ben Craig1684c422015-04-24 08:52:44 -050030 gen-cpp/EmptyService.h \
Nobuaki Sukegawaa0c5ab72015-02-01 00:27:12 +090031 gen-cpp/ParentService.h \
Sven Roederer4f5bfd82024-07-17 15:27:24 +020032 gen-cpp/OneWayTest_types.h \
33 gen-cpp/OneWayService.h \
Nobuaki Sukegawaa0c5ab72015-02-01 00:27:12 +090034 gen-cpp/proc_types.h
35
Roger Meier2b1a5282012-05-11 10:12:39 +000036noinst_LTLIBRARIES = libtestgencpp.la libprocessortest.la
David Reiss351e22b2010-08-31 16:51:19 +000037nodist_libtestgencpp_la_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -050038 gen-cpp/AnnotationTest_types.cpp \
39 gen-cpp/AnnotationTest_types.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020040 gen-cpp/DebugProtoTest_types.cpp \
41 gen-cpp/DebugProtoTest_types.h \
Ozan Can Altioke46419b2018-03-20 15:02:28 +030042 gen-cpp/DoubleConstantsTest_constants.cpp \
43 gen-cpp/DoubleConstantsTest_constants.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020044 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 \
Roger Meiera5bf1a12014-10-22 23:26:01 +020052 gen-cpp/ThriftTest_constants.cpp \
53 gen-cpp/ThriftTest_constants.h \
Sven Roederer4f5bfd82024-07-17 15:27:24 +020054 gen-cpp/Thrift5272_types.cpp \
55 gen-cpp/Thrift5272_types.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020056 gen-cpp/TypedefTest_types.cpp \
57 gen-cpp/TypedefTest_types.h \
Chet Murthyad08a8b2017-12-19 15:55:56 -080058 gen-cpp/OneWayService.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -080059 gen-cpp/OneWayTest_types.h \
60 gen-cpp/OneWayService.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020061 ThriftTest_extras.cpp \
62 DebugProtoTest_extras.cpp
David Reiss351e22b2010-08-31 16:51:19 +000063
Roger Meier2b1a5282012-05-11 10:12:39 +000064nodist_libprocessortest_la_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +020065 gen-cpp/ChildService.cpp \
66 gen-cpp/ChildService.h \
Ben Craig1684c422015-04-24 08:52:44 -050067 gen-cpp/EmptyService.cpp \
68 gen-cpp/EmptyService.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020069 gen-cpp/ParentService.cpp \
70 gen-cpp/ParentService.h \
71 gen-cpp/proc_types.cpp \
72 gen-cpp/proc_types.h
Roger Meier2b1a5282012-05-11 10:12:39 +000073
David Reiss351e22b2010-08-31 16:51:19 +000074ThriftTest_extras.o: gen-cpp/ThriftTest_types.h
75DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h
76
77libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
78
Roger Meiera5bf1a12014-10-22 23:26:01 +020079noinst_PROGRAMS = Benchmark \
Roger Meiera5bf1a12014-10-22 23:26:01 +020080 concurrency_test
David Reiss351e22b2010-08-31 16:51:19 +000081
82Benchmark_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +020083 Benchmark.cpp
David Reiss351e22b2010-08-31 16:51:19 +000084
85Benchmark_LDADD = libtestgencpp.la
86
87check_PROGRAMS = \
Roger Meier01144552015-04-04 16:14:08 +020088 UnitTests \
CJCombrink4b909092024-04-27 19:51:39 +020089 UnitTestsUuid \
90 UnitTestsUuidNoDirective \
Jens Geyer79f988c2014-10-03 20:42:54 +020091 TFDTransportTest \
92 TPipedTransportTest \
93 DebugProtoTest \
94 JSONProtoTest \
95 OptionalRequiredTest \
96 RecursiveTest \
97 SpecializationTest \
98 AllProtocolsTest \
99 TransportTest \
ben-craigaf2d9c82015-07-16 08:11:21 -0500100 TInterruptTest \
Ben Craig1684c422015-04-24 08:52:44 -0500101 TServerIntegrationTest \
Jim Kingb0b710a2015-07-28 13:31:27 -0400102 SecurityTest \
Mario Emmenlauer0f14e2f2019-10-15 11:25:10 +0200103 SecurityFromBufferTest \
Jens Geyer79f988c2014-10-03 20:42:54 +0200104 ZlibTest \
105 TFileTransportTest \
Jens Geyer79f988c2014-10-03 20:42:54 +0200106 link_test \
107 OpenSSLManualInitTest \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500108 EnumTest \
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300109 RenderedDoubleConstantsTest \
Sven Roederer4f5bfd82024-07-17 15:27:24 +0200110 AnnotationTest
David Reiss351e22b2010-08-31 16:51:19 +0000111
Jens Geyer4461a2f2014-12-23 18:22:54 +0100112if AMX_HAVE_LIBEVENT
Nobuaki Sukegawa208738a2015-02-01 00:27:22 +0900113noinst_PROGRAMS += \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100114 processor_test
115check_PROGRAMS += \
Divya Thaluru808d1432017-08-06 16:36:36 -0700116 TNonblockingServerTest \
117 TNonblockingSSLServerTest
Jens Geyer4461a2f2014-12-23 18:22:54 +0100118endif
119
Roger Meier9e0f0742011-08-03 17:36:55 +0000120TESTS_ENVIRONMENT= \
Jens Geyer79f988c2014-10-03 20:42:54 +0200121 BOOST_TEST_LOG_SINK=tests.xml \
122 BOOST_TEST_LOG_LEVEL=test_suite \
Nobuaki Sukegawa3d600bf2016-01-23 22:45:20 +0900123 BOOST_TEST_LOG_FORMAT=XML
Roger Meier9e0f0742011-08-03 17:36:55 +0000124
David Reiss351e22b2010-08-31 16:51:19 +0000125TESTS = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200126 $(check_PROGRAMS)
David Reiss351e22b2010-08-31 16:51:19 +0000127
128UnitTests_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200129 UnitTestMain.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800130 OneWayHTTPTest.cpp \
Jens Geyer79f988c2014-10-03 20:42:54 +0200131 TMemoryBufferTest.cpp \
132 TBufferBaseTest.cpp \
133 Base64Test.cpp \
134 ToStringTest.cpp \
Roger Meier01144552015-04-04 16:14:08 +0200135 TypedefTest.cpp \
Ben Craig1684c422015-04-24 08:52:44 -0500136 TServerSocketTest.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400137 TServerTransportTest.cpp \
zeshuai00786352b42020-06-15 17:00:33 +0800138 TTransportCheckThrow.h \
CJCombrink4b909092024-04-27 19:51:39 +0200139 ThrifttReadCheckTests.cpp \
Sven Roederer4f5bfd82024-07-17 15:27:24 +0200140 Thrift5272.cpp \
CJCombrink4b909092024-04-27 19:51:39 +0200141 TUuidTest.cpp
Roger Meier12d70532011-12-14 23:35:28 +0000142
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000143UnitTests_LDADD = \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000144 libtestgencpp.la \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800145 $(BOOST_TEST_LDADD) \
146 $(BOOST_SYSTEM_LDADD) \
147 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000148
CJCombrink4b909092024-04-27 19:51:39 +0200149UnitTestsUuid_SOURCES = \
150 UnitTestMain.cpp \
151 TUuidTestBoost.cpp
152
153UnitTestsUuid_LDADD = \
154 libtestgencpp.la \
155 $(BOOST_TEST_LDADD) \
156 $(BOOST_SYSTEM_LDADD) \
157 $(BOOST_THREAD_LDADD)
158
159UnitTestsUuid_CPPFLAGS = \
160 $(AM_CPPFLAGS) \
161 -DTHRIFT_TUUID_SUPPORT_BOOST_UUID
162
163UnitTestsUuidNoDirective_SOURCES = \
164 UnitTestMain.cpp \
165 TUuidTestBoostNoDirective.cpp
166
167UnitTestsUuidNoDirective_LDADD = \
168 libtestgencpp.la \
169 $(BOOST_TEST_LDADD) \
170 $(BOOST_SYSTEM_LDADD) \
171 $(BOOST_THREAD_LDADD)
172
ben-craigaf2d9c82015-07-16 08:11:21 -0500173TInterruptTest_SOURCES = \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800174 TSocketInterruptTest.cpp \
175 TSSLSocketInterruptTest.cpp
Ben Craig1684c422015-04-24 08:52:44 -0500176
ben-craigaf2d9c82015-07-16 08:11:21 -0500177TInterruptTest_LDADD = \
Ben Craig1684c422015-04-24 08:52:44 -0500178 libtestgencpp.la \
179 $(BOOST_TEST_LDADD) \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800180 $(BOOST_FILESYSTEM_LDADD) \
Ben Craig1684c422015-04-24 08:52:44 -0500181 $(BOOST_CHRONO_LDADD) \
182 $(BOOST_SYSTEM_LDADD) \
183 $(BOOST_THREAD_LDADD)
184
185TServerIntegrationTest_SOURCES = \
186 TServerIntegrationTest.cpp
187
188TServerIntegrationTest_LDADD = \
189 libtestgencpp.la \
190 libprocessortest.la \
191 $(BOOST_TEST_LDADD) \
192 $(BOOST_SYSTEM_LDADD) \
193 $(BOOST_THREAD_LDADD)
194
Jim Kingb0b710a2015-07-28 13:31:27 -0400195SecurityTest_SOURCES = \
196 SecurityTest.cpp
197
198SecurityTest_LDADD = \
199 libtestgencpp.la \
200 libprocessortest.la \
201 $(BOOST_TEST_LDADD) \
202 $(BOOST_FILESYSTEM_LDADD) \
203 $(BOOST_SYSTEM_LDADD) \
204 $(BOOST_THREAD_LDADD)
205
Mario Emmenlauer0f14e2f2019-10-15 11:25:10 +0200206SecurityFromBufferTest_SOURCES = \
207 SecurityFromBufferTest.cpp
208
209SecurityFromBufferTest_LDADD = \
210 libtestgencpp.la \
211 libprocessortest.la \
212 $(BOOST_TEST_LDADD) \
213 $(BOOST_FILESYSTEM_LDADD) \
214 $(BOOST_SYSTEM_LDADD) \
215 $(BOOST_THREAD_LDADD)
216
David Reiss35dc7692010-10-06 17:10:19 +0000217TransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200218 TransportTest.cpp
David Reiss35dc7692010-10-06 17:10:19 +0000219
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000220TransportTest_LDADD = \
221 libtestgencpp.la \
222 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100223 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000224 -lz
David Reiss35dc7692010-10-06 17:10:19 +0000225
David Reiss9a961e72010-10-06 17:10:23 +0000226ZlibTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200227 ZlibTest.cpp
David Reiss9a961e72010-10-06 17:10:23 +0000228
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000229ZlibTest_LDADD = \
230 libtestgencpp.la \
231 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100232 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000233 -lz
David Reiss9a961e72010-10-06 17:10:23 +0000234
Jens Geyerae0b22c2014-09-04 23:04:21 +0200235EnumTest_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500236 EnumTest.cpp
Jens Geyerae0b22c2014-09-04 23:04:21 +0200237
238EnumTest_LDADD = \
239 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100240 $(BOOST_TEST_LDADD)
Jens Geyerae0b22c2014-09-04 23:04:21 +0200241
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300242RenderedDoubleConstantsTest_SOURCES = RenderedDoubleConstantsTest.cpp
243
244RenderedDoubleConstantsTest_LDADD = libtestgencpp.la $(BOOST_TEST_LDADD)
245
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500246AnnotationTest_SOURCES = \
247 AnnotationTest.cpp
248
249AnnotationTest_LDADD = \
250 libtestgencpp.la \
251 $(BOOST_TEST_LDADD)
252
David Reiss709b69f2010-10-06 17:10:30 +0000253TFileTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200254 TFileTransportTest.cpp
David Reiss709b69f2010-10-06 17:10:30 +0000255
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000256TFileTransportTest_LDADD = \
257 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100258 $(BOOST_TEST_LDADD)
David Reiss709b69f2010-10-06 17:10:30 +0000259
David Reiss351e22b2010-08-31 16:51:19 +0000260#
261# TFDTransportTest
262#
263TFDTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200264 TFDTransportTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000265
Claudius Heine5ef662b2015-06-24 10:03:50 +0200266TFDTransportTest_LDADD = \
267 $(top_builddir)/lib/cpp/libthrift.la \
268 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000269
270
271#
272# TPipedTransportTest
273#
274TPipedTransportTest_SOURCES = \
jfarrellf13e4312015-08-25 00:39:29 -0400275 TPipedTransportTest.cpp \
276 TPipeInterruptTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000277
278TPipedTransportTest_LDADD = \
jfarrelle2e5e222015-08-25 14:59:40 -0400279 libtestgencpp.la \
Claudius Heine5ef662b2015-06-24 10:03:50 +0200280 $(top_builddir)/lib/cpp/libthrift.la \
jfarrelle2e5e222015-08-25 14:59:40 -0400281 $(BOOST_TEST_LDADD) \
282 $(BOOST_SYSTEM_LDADD) \
283 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000284
285#
286# AllProtocolsTest
287#
288AllProtocolsTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200289 AllProtocolTests.cpp \
290 AllProtocolTests.tcc \
291 GenericHelpers.h
David Reiss351e22b2010-08-31 16:51:19 +0000292
Claudius Heine5ef662b2015-06-24 10:03:50 +0200293AllProtocolsTest_LDADD = \
294 libtestgencpp.la \
295 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000296
297#
298# DebugProtoTest
299#
300DebugProtoTest_SOURCES = \
ben-craigaf2d9c82015-07-16 08:11:21 -0500301 DebugProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000302
Claudius Heine5ef662b2015-06-24 10:03:50 +0200303DebugProtoTest_LDADD = \
304 libtestgencpp.la \
305 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000306
307
308#
309# JSONProtoTest
310#
311JSONProtoTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200312 JSONProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000313
Claudius Heine5ef662b2015-06-24 10:03:50 +0200314JSONProtoTest_LDADD = \
315 libtestgencpp.la \
316 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000317
318#
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900319# TNonblockingServerTest
320#
321TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
322
323TNonblockingServerTest_LDADD = libprocessortest.la \
324 $(top_builddir)/lib/cpp/libthrift.la \
325 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100326 $(BOOST_TEST_LDADD) \
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900327 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100328 $(LIBEVENT_LIBS)
Divya Thaluru808d1432017-08-06 16:36:36 -0700329#
330# TNonblockingSSLServerTest
331#
332TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp
333
334TNonblockingSSLServerTest_LDADD = libprocessortest.la \
335 $(top_builddir)/lib/cpp/libthrift.la \
336 $(top_builddir)/lib/cpp/libthriftnb.la \
337 $(BOOST_TEST_LDADD) \
338 $(BOOST_LDFLAGS) \
339 $(BOOST_FILESYSTEM_LDADD) \
340 $(BOOST_CHRONO_LDADD) \
341 $(BOOST_SYSTEM_LDADD) \
342 $(BOOST_THREAD_LDADD) \
343 $(LIBEVENT_LIBS)
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900344
345#
David Reiss351e22b2010-08-31 16:51:19 +0000346# OptionalRequiredTest
347#
348OptionalRequiredTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200349 OptionalRequiredTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000350
Claudius Heine5ef662b2015-06-24 10:03:50 +0200351OptionalRequiredTest_LDADD = \
352 libtestgencpp.la \
353 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000354
David Reisse71115b2010-10-06 17:09:56 +0000355#
jfarrelle0e83162014-04-08 22:45:01 -0400356# OptionalRequiredTest
357#
358RecursiveTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200359 RecursiveTest.cpp
jfarrelle0e83162014-04-08 22:45:01 -0400360
Claudius Heine5ef662b2015-06-24 10:03:50 +0200361RecursiveTest_LDADD = \
362 libtestgencpp.la \
363 $(BOOST_TEST_LDADD)
364
365#
David Reisse71115b2010-10-06 17:09:56 +0000366# SpecializationTest
367#
368SpecializationTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200369 SpecializationTest.cpp
David Reisse71115b2010-10-06 17:09:56 +0000370
Claudius Heine5ef662b2015-06-24 10:03:50 +0200371SpecializationTest_LDADD = \
372 libtestgencpp.la \
373 $(BOOST_TEST_LDADD)
David Reisse71115b2010-10-06 17:09:56 +0000374
Roger Meier2b1a5282012-05-11 10:12:39 +0000375concurrency_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200376 concurrency/Tests.cpp \
377 concurrency/ThreadFactoryTests.h \
378 concurrency/ThreadManagerTests.h \
379 concurrency/TimerManagerTests.h
David Reiss351e22b2010-08-31 16:51:19 +0000380
Roger Meier2b1a5282012-05-11 10:12:39 +0000381concurrency_test_LDADD = \
382 $(top_builddir)/lib/cpp/libthrift.la
383
Roger Meier63fcb7e2014-06-15 21:48:59 +0200384link_test_SOURCES = \
385 link/LinkTest.cpp \
386 link/TemplatedService1.cpp \
387 link/TemplatedService2.cpp
388
Roger Meier2b1a5282012-05-11 10:12:39 +0000389processor_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200390 processor/ProcessorTest.cpp \
391 processor/EventLog.cpp \
392 processor/ServerThread.cpp \
393 processor/EventLog.h \
394 processor/Handlers.h \
395 processor/ServerThread.h
Roger Meier2b1a5282012-05-11 10:12:39 +0000396
397processor_test_LDADD = libprocessortest.la \
398 $(top_builddir)/lib/cpp/libthrift.la \
399 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100400 $(BOOST_TEST_LDADD) \
Roger Meier2b1a5282012-05-11 10:12:39 +0000401 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100402 $(LIBEVENT_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500403
404OpenSSLManualInitTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200405 OpenSSLManualInitTest.cpp
Alan Dunnbee7b732014-07-26 13:48:43 -0500406
407OpenSSLManualInitTest_LDADD = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200408 $(top_builddir)/lib/cpp/libthrift.la \
Nobuaki Sukegawaa8370852016-01-19 00:48:46 +0900409 $(BOOST_TEST_LDADD) \
410 $(OPENSSL_LDFLAGS) \
411 $(OPENSSL_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500412
David Reiss351e22b2010-08-31 16:51:19 +0000413#
414# Common thrift code generation rules
415#
Sven Roederer4f5bfd82024-07-17 15:27:24 +0200416# files from /test
417#
David Reiss351e22b2010-08-31 16:51:19 +0000418
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500419gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
420 $(THRIFT) --gen cpp $<
421
CJCombrink4b909092024-04-27 19:51:39 +0200422gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h gen-cpp/EmptyService.cpp gen-cpp/EmptyService.h: $(top_srcdir)/test/DebugProtoTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700423 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000424
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300425gen-cpp/DoubleConstantsTest_constants.cpp gen-cpp/DoubleConstantsTest_constants.h: $(top_srcdir)/test/DoubleConstantsTest.thrift
426 $(THRIFT) --gen cpp $<
427
Jens Geyerae0b22c2014-09-04 23:04:21 +0200428gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200429 $(THRIFT) --gen cpp $<
Jens Geyerae0b22c2014-09-04 23:04:21 +0200430
Jens Geyer089bcd32014-09-11 22:36:41 +0200431gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200432 $(THRIFT) --gen cpp $<
Jens Geyer089bcd32014-09-11 22:36:41 +0200433
David Reiss351e22b2010-08-31 16:51:19 +0000434gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700435 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000436
jfarrelle0e83162014-04-08 22:45:01 -0400437gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200438 $(THRIFT) --gen cpp $<
jfarrelle0e83162014-04-08 22:45:01 -0400439
David Reiss351e22b2010-08-31 16:51:19 +0000440gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700441 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000442
CJCombrink4b909092024-04-27 19:51:39 +0200443gen-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
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700444 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000445
Sven Roederer4f5bfd82024-07-17 15:27:24 +0200446# files from /lib/cpp/test
447
zeshuai00757c25072020-04-09 11:17:05 +0800448gen-cpp/OneWayService.cpp gen-cpp/OneWayTest_types.h gen-cpp/OneWayService.h: OneWayTest.thrift
Chet Murthyad08a8b2017-12-19 15:55:56 -0800449 $(THRIFT) --gen cpp $<
450
Sven Roederer4f5bfd82024-07-17 15:27:24 +0200451gen-cpp/Thrift5272_types.cpp gen-cpp/Thrift5272_types.h: Thrift5272.thrift
452 $(THRIFT) --gen cpp $<
453
Roger Meier6f28c042014-11-01 20:31:44 +0100454gen-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
Jens Geyer79f988c2014-10-03 20:42:54 +0200455 $(THRIFT) --gen cpp:templates,cob_style $<
Roger Meier2b1a5282012-05-11 10:12:39 +0000456
Kevin Wojniaka3925662019-07-01 11:07:45 -0700457AM_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.
Roger Meier38315782011-11-06 11:29:41 +0000458AM_LDFLAGS = $(BOOST_LDFLAGS)
Roger Meiercb0754d2014-10-21 21:28:04 +0200459AM_CXXFLAGS = -Wall -Wextra -pedantic
David Reiss351e22b2010-08-31 16:51:19 +0000460
461clean-local:
Nobuaki Sukegawad3f7d0e2015-11-03 13:42:00 +0900462 $(RM) gen-cpp/*
David Reiss351e22b2010-08-31 16:51:19 +0000463
Thomas63f04582024-03-21 22:51:07 +0900464distdir:
465 $(MAKE) $(AM_MAKEFLAGS) distdir-am
466
David Reiss351e22b2010-08-31 16:51:19 +0000467EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200468 concurrency \
jfarrellf13e4312015-08-25 00:39:29 -0400469 processor \
470 qt \
471 CMakeLists.txt \
472 DebugProtoTest_extras.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800473 ThriftTest_extras.cpp \
474 OneWayTest.thrift