blob: 8399d9eb5b06d25a819de3098940091c2b03e4b8 [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 \
33 gen-cpp/OneWayTest_constants.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 \
Jens Geyer79f988c2014-10-03 20:42:54 +020054 gen-cpp/TypedefTest_types.cpp \
55 gen-cpp/TypedefTest_types.h \
Chet Murthyad08a8b2017-12-19 15:55:56 -080056 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 \
Jens Geyer79f988c2014-10-03 20:42:54 +020062 ThriftTest_extras.cpp \
63 DebugProtoTest_extras.cpp
David Reiss351e22b2010-08-31 16:51:19 +000064
Roger Meier2b1a5282012-05-11 10:12:39 +000065nodist_libprocessortest_la_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +020066 gen-cpp/ChildService.cpp \
67 gen-cpp/ChildService.h \
Ben Craig1684c422015-04-24 08:52:44 -050068 gen-cpp/EmptyService.cpp \
69 gen-cpp/EmptyService.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020070 gen-cpp/ParentService.cpp \
71 gen-cpp/ParentService.h \
72 gen-cpp/proc_types.cpp \
73 gen-cpp/proc_types.h
Roger Meier2b1a5282012-05-11 10:12:39 +000074
David Reiss351e22b2010-08-31 16:51:19 +000075ThriftTest_extras.o: gen-cpp/ThriftTest_types.h
76DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h
77
78libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
79
Roger Meiera5bf1a12014-10-22 23:26:01 +020080noinst_PROGRAMS = Benchmark \
Roger Meiera5bf1a12014-10-22 23:26:01 +020081 concurrency_test
David Reiss351e22b2010-08-31 16:51:19 +000082
83Benchmark_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +020084 Benchmark.cpp
David Reiss351e22b2010-08-31 16:51:19 +000085
86Benchmark_LDADD = libtestgencpp.la
87
88check_PROGRAMS = \
Roger Meier01144552015-04-04 16:14:08 +020089 UnitTests \
Jens Geyer79f988c2014-10-03 20:42:54 +020090 TFDTransportTest \
91 TPipedTransportTest \
92 DebugProtoTest \
93 JSONProtoTest \
94 OptionalRequiredTest \
95 RecursiveTest \
96 SpecializationTest \
97 AllProtocolsTest \
98 TransportTest \
ben-craigaf2d9c82015-07-16 08:11:21 -050099 TInterruptTest \
Ben Craig1684c422015-04-24 08:52:44 -0500100 TServerIntegrationTest \
Jim Kingb0b710a2015-07-28 13:31:27 -0400101 SecurityTest \
Mario Emmenlauer0f14e2f2019-10-15 11:25:10 +0200102 SecurityFromBufferTest \
Jens Geyer79f988c2014-10-03 20:42:54 +0200103 ZlibTest \
104 TFileTransportTest \
Jens Geyer79f988c2014-10-03 20:42:54 +0200105 link_test \
106 OpenSSLManualInitTest \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500107 EnumTest \
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300108 RenderedDoubleConstantsTest \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500109 AnnotationTest
David Reiss351e22b2010-08-31 16:51:19 +0000110
Jens Geyer4461a2f2014-12-23 18:22:54 +0100111if AMX_HAVE_LIBEVENT
Nobuaki Sukegawa208738a2015-02-01 00:27:22 +0900112noinst_PROGRAMS += \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100113 processor_test
114check_PROGRAMS += \
Divya Thaluru808d1432017-08-06 16:36:36 -0700115 TNonblockingServerTest \
116 TNonblockingSSLServerTest
Jens Geyer4461a2f2014-12-23 18:22:54 +0100117endif
118
Roger Meier9e0f0742011-08-03 17:36:55 +0000119TESTS_ENVIRONMENT= \
Jens Geyer79f988c2014-10-03 20:42:54 +0200120 BOOST_TEST_LOG_SINK=tests.xml \
121 BOOST_TEST_LOG_LEVEL=test_suite \
Nobuaki Sukegawa3d600bf2016-01-23 22:45:20 +0900122 BOOST_TEST_LOG_FORMAT=XML
Roger Meier9e0f0742011-08-03 17:36:55 +0000123
David Reiss351e22b2010-08-31 16:51:19 +0000124TESTS = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200125 $(check_PROGRAMS)
David Reiss351e22b2010-08-31 16:51:19 +0000126
127UnitTests_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200128 UnitTestMain.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800129 OneWayHTTPTest.cpp \
Jens Geyer79f988c2014-10-03 20:42:54 +0200130 TMemoryBufferTest.cpp \
131 TBufferBaseTest.cpp \
132 Base64Test.cpp \
133 ToStringTest.cpp \
Roger Meier01144552015-04-04 16:14:08 +0200134 TypedefTest.cpp \
Ben Craig1684c422015-04-24 08:52:44 -0500135 TServerSocketTest.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400136 TServerTransportTest.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400137 TTransportCheckThrow.h
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
ben-craigaf2d9c82015-07-16 08:11:21 -0500145TInterruptTest_SOURCES = \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800146 TSocketInterruptTest.cpp \
147 TSSLSocketInterruptTest.cpp
Ben Craig1684c422015-04-24 08:52:44 -0500148
ben-craigaf2d9c82015-07-16 08:11:21 -0500149TInterruptTest_LDADD = \
Ben Craig1684c422015-04-24 08:52:44 -0500150 libtestgencpp.la \
151 $(BOOST_TEST_LDADD) \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800152 $(BOOST_FILESYSTEM_LDADD) \
Ben Craig1684c422015-04-24 08:52:44 -0500153 $(BOOST_CHRONO_LDADD) \
154 $(BOOST_SYSTEM_LDADD) \
155 $(BOOST_THREAD_LDADD)
156
157TServerIntegrationTest_SOURCES = \
158 TServerIntegrationTest.cpp
159
160TServerIntegrationTest_LDADD = \
161 libtestgencpp.la \
162 libprocessortest.la \
163 $(BOOST_TEST_LDADD) \
164 $(BOOST_SYSTEM_LDADD) \
165 $(BOOST_THREAD_LDADD)
166
Jim Kingb0b710a2015-07-28 13:31:27 -0400167SecurityTest_SOURCES = \
168 SecurityTest.cpp
169
170SecurityTest_LDADD = \
171 libtestgencpp.la \
172 libprocessortest.la \
173 $(BOOST_TEST_LDADD) \
174 $(BOOST_FILESYSTEM_LDADD) \
175 $(BOOST_SYSTEM_LDADD) \
176 $(BOOST_THREAD_LDADD)
177
Mario Emmenlauer0f14e2f2019-10-15 11:25:10 +0200178SecurityFromBufferTest_SOURCES = \
179 SecurityFromBufferTest.cpp
180
181SecurityFromBufferTest_LDADD = \
182 libtestgencpp.la \
183 libprocessortest.la \
184 $(BOOST_TEST_LDADD) \
185 $(BOOST_FILESYSTEM_LDADD) \
186 $(BOOST_SYSTEM_LDADD) \
187 $(BOOST_THREAD_LDADD)
188
David Reiss35dc7692010-10-06 17:10:19 +0000189TransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200190 TransportTest.cpp
David Reiss35dc7692010-10-06 17:10:19 +0000191
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000192TransportTest_LDADD = \
193 libtestgencpp.la \
194 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100195 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000196 -lz
David Reiss35dc7692010-10-06 17:10:19 +0000197
David Reiss9a961e72010-10-06 17:10:23 +0000198ZlibTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200199 ZlibTest.cpp
David Reiss9a961e72010-10-06 17:10:23 +0000200
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000201ZlibTest_LDADD = \
202 libtestgencpp.la \
203 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100204 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000205 -lz
David Reiss9a961e72010-10-06 17:10:23 +0000206
Jens Geyerae0b22c2014-09-04 23:04:21 +0200207EnumTest_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500208 EnumTest.cpp
Jens Geyerae0b22c2014-09-04 23:04:21 +0200209
210EnumTest_LDADD = \
211 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100212 $(BOOST_TEST_LDADD)
Jens Geyerae0b22c2014-09-04 23:04:21 +0200213
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300214RenderedDoubleConstantsTest_SOURCES = RenderedDoubleConstantsTest.cpp
215
216RenderedDoubleConstantsTest_LDADD = libtestgencpp.la $(BOOST_TEST_LDADD)
217
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500218AnnotationTest_SOURCES = \
219 AnnotationTest.cpp
220
221AnnotationTest_LDADD = \
222 libtestgencpp.la \
223 $(BOOST_TEST_LDADD)
224
David Reiss709b69f2010-10-06 17:10:30 +0000225TFileTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200226 TFileTransportTest.cpp
David Reiss709b69f2010-10-06 17:10:30 +0000227
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000228TFileTransportTest_LDADD = \
229 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100230 $(BOOST_TEST_LDADD)
David Reiss709b69f2010-10-06 17:10:30 +0000231
David Reiss351e22b2010-08-31 16:51:19 +0000232#
233# TFDTransportTest
234#
235TFDTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200236 TFDTransportTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000237
Claudius Heine5ef662b2015-06-24 10:03:50 +0200238TFDTransportTest_LDADD = \
239 $(top_builddir)/lib/cpp/libthrift.la \
240 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000241
242
243#
244# TPipedTransportTest
245#
246TPipedTransportTest_SOURCES = \
jfarrellf13e4312015-08-25 00:39:29 -0400247 TPipedTransportTest.cpp \
248 TPipeInterruptTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000249
250TPipedTransportTest_LDADD = \
jfarrelle2e5e222015-08-25 14:59:40 -0400251 libtestgencpp.la \
Claudius Heine5ef662b2015-06-24 10:03:50 +0200252 $(top_builddir)/lib/cpp/libthrift.la \
jfarrelle2e5e222015-08-25 14:59:40 -0400253 $(BOOST_TEST_LDADD) \
254 $(BOOST_SYSTEM_LDADD) \
255 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000256
257#
258# AllProtocolsTest
259#
260AllProtocolsTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200261 AllProtocolTests.cpp \
262 AllProtocolTests.tcc \
263 GenericHelpers.h
David Reiss351e22b2010-08-31 16:51:19 +0000264
Claudius Heine5ef662b2015-06-24 10:03:50 +0200265AllProtocolsTest_LDADD = \
266 libtestgencpp.la \
267 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000268
269#
270# DebugProtoTest
271#
272DebugProtoTest_SOURCES = \
ben-craigaf2d9c82015-07-16 08:11:21 -0500273 DebugProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000274
Claudius Heine5ef662b2015-06-24 10:03:50 +0200275DebugProtoTest_LDADD = \
276 libtestgencpp.la \
277 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000278
279
280#
281# JSONProtoTest
282#
283JSONProtoTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200284 JSONProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000285
Claudius Heine5ef662b2015-06-24 10:03:50 +0200286JSONProtoTest_LDADD = \
287 libtestgencpp.la \
288 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000289
290#
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900291# TNonblockingServerTest
292#
293TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
294
295TNonblockingServerTest_LDADD = libprocessortest.la \
296 $(top_builddir)/lib/cpp/libthrift.la \
297 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100298 $(BOOST_TEST_LDADD) \
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900299 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100300 $(LIBEVENT_LIBS)
Divya Thaluru808d1432017-08-06 16:36:36 -0700301#
302# TNonblockingSSLServerTest
303#
304TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp
305
306TNonblockingSSLServerTest_LDADD = libprocessortest.la \
307 $(top_builddir)/lib/cpp/libthrift.la \
308 $(top_builddir)/lib/cpp/libthriftnb.la \
309 $(BOOST_TEST_LDADD) \
310 $(BOOST_LDFLAGS) \
311 $(BOOST_FILESYSTEM_LDADD) \
312 $(BOOST_CHRONO_LDADD) \
313 $(BOOST_SYSTEM_LDADD) \
314 $(BOOST_THREAD_LDADD) \
315 $(LIBEVENT_LIBS)
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900316
317#
David Reiss351e22b2010-08-31 16:51:19 +0000318# OptionalRequiredTest
319#
320OptionalRequiredTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200321 OptionalRequiredTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000322
Claudius Heine5ef662b2015-06-24 10:03:50 +0200323OptionalRequiredTest_LDADD = \
324 libtestgencpp.la \
325 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000326
David Reisse71115b2010-10-06 17:09:56 +0000327#
jfarrelle0e83162014-04-08 22:45:01 -0400328# OptionalRequiredTest
329#
330RecursiveTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200331 RecursiveTest.cpp
jfarrelle0e83162014-04-08 22:45:01 -0400332
Claudius Heine5ef662b2015-06-24 10:03:50 +0200333RecursiveTest_LDADD = \
334 libtestgencpp.la \
335 $(BOOST_TEST_LDADD)
336
337#
David Reisse71115b2010-10-06 17:09:56 +0000338# SpecializationTest
339#
340SpecializationTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200341 SpecializationTest.cpp
David Reisse71115b2010-10-06 17:09:56 +0000342
Claudius Heine5ef662b2015-06-24 10:03:50 +0200343SpecializationTest_LDADD = \
344 libtestgencpp.la \
345 $(BOOST_TEST_LDADD)
David Reisse71115b2010-10-06 17:09:56 +0000346
Roger Meier2b1a5282012-05-11 10:12:39 +0000347concurrency_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200348 concurrency/Tests.cpp \
349 concurrency/ThreadFactoryTests.h \
350 concurrency/ThreadManagerTests.h \
351 concurrency/TimerManagerTests.h
David Reiss351e22b2010-08-31 16:51:19 +0000352
Roger Meier2b1a5282012-05-11 10:12:39 +0000353concurrency_test_LDADD = \
354 $(top_builddir)/lib/cpp/libthrift.la
355
Roger Meier63fcb7e2014-06-15 21:48:59 +0200356link_test_SOURCES = \
357 link/LinkTest.cpp \
358 link/TemplatedService1.cpp \
359 link/TemplatedService2.cpp
360
Roger Meier2b1a5282012-05-11 10:12:39 +0000361processor_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200362 processor/ProcessorTest.cpp \
363 processor/EventLog.cpp \
364 processor/ServerThread.cpp \
365 processor/EventLog.h \
366 processor/Handlers.h \
367 processor/ServerThread.h
Roger Meier2b1a5282012-05-11 10:12:39 +0000368
369processor_test_LDADD = libprocessortest.la \
370 $(top_builddir)/lib/cpp/libthrift.la \
371 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100372 $(BOOST_TEST_LDADD) \
Roger Meier2b1a5282012-05-11 10:12:39 +0000373 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100374 $(LIBEVENT_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500375
376OpenSSLManualInitTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200377 OpenSSLManualInitTest.cpp
Alan Dunnbee7b732014-07-26 13:48:43 -0500378
379OpenSSLManualInitTest_LDADD = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200380 $(top_builddir)/lib/cpp/libthrift.la \
Nobuaki Sukegawaa8370852016-01-19 00:48:46 +0900381 $(BOOST_TEST_LDADD) \
382 $(OPENSSL_LDFLAGS) \
383 $(OPENSSL_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500384
David Reiss351e22b2010-08-31 16:51:19 +0000385#
386# Common thrift code generation rules
387#
David Reiss351e22b2010-08-31 16:51:19 +0000388
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500389gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
390 $(THRIFT) --gen cpp $<
391
Ben Craig1684c422015-04-24 08:52:44 -0500392gen-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 -0700393 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000394
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300395gen-cpp/DoubleConstantsTest_constants.cpp gen-cpp/DoubleConstantsTest_constants.h: $(top_srcdir)/test/DoubleConstantsTest.thrift
396 $(THRIFT) --gen cpp $<
397
398
Jens Geyerae0b22c2014-09-04 23:04:21 +0200399gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200400 $(THRIFT) --gen cpp $<
Jens Geyerae0b22c2014-09-04 23:04:21 +0200401
Jens Geyer089bcd32014-09-11 22:36:41 +0200402gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200403 $(THRIFT) --gen cpp $<
Jens Geyer089bcd32014-09-11 22:36:41 +0200404
David Reiss351e22b2010-08-31 16:51:19 +0000405gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700406 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000407
jfarrelle0e83162014-04-08 22:45:01 -0400408gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200409 $(THRIFT) --gen cpp $<
jfarrelle0e83162014-04-08 22:45:01 -0400410
David Reiss351e22b2010-08-31 16:51:19 +0000411gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700412 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000413
414gen-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 -0700415 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000416
Chet Murthyad08a8b2017-12-19 15:55:56 -0800417gen-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
418 $(THRIFT) --gen cpp $<
419
Roger Meier6f28c042014-11-01 20:31:44 +0100420gen-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 +0200421 $(THRIFT) --gen cpp:templates,cob_style $<
Roger Meier2b1a5282012-05-11 10:12:39 +0000422
Kevin Wojniaka3925662019-07-01 11:07:45 -0700423AM_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 +0000424AM_LDFLAGS = $(BOOST_LDFLAGS)
Roger Meiercb0754d2014-10-21 21:28:04 +0200425AM_CXXFLAGS = -Wall -Wextra -pedantic
David Reiss351e22b2010-08-31 16:51:19 +0000426
427clean-local:
Nobuaki Sukegawad3f7d0e2015-11-03 13:42:00 +0900428 $(RM) gen-cpp/*
David Reiss351e22b2010-08-31 16:51:19 +0000429
430EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200431 concurrency \
jfarrellf13e4312015-08-25 00:39:29 -0400432 processor \
433 qt \
434 CMakeLists.txt \
435 DebugProtoTest_extras.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800436 ThriftTest_extras.cpp \
437 OneWayTest.thrift