blob: 7f630db10b96de49d0c3fdba116cbd6e6a07b051 [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 \
Jens Geyer79f988c2014-10-03 20:42:54 +020086 TFDTransportTest \
87 TPipedTransportTest \
88 DebugProtoTest \
89 JSONProtoTest \
90 OptionalRequiredTest \
91 RecursiveTest \
92 SpecializationTest \
93 AllProtocolsTest \
94 TransportTest \
ben-craigaf2d9c82015-07-16 08:11:21 -050095 TInterruptTest \
Ben Craig1684c422015-04-24 08:52:44 -050096 TServerIntegrationTest \
Jim Kingb0b710a2015-07-28 13:31:27 -040097 SecurityTest \
Mario Emmenlauer0f14e2f2019-10-15 11:25:10 +020098 SecurityFromBufferTest \
Jens Geyer79f988c2014-10-03 20:42:54 +020099 ZlibTest \
100 TFileTransportTest \
Jens Geyer79f988c2014-10-03 20:42:54 +0200101 link_test \
102 OpenSSLManualInitTest \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500103 EnumTest \
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300104 RenderedDoubleConstantsTest \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500105 AnnotationTest
David Reiss351e22b2010-08-31 16:51:19 +0000106
Jens Geyer4461a2f2014-12-23 18:22:54 +0100107if AMX_HAVE_LIBEVENT
Nobuaki Sukegawa208738a2015-02-01 00:27:22 +0900108noinst_PROGRAMS += \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100109 processor_test
110check_PROGRAMS += \
Divya Thaluru808d1432017-08-06 16:36:36 -0700111 TNonblockingServerTest \
112 TNonblockingSSLServerTest
Jens Geyer4461a2f2014-12-23 18:22:54 +0100113endif
114
Roger Meier9e0f0742011-08-03 17:36:55 +0000115TESTS_ENVIRONMENT= \
Jens Geyer79f988c2014-10-03 20:42:54 +0200116 BOOST_TEST_LOG_SINK=tests.xml \
117 BOOST_TEST_LOG_LEVEL=test_suite \
Nobuaki Sukegawa3d600bf2016-01-23 22:45:20 +0900118 BOOST_TEST_LOG_FORMAT=XML
Roger Meier9e0f0742011-08-03 17:36:55 +0000119
David Reiss351e22b2010-08-31 16:51:19 +0000120TESTS = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200121 $(check_PROGRAMS)
David Reiss351e22b2010-08-31 16:51:19 +0000122
123UnitTests_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200124 UnitTestMain.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800125 OneWayHTTPTest.cpp \
Jens Geyer79f988c2014-10-03 20:42:54 +0200126 TMemoryBufferTest.cpp \
127 TBufferBaseTest.cpp \
128 Base64Test.cpp \
129 ToStringTest.cpp \
Roger Meier01144552015-04-04 16:14:08 +0200130 TypedefTest.cpp \
Ben Craig1684c422015-04-24 08:52:44 -0500131 TServerSocketTest.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400132 TServerTransportTest.cpp \
zeshuai00786352b42020-06-15 17:00:33 +0800133 TTransportCheckThrow.h \
134 ThrifttReadCheckTests.cpp
Roger Meier12d70532011-12-14 23:35:28 +0000135
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000136UnitTests_LDADD = \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000137 libtestgencpp.la \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800138 $(BOOST_TEST_LDADD) \
139 $(BOOST_SYSTEM_LDADD) \
140 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000141
ben-craigaf2d9c82015-07-16 08:11:21 -0500142TInterruptTest_SOURCES = \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800143 TSocketInterruptTest.cpp \
144 TSSLSocketInterruptTest.cpp
Ben Craig1684c422015-04-24 08:52:44 -0500145
ben-craigaf2d9c82015-07-16 08:11:21 -0500146TInterruptTest_LDADD = \
Ben Craig1684c422015-04-24 08:52:44 -0500147 libtestgencpp.la \
148 $(BOOST_TEST_LDADD) \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800149 $(BOOST_FILESYSTEM_LDADD) \
Ben Craig1684c422015-04-24 08:52:44 -0500150 $(BOOST_CHRONO_LDADD) \
151 $(BOOST_SYSTEM_LDADD) \
152 $(BOOST_THREAD_LDADD)
153
154TServerIntegrationTest_SOURCES = \
155 TServerIntegrationTest.cpp
156
157TServerIntegrationTest_LDADD = \
158 libtestgencpp.la \
159 libprocessortest.la \
160 $(BOOST_TEST_LDADD) \
161 $(BOOST_SYSTEM_LDADD) \
162 $(BOOST_THREAD_LDADD)
163
Jim Kingb0b710a2015-07-28 13:31:27 -0400164SecurityTest_SOURCES = \
165 SecurityTest.cpp
166
167SecurityTest_LDADD = \
168 libtestgencpp.la \
169 libprocessortest.la \
170 $(BOOST_TEST_LDADD) \
171 $(BOOST_FILESYSTEM_LDADD) \
172 $(BOOST_SYSTEM_LDADD) \
173 $(BOOST_THREAD_LDADD)
174
Mario Emmenlauer0f14e2f2019-10-15 11:25:10 +0200175SecurityFromBufferTest_SOURCES = \
176 SecurityFromBufferTest.cpp
177
178SecurityFromBufferTest_LDADD = \
179 libtestgencpp.la \
180 libprocessortest.la \
181 $(BOOST_TEST_LDADD) \
182 $(BOOST_FILESYSTEM_LDADD) \
183 $(BOOST_SYSTEM_LDADD) \
184 $(BOOST_THREAD_LDADD)
185
David Reiss35dc7692010-10-06 17:10:19 +0000186TransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200187 TransportTest.cpp
David Reiss35dc7692010-10-06 17:10:19 +0000188
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000189TransportTest_LDADD = \
190 libtestgencpp.la \
191 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100192 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000193 -lz
David Reiss35dc7692010-10-06 17:10:19 +0000194
David Reiss9a961e72010-10-06 17:10:23 +0000195ZlibTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200196 ZlibTest.cpp
David Reiss9a961e72010-10-06 17:10:23 +0000197
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000198ZlibTest_LDADD = \
199 libtestgencpp.la \
200 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100201 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000202 -lz
David Reiss9a961e72010-10-06 17:10:23 +0000203
Jens Geyerae0b22c2014-09-04 23:04:21 +0200204EnumTest_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500205 EnumTest.cpp
Jens Geyerae0b22c2014-09-04 23:04:21 +0200206
207EnumTest_LDADD = \
208 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100209 $(BOOST_TEST_LDADD)
Jens Geyerae0b22c2014-09-04 23:04:21 +0200210
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300211RenderedDoubleConstantsTest_SOURCES = RenderedDoubleConstantsTest.cpp
212
213RenderedDoubleConstantsTest_LDADD = libtestgencpp.la $(BOOST_TEST_LDADD)
214
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500215AnnotationTest_SOURCES = \
216 AnnotationTest.cpp
217
218AnnotationTest_LDADD = \
219 libtestgencpp.la \
220 $(BOOST_TEST_LDADD)
221
David Reiss709b69f2010-10-06 17:10:30 +0000222TFileTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200223 TFileTransportTest.cpp
David Reiss709b69f2010-10-06 17:10:30 +0000224
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000225TFileTransportTest_LDADD = \
226 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100227 $(BOOST_TEST_LDADD)
David Reiss709b69f2010-10-06 17:10:30 +0000228
David Reiss351e22b2010-08-31 16:51:19 +0000229#
230# TFDTransportTest
231#
232TFDTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200233 TFDTransportTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000234
Claudius Heine5ef662b2015-06-24 10:03:50 +0200235TFDTransportTest_LDADD = \
236 $(top_builddir)/lib/cpp/libthrift.la \
237 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000238
239
240#
241# TPipedTransportTest
242#
243TPipedTransportTest_SOURCES = \
jfarrellf13e4312015-08-25 00:39:29 -0400244 TPipedTransportTest.cpp \
245 TPipeInterruptTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000246
247TPipedTransportTest_LDADD = \
jfarrelle2e5e222015-08-25 14:59:40 -0400248 libtestgencpp.la \
Claudius Heine5ef662b2015-06-24 10:03:50 +0200249 $(top_builddir)/lib/cpp/libthrift.la \
jfarrelle2e5e222015-08-25 14:59:40 -0400250 $(BOOST_TEST_LDADD) \
251 $(BOOST_SYSTEM_LDADD) \
252 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000253
254#
255# AllProtocolsTest
256#
257AllProtocolsTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200258 AllProtocolTests.cpp \
259 AllProtocolTests.tcc \
260 GenericHelpers.h
David Reiss351e22b2010-08-31 16:51:19 +0000261
Claudius Heine5ef662b2015-06-24 10:03:50 +0200262AllProtocolsTest_LDADD = \
263 libtestgencpp.la \
264 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000265
266#
267# DebugProtoTest
268#
269DebugProtoTest_SOURCES = \
ben-craigaf2d9c82015-07-16 08:11:21 -0500270 DebugProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000271
Claudius Heine5ef662b2015-06-24 10:03:50 +0200272DebugProtoTest_LDADD = \
273 libtestgencpp.la \
274 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000275
276
277#
278# JSONProtoTest
279#
280JSONProtoTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200281 JSONProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000282
Claudius Heine5ef662b2015-06-24 10:03:50 +0200283JSONProtoTest_LDADD = \
284 libtestgencpp.la \
285 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000286
287#
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900288# TNonblockingServerTest
289#
290TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
291
292TNonblockingServerTest_LDADD = libprocessortest.la \
293 $(top_builddir)/lib/cpp/libthrift.la \
294 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100295 $(BOOST_TEST_LDADD) \
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900296 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100297 $(LIBEVENT_LIBS)
Divya Thaluru808d1432017-08-06 16:36:36 -0700298#
299# TNonblockingSSLServerTest
300#
301TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp
302
303TNonblockingSSLServerTest_LDADD = libprocessortest.la \
304 $(top_builddir)/lib/cpp/libthrift.la \
305 $(top_builddir)/lib/cpp/libthriftnb.la \
306 $(BOOST_TEST_LDADD) \
307 $(BOOST_LDFLAGS) \
308 $(BOOST_FILESYSTEM_LDADD) \
309 $(BOOST_CHRONO_LDADD) \
310 $(BOOST_SYSTEM_LDADD) \
311 $(BOOST_THREAD_LDADD) \
312 $(LIBEVENT_LIBS)
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900313
314#
David Reiss351e22b2010-08-31 16:51:19 +0000315# OptionalRequiredTest
316#
317OptionalRequiredTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200318 OptionalRequiredTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000319
Claudius Heine5ef662b2015-06-24 10:03:50 +0200320OptionalRequiredTest_LDADD = \
321 libtestgencpp.la \
322 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000323
David Reisse71115b2010-10-06 17:09:56 +0000324#
jfarrelle0e83162014-04-08 22:45:01 -0400325# OptionalRequiredTest
326#
327RecursiveTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200328 RecursiveTest.cpp
jfarrelle0e83162014-04-08 22:45:01 -0400329
Claudius Heine5ef662b2015-06-24 10:03:50 +0200330RecursiveTest_LDADD = \
331 libtestgencpp.la \
332 $(BOOST_TEST_LDADD)
333
334#
David Reisse71115b2010-10-06 17:09:56 +0000335# SpecializationTest
336#
337SpecializationTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200338 SpecializationTest.cpp
David Reisse71115b2010-10-06 17:09:56 +0000339
Claudius Heine5ef662b2015-06-24 10:03:50 +0200340SpecializationTest_LDADD = \
341 libtestgencpp.la \
342 $(BOOST_TEST_LDADD)
David Reisse71115b2010-10-06 17:09:56 +0000343
Roger Meier2b1a5282012-05-11 10:12:39 +0000344concurrency_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200345 concurrency/Tests.cpp \
346 concurrency/ThreadFactoryTests.h \
347 concurrency/ThreadManagerTests.h \
348 concurrency/TimerManagerTests.h
David Reiss351e22b2010-08-31 16:51:19 +0000349
Roger Meier2b1a5282012-05-11 10:12:39 +0000350concurrency_test_LDADD = \
351 $(top_builddir)/lib/cpp/libthrift.la
352
Roger Meier63fcb7e2014-06-15 21:48:59 +0200353link_test_SOURCES = \
354 link/LinkTest.cpp \
355 link/TemplatedService1.cpp \
356 link/TemplatedService2.cpp
357
Roger Meier2b1a5282012-05-11 10:12:39 +0000358processor_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200359 processor/ProcessorTest.cpp \
360 processor/EventLog.cpp \
361 processor/ServerThread.cpp \
362 processor/EventLog.h \
363 processor/Handlers.h \
364 processor/ServerThread.h
Roger Meier2b1a5282012-05-11 10:12:39 +0000365
366processor_test_LDADD = libprocessortest.la \
367 $(top_builddir)/lib/cpp/libthrift.la \
368 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100369 $(BOOST_TEST_LDADD) \
Roger Meier2b1a5282012-05-11 10:12:39 +0000370 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100371 $(LIBEVENT_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500372
373OpenSSLManualInitTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200374 OpenSSLManualInitTest.cpp
Alan Dunnbee7b732014-07-26 13:48:43 -0500375
376OpenSSLManualInitTest_LDADD = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200377 $(top_builddir)/lib/cpp/libthrift.la \
Nobuaki Sukegawaa8370852016-01-19 00:48:46 +0900378 $(BOOST_TEST_LDADD) \
379 $(OPENSSL_LDFLAGS) \
380 $(OPENSSL_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500381
David Reiss351e22b2010-08-31 16:51:19 +0000382#
383# Common thrift code generation rules
384#
David Reiss351e22b2010-08-31 16:51:19 +0000385
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500386gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
387 $(THRIFT) --gen cpp $<
388
Ben Craig1684c422015-04-24 08:52:44 -0500389gen-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 -0700390 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000391
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300392gen-cpp/DoubleConstantsTest_constants.cpp gen-cpp/DoubleConstantsTest_constants.h: $(top_srcdir)/test/DoubleConstantsTest.thrift
393 $(THRIFT) --gen cpp $<
394
395
Jens Geyerae0b22c2014-09-04 23:04:21 +0200396gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200397 $(THRIFT) --gen cpp $<
Jens Geyerae0b22c2014-09-04 23:04:21 +0200398
Jens Geyer089bcd32014-09-11 22:36:41 +0200399gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200400 $(THRIFT) --gen cpp $<
Jens Geyer089bcd32014-09-11 22:36:41 +0200401
David Reiss351e22b2010-08-31 16:51:19 +0000402gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700403 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000404
jfarrelle0e83162014-04-08 22:45:01 -0400405gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200406 $(THRIFT) --gen cpp $<
jfarrelle0e83162014-04-08 22:45:01 -0400407
David Reiss351e22b2010-08-31 16:51:19 +0000408gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700409 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000410
411gen-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 -0700412 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000413
zeshuai00757c25072020-04-09 11:17:05 +0800414gen-cpp/OneWayService.cpp gen-cpp/OneWayTest_types.h gen-cpp/OneWayService.h: OneWayTest.thrift
Chet Murthyad08a8b2017-12-19 15:55:56 -0800415 $(THRIFT) --gen cpp $<
416
Roger Meier6f28c042014-11-01 20:31:44 +0100417gen-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 +0200418 $(THRIFT) --gen cpp:templates,cob_style $<
Roger Meier2b1a5282012-05-11 10:12:39 +0000419
Kevin Wojniaka3925662019-07-01 11:07:45 -0700420AM_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 +0000421AM_LDFLAGS = $(BOOST_LDFLAGS)
Roger Meiercb0754d2014-10-21 21:28:04 +0200422AM_CXXFLAGS = -Wall -Wextra -pedantic
David Reiss351e22b2010-08-31 16:51:19 +0000423
424clean-local:
Nobuaki Sukegawad3f7d0e2015-11-03 13:42:00 +0900425 $(RM) gen-cpp/*
David Reiss351e22b2010-08-31 16:51:19 +0000426
427EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200428 concurrency \
jfarrellf13e4312015-08-25 00:39:29 -0400429 processor \
430 qt \
431 CMakeLists.txt \
432 DebugProtoTest_extras.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800433 ThriftTest_extras.cpp \
434 OneWayTest.thrift