blob: adb923a10b76303508e36a0b6616ef3fa4d2fcf4 [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 \
27 gen-cpp/TypedefTest_types.h \
28 gen-cpp/ChildService.h \
Ben Craig1684c422015-04-24 08:52:44 -050029 gen-cpp/EmptyService.h \
Nobuaki Sukegawaa0c5ab72015-02-01 00:27:12 +090030 gen-cpp/ParentService.h \
Chet Murthyad08a8b2017-12-19 15:55:56 -080031 gen-cpp/OneWayTest_types.h \
32 gen-cpp/OneWayService.h \
Nobuaki Sukegawaa0c5ab72015-02-01 00:27:12 +090033 gen-cpp/proc_types.h
34
Roger Meier2b1a5282012-05-11 10:12:39 +000035noinst_LTLIBRARIES = libtestgencpp.la libprocessortest.la
David Reiss351e22b2010-08-31 16:51:19 +000036nodist_libtestgencpp_la_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -050037 gen-cpp/AnnotationTest_types.cpp \
38 gen-cpp/AnnotationTest_types.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020039 gen-cpp/DebugProtoTest_types.cpp \
40 gen-cpp/DebugProtoTest_types.h \
Ozan Can Altioke46419b2018-03-20 15:02:28 +030041 gen-cpp/DoubleConstantsTest_constants.cpp \
42 gen-cpp/DoubleConstantsTest_constants.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020043 gen-cpp/EnumTest_types.cpp \
44 gen-cpp/EnumTest_types.h \
45 gen-cpp/OptionalRequiredTest_types.cpp \
46 gen-cpp/OptionalRequiredTest_types.h \
47 gen-cpp/Recursive_types.cpp \
48 gen-cpp/Recursive_types.h \
49 gen-cpp/ThriftTest_types.cpp \
50 gen-cpp/ThriftTest_types.h \
Roger Meiera5bf1a12014-10-22 23:26:01 +020051 gen-cpp/ThriftTest_constants.cpp \
52 gen-cpp/ThriftTest_constants.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020053 gen-cpp/TypedefTest_types.cpp \
54 gen-cpp/TypedefTest_types.h \
Chet Murthyad08a8b2017-12-19 15:55:56 -080055 gen-cpp/OneWayService.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -080056 gen-cpp/OneWayTest_types.h \
57 gen-cpp/OneWayService.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020058 ThriftTest_extras.cpp \
59 DebugProtoTest_extras.cpp
David Reiss351e22b2010-08-31 16:51:19 +000060
Roger Meier2b1a5282012-05-11 10:12:39 +000061nodist_libprocessortest_la_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +020062 gen-cpp/ChildService.cpp \
63 gen-cpp/ChildService.h \
Ben Craig1684c422015-04-24 08:52:44 -050064 gen-cpp/EmptyService.cpp \
65 gen-cpp/EmptyService.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020066 gen-cpp/ParentService.cpp \
67 gen-cpp/ParentService.h \
68 gen-cpp/proc_types.cpp \
69 gen-cpp/proc_types.h
Roger Meier2b1a5282012-05-11 10:12:39 +000070
David Reiss351e22b2010-08-31 16:51:19 +000071ThriftTest_extras.o: gen-cpp/ThriftTest_types.h
72DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h
73
74libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
75
Roger Meiera5bf1a12014-10-22 23:26:01 +020076noinst_PROGRAMS = Benchmark \
Roger Meiera5bf1a12014-10-22 23:26:01 +020077 concurrency_test
David Reiss351e22b2010-08-31 16:51:19 +000078
79Benchmark_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +020080 Benchmark.cpp
David Reiss351e22b2010-08-31 16:51:19 +000081
82Benchmark_LDADD = libtestgencpp.la
83
84check_PROGRAMS = \
Roger Meier01144552015-04-04 16:14:08 +020085 UnitTests \
CJCombrink4b909092024-04-27 19:51:39 +020086 UnitTestsUuid \
87 UnitTestsUuidNoDirective \
Jens Geyer79f988c2014-10-03 20:42:54 +020088 TFDTransportTest \
89 TPipedTransportTest \
90 DebugProtoTest \
91 JSONProtoTest \
92 OptionalRequiredTest \
93 RecursiveTest \
94 SpecializationTest \
95 AllProtocolsTest \
96 TransportTest \
ben-craigaf2d9c82015-07-16 08:11:21 -050097 TInterruptTest \
Ben Craig1684c422015-04-24 08:52:44 -050098 TServerIntegrationTest \
Jim Kingb0b710a2015-07-28 13:31:27 -040099 SecurityTest \
Mario Emmenlauer0f14e2f2019-10-15 11:25:10 +0200100 SecurityFromBufferTest \
Jens Geyer79f988c2014-10-03 20:42:54 +0200101 ZlibTest \
102 TFileTransportTest \
Jens Geyer79f988c2014-10-03 20:42:54 +0200103 link_test \
104 OpenSSLManualInitTest \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500105 EnumTest \
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300106 RenderedDoubleConstantsTest \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500107 AnnotationTest
David Reiss351e22b2010-08-31 16:51:19 +0000108
Jens Geyer4461a2f2014-12-23 18:22:54 +0100109if AMX_HAVE_LIBEVENT
Nobuaki Sukegawa208738a2015-02-01 00:27:22 +0900110noinst_PROGRAMS += \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100111 processor_test
112check_PROGRAMS += \
Divya Thaluru808d1432017-08-06 16:36:36 -0700113 TNonblockingServerTest \
114 TNonblockingSSLServerTest
Jens Geyer4461a2f2014-12-23 18:22:54 +0100115endif
116
Roger Meier9e0f0742011-08-03 17:36:55 +0000117TESTS_ENVIRONMENT= \
Jens Geyer79f988c2014-10-03 20:42:54 +0200118 BOOST_TEST_LOG_SINK=tests.xml \
119 BOOST_TEST_LOG_LEVEL=test_suite \
Nobuaki Sukegawa3d600bf2016-01-23 22:45:20 +0900120 BOOST_TEST_LOG_FORMAT=XML
Roger Meier9e0f0742011-08-03 17:36:55 +0000121
David Reiss351e22b2010-08-31 16:51:19 +0000122TESTS = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200123 $(check_PROGRAMS)
David Reiss351e22b2010-08-31 16:51:19 +0000124
125UnitTests_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200126 UnitTestMain.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800127 OneWayHTTPTest.cpp \
Jens Geyer79f988c2014-10-03 20:42:54 +0200128 TMemoryBufferTest.cpp \
129 TBufferBaseTest.cpp \
130 Base64Test.cpp \
131 ToStringTest.cpp \
Roger Meier01144552015-04-04 16:14:08 +0200132 TypedefTest.cpp \
Ben Craig1684c422015-04-24 08:52:44 -0500133 TServerSocketTest.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400134 TServerTransportTest.cpp \
zeshuai00786352b42020-06-15 17:00:33 +0800135 TTransportCheckThrow.h \
CJCombrink4b909092024-04-27 19:51:39 +0200136 ThrifttReadCheckTests.cpp \
137 TUuidTest.cpp
Roger Meier12d70532011-12-14 23:35:28 +0000138
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000139UnitTests_LDADD = \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000140 libtestgencpp.la \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800141 $(BOOST_TEST_LDADD) \
142 $(BOOST_SYSTEM_LDADD) \
143 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000144
CJCombrink4b909092024-04-27 19:51:39 +0200145UnitTestsUuid_SOURCES = \
146 UnitTestMain.cpp \
147 TUuidTestBoost.cpp
148
149UnitTestsUuid_LDADD = \
150 libtestgencpp.la \
151 $(BOOST_TEST_LDADD) \
152 $(BOOST_SYSTEM_LDADD) \
153 $(BOOST_THREAD_LDADD)
154
155UnitTestsUuid_CPPFLAGS = \
156 $(AM_CPPFLAGS) \
157 -DTHRIFT_TUUID_SUPPORT_BOOST_UUID
158
159UnitTestsUuidNoDirective_SOURCES = \
160 UnitTestMain.cpp \
161 TUuidTestBoostNoDirective.cpp
162
163UnitTestsUuidNoDirective_LDADD = \
164 libtestgencpp.la \
165 $(BOOST_TEST_LDADD) \
166 $(BOOST_SYSTEM_LDADD) \
167 $(BOOST_THREAD_LDADD)
168
ben-craigaf2d9c82015-07-16 08:11:21 -0500169TInterruptTest_SOURCES = \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800170 TSocketInterruptTest.cpp \
171 TSSLSocketInterruptTest.cpp
Ben Craig1684c422015-04-24 08:52:44 -0500172
ben-craigaf2d9c82015-07-16 08:11:21 -0500173TInterruptTest_LDADD = \
Ben Craig1684c422015-04-24 08:52:44 -0500174 libtestgencpp.la \
175 $(BOOST_TEST_LDADD) \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800176 $(BOOST_FILESYSTEM_LDADD) \
Ben Craig1684c422015-04-24 08:52:44 -0500177 $(BOOST_CHRONO_LDADD) \
178 $(BOOST_SYSTEM_LDADD) \
179 $(BOOST_THREAD_LDADD)
180
181TServerIntegrationTest_SOURCES = \
182 TServerIntegrationTest.cpp
183
184TServerIntegrationTest_LDADD = \
185 libtestgencpp.la \
186 libprocessortest.la \
187 $(BOOST_TEST_LDADD) \
188 $(BOOST_SYSTEM_LDADD) \
189 $(BOOST_THREAD_LDADD)
190
Jim Kingb0b710a2015-07-28 13:31:27 -0400191SecurityTest_SOURCES = \
192 SecurityTest.cpp
193
194SecurityTest_LDADD = \
195 libtestgencpp.la \
196 libprocessortest.la \
197 $(BOOST_TEST_LDADD) \
198 $(BOOST_FILESYSTEM_LDADD) \
199 $(BOOST_SYSTEM_LDADD) \
200 $(BOOST_THREAD_LDADD)
201
Mario Emmenlauer0f14e2f2019-10-15 11:25:10 +0200202SecurityFromBufferTest_SOURCES = \
203 SecurityFromBufferTest.cpp
204
205SecurityFromBufferTest_LDADD = \
206 libtestgencpp.la \
207 libprocessortest.la \
208 $(BOOST_TEST_LDADD) \
209 $(BOOST_FILESYSTEM_LDADD) \
210 $(BOOST_SYSTEM_LDADD) \
211 $(BOOST_THREAD_LDADD)
212
David Reiss35dc7692010-10-06 17:10:19 +0000213TransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200214 TransportTest.cpp
David Reiss35dc7692010-10-06 17:10:19 +0000215
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000216TransportTest_LDADD = \
217 libtestgencpp.la \
218 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100219 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000220 -lz
David Reiss35dc7692010-10-06 17:10:19 +0000221
David Reiss9a961e72010-10-06 17:10:23 +0000222ZlibTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200223 ZlibTest.cpp
David Reiss9a961e72010-10-06 17:10:23 +0000224
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000225ZlibTest_LDADD = \
226 libtestgencpp.la \
227 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100228 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000229 -lz
David Reiss9a961e72010-10-06 17:10:23 +0000230
Jens Geyerae0b22c2014-09-04 23:04:21 +0200231EnumTest_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500232 EnumTest.cpp
Jens Geyerae0b22c2014-09-04 23:04:21 +0200233
234EnumTest_LDADD = \
235 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100236 $(BOOST_TEST_LDADD)
Jens Geyerae0b22c2014-09-04 23:04:21 +0200237
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300238RenderedDoubleConstantsTest_SOURCES = RenderedDoubleConstantsTest.cpp
239
240RenderedDoubleConstantsTest_LDADD = libtestgencpp.la $(BOOST_TEST_LDADD)
241
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500242AnnotationTest_SOURCES = \
243 AnnotationTest.cpp
244
245AnnotationTest_LDADD = \
246 libtestgencpp.la \
247 $(BOOST_TEST_LDADD)
248
David Reiss709b69f2010-10-06 17:10:30 +0000249TFileTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200250 TFileTransportTest.cpp
David Reiss709b69f2010-10-06 17:10:30 +0000251
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000252TFileTransportTest_LDADD = \
253 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100254 $(BOOST_TEST_LDADD)
David Reiss709b69f2010-10-06 17:10:30 +0000255
David Reiss351e22b2010-08-31 16:51:19 +0000256#
257# TFDTransportTest
258#
259TFDTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200260 TFDTransportTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000261
Claudius Heine5ef662b2015-06-24 10:03:50 +0200262TFDTransportTest_LDADD = \
263 $(top_builddir)/lib/cpp/libthrift.la \
264 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000265
266
267#
268# TPipedTransportTest
269#
270TPipedTransportTest_SOURCES = \
jfarrellf13e4312015-08-25 00:39:29 -0400271 TPipedTransportTest.cpp \
272 TPipeInterruptTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000273
274TPipedTransportTest_LDADD = \
jfarrelle2e5e222015-08-25 14:59:40 -0400275 libtestgencpp.la \
Claudius Heine5ef662b2015-06-24 10:03:50 +0200276 $(top_builddir)/lib/cpp/libthrift.la \
jfarrelle2e5e222015-08-25 14:59:40 -0400277 $(BOOST_TEST_LDADD) \
278 $(BOOST_SYSTEM_LDADD) \
279 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000280
281#
282# AllProtocolsTest
283#
284AllProtocolsTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200285 AllProtocolTests.cpp \
286 AllProtocolTests.tcc \
287 GenericHelpers.h
David Reiss351e22b2010-08-31 16:51:19 +0000288
Claudius Heine5ef662b2015-06-24 10:03:50 +0200289AllProtocolsTest_LDADD = \
290 libtestgencpp.la \
291 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000292
293#
294# DebugProtoTest
295#
296DebugProtoTest_SOURCES = \
ben-craigaf2d9c82015-07-16 08:11:21 -0500297 DebugProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000298
Claudius Heine5ef662b2015-06-24 10:03:50 +0200299DebugProtoTest_LDADD = \
300 libtestgencpp.la \
301 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000302
303
304#
305# JSONProtoTest
306#
307JSONProtoTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200308 JSONProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000309
Claudius Heine5ef662b2015-06-24 10:03:50 +0200310JSONProtoTest_LDADD = \
311 libtestgencpp.la \
312 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000313
314#
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900315# TNonblockingServerTest
316#
317TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
318
319TNonblockingServerTest_LDADD = libprocessortest.la \
320 $(top_builddir)/lib/cpp/libthrift.la \
321 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100322 $(BOOST_TEST_LDADD) \
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900323 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100324 $(LIBEVENT_LIBS)
Divya Thaluru808d1432017-08-06 16:36:36 -0700325#
326# TNonblockingSSLServerTest
327#
328TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp
329
330TNonblockingSSLServerTest_LDADD = libprocessortest.la \
331 $(top_builddir)/lib/cpp/libthrift.la \
332 $(top_builddir)/lib/cpp/libthriftnb.la \
333 $(BOOST_TEST_LDADD) \
334 $(BOOST_LDFLAGS) \
335 $(BOOST_FILESYSTEM_LDADD) \
336 $(BOOST_CHRONO_LDADD) \
337 $(BOOST_SYSTEM_LDADD) \
338 $(BOOST_THREAD_LDADD) \
339 $(LIBEVENT_LIBS)
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900340
341#
David Reiss351e22b2010-08-31 16:51:19 +0000342# OptionalRequiredTest
343#
344OptionalRequiredTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200345 OptionalRequiredTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000346
Claudius Heine5ef662b2015-06-24 10:03:50 +0200347OptionalRequiredTest_LDADD = \
348 libtestgencpp.la \
349 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000350
David Reisse71115b2010-10-06 17:09:56 +0000351#
jfarrelle0e83162014-04-08 22:45:01 -0400352# OptionalRequiredTest
353#
354RecursiveTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200355 RecursiveTest.cpp
jfarrelle0e83162014-04-08 22:45:01 -0400356
Claudius Heine5ef662b2015-06-24 10:03:50 +0200357RecursiveTest_LDADD = \
358 libtestgencpp.la \
359 $(BOOST_TEST_LDADD)
360
361#
David Reisse71115b2010-10-06 17:09:56 +0000362# SpecializationTest
363#
364SpecializationTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200365 SpecializationTest.cpp
David Reisse71115b2010-10-06 17:09:56 +0000366
Claudius Heine5ef662b2015-06-24 10:03:50 +0200367SpecializationTest_LDADD = \
368 libtestgencpp.la \
369 $(BOOST_TEST_LDADD)
David Reisse71115b2010-10-06 17:09:56 +0000370
Roger Meier2b1a5282012-05-11 10:12:39 +0000371concurrency_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200372 concurrency/Tests.cpp \
373 concurrency/ThreadFactoryTests.h \
374 concurrency/ThreadManagerTests.h \
375 concurrency/TimerManagerTests.h
David Reiss351e22b2010-08-31 16:51:19 +0000376
Roger Meier2b1a5282012-05-11 10:12:39 +0000377concurrency_test_LDADD = \
378 $(top_builddir)/lib/cpp/libthrift.la
379
Roger Meier63fcb7e2014-06-15 21:48:59 +0200380link_test_SOURCES = \
381 link/LinkTest.cpp \
382 link/TemplatedService1.cpp \
383 link/TemplatedService2.cpp
384
Roger Meier2b1a5282012-05-11 10:12:39 +0000385processor_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200386 processor/ProcessorTest.cpp \
387 processor/EventLog.cpp \
388 processor/ServerThread.cpp \
389 processor/EventLog.h \
390 processor/Handlers.h \
391 processor/ServerThread.h
Roger Meier2b1a5282012-05-11 10:12:39 +0000392
393processor_test_LDADD = libprocessortest.la \
394 $(top_builddir)/lib/cpp/libthrift.la \
395 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100396 $(BOOST_TEST_LDADD) \
Roger Meier2b1a5282012-05-11 10:12:39 +0000397 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100398 $(LIBEVENT_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500399
400OpenSSLManualInitTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200401 OpenSSLManualInitTest.cpp
Alan Dunnbee7b732014-07-26 13:48:43 -0500402
403OpenSSLManualInitTest_LDADD = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200404 $(top_builddir)/lib/cpp/libthrift.la \
Nobuaki Sukegawaa8370852016-01-19 00:48:46 +0900405 $(BOOST_TEST_LDADD) \
406 $(OPENSSL_LDFLAGS) \
407 $(OPENSSL_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500408
David Reiss351e22b2010-08-31 16:51:19 +0000409#
410# Common thrift code generation rules
411#
David Reiss351e22b2010-08-31 16:51:19 +0000412
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500413gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
414 $(THRIFT) --gen cpp $<
415
CJCombrink4b909092024-04-27 19:51:39 +0200416gen-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 -0700417 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000418
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300419gen-cpp/DoubleConstantsTest_constants.cpp gen-cpp/DoubleConstantsTest_constants.h: $(top_srcdir)/test/DoubleConstantsTest.thrift
420 $(THRIFT) --gen cpp $<
421
422
Jens Geyerae0b22c2014-09-04 23:04:21 +0200423gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200424 $(THRIFT) --gen cpp $<
Jens Geyerae0b22c2014-09-04 23:04:21 +0200425
Jens Geyer089bcd32014-09-11 22:36:41 +0200426gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200427 $(THRIFT) --gen cpp $<
Jens Geyer089bcd32014-09-11 22:36:41 +0200428
David Reiss351e22b2010-08-31 16:51:19 +0000429gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700430 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000431
jfarrelle0e83162014-04-08 22:45:01 -0400432gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200433 $(THRIFT) --gen cpp $<
jfarrelle0e83162014-04-08 22:45:01 -0400434
David Reiss351e22b2010-08-31 16:51:19 +0000435gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700436 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000437
CJCombrink4b909092024-04-27 19:51:39 +0200438gen-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 -0700439 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000440
zeshuai00757c25072020-04-09 11:17:05 +0800441gen-cpp/OneWayService.cpp gen-cpp/OneWayTest_types.h gen-cpp/OneWayService.h: OneWayTest.thrift
Chet Murthyad08a8b2017-12-19 15:55:56 -0800442 $(THRIFT) --gen cpp $<
443
Roger Meier6f28c042014-11-01 20:31:44 +0100444gen-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 +0200445 $(THRIFT) --gen cpp:templates,cob_style $<
Roger Meier2b1a5282012-05-11 10:12:39 +0000446
Kevin Wojniaka3925662019-07-01 11:07:45 -0700447AM_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 +0000448AM_LDFLAGS = $(BOOST_LDFLAGS)
Roger Meiercb0754d2014-10-21 21:28:04 +0200449AM_CXXFLAGS = -Wall -Wextra -pedantic
David Reiss351e22b2010-08-31 16:51:19 +0000450
451clean-local:
Nobuaki Sukegawad3f7d0e2015-11-03 13:42:00 +0900452 $(RM) gen-cpp/*
David Reiss351e22b2010-08-31 16:51:19 +0000453
Thomas63f04582024-03-21 22:51:07 +0900454distdir:
455 $(MAKE) $(AM_MAKEFLAGS) distdir-am
456
David Reiss351e22b2010-08-31 16:51:19 +0000457EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200458 concurrency \
jfarrellf13e4312015-08-25 00:39:29 -0400459 processor \
460 qt \
461 CMakeLists.txt \
462 DebugProtoTest_extras.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800463 ThriftTest_extras.cpp \
464 OneWayTest.thrift