blob: d645a6501ab819a8c633e124892bbb3589951cbb [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#
Roger Meier81a1f992014-10-22 14:09:43 +020019AUTOMAKE_OPTIONS = subdir-objects serial-tests
20
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 \
Jens Geyer79f988c2014-10-03 20:42:54 +0200102 ZlibTest \
103 TFileTransportTest \
Jens Geyer79f988c2014-10-03 20:42:54 +0200104 link_test \
105 OpenSSLManualInitTest \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500106 EnumTest \
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300107 RenderedDoubleConstantsTest \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500108 AnnotationTest
David Reiss351e22b2010-08-31 16:51:19 +0000109
Jens Geyer4461a2f2014-12-23 18:22:54 +0100110if AMX_HAVE_LIBEVENT
Nobuaki Sukegawa208738a2015-02-01 00:27:22 +0900111noinst_PROGRAMS += \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100112 processor_test
113check_PROGRAMS += \
Divya Thaluru808d1432017-08-06 16:36:36 -0700114 TNonblockingServerTest \
115 TNonblockingSSLServerTest
Jens Geyer4461a2f2014-12-23 18:22:54 +0100116endif
117
Roger Meier9e0f0742011-08-03 17:36:55 +0000118TESTS_ENVIRONMENT= \
Jens Geyer79f988c2014-10-03 20:42:54 +0200119 BOOST_TEST_LOG_SINK=tests.xml \
120 BOOST_TEST_LOG_LEVEL=test_suite \
Nobuaki Sukegawa3d600bf2016-01-23 22:45:20 +0900121 BOOST_TEST_LOG_FORMAT=XML
Roger Meier9e0f0742011-08-03 17:36:55 +0000122
David Reiss351e22b2010-08-31 16:51:19 +0000123TESTS = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200124 $(check_PROGRAMS)
David Reiss351e22b2010-08-31 16:51:19 +0000125
126UnitTests_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200127 UnitTestMain.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800128 OneWayHTTPTest.cpp \
Jens Geyer79f988c2014-10-03 20:42:54 +0200129 TMemoryBufferTest.cpp \
130 TBufferBaseTest.cpp \
131 Base64Test.cpp \
132 ToStringTest.cpp \
Roger Meier01144552015-04-04 16:14:08 +0200133 TypedefTest.cpp \
Ben Craig1684c422015-04-24 08:52:44 -0500134 TServerSocketTest.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400135 TServerTransportTest.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400136 TTransportCheckThrow.h
Roger Meier12d70532011-12-14 23:35:28 +0000137
Roger Meier12d70532011-12-14 23:35:28 +0000138UnitTests_SOURCES += \
James E. King, III00d42522017-04-04 09:32:45 -0400139 concurrency/MutexTest.cpp \
140 concurrency/RWMutexStarveTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000141
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000142UnitTests_LDADD = \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000143 libtestgencpp.la \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800144 $(BOOST_TEST_LDADD) \
145 $(BOOST_SYSTEM_LDADD) \
146 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000147
ben-craigaf2d9c82015-07-16 08:11:21 -0500148TInterruptTest_SOURCES = \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800149 TSocketInterruptTest.cpp \
150 TSSLSocketInterruptTest.cpp
Ben Craig1684c422015-04-24 08:52:44 -0500151
ben-craigaf2d9c82015-07-16 08:11:21 -0500152TInterruptTest_LDADD = \
Ben Craig1684c422015-04-24 08:52:44 -0500153 libtestgencpp.la \
154 $(BOOST_TEST_LDADD) \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800155 $(BOOST_FILESYSTEM_LDADD) \
Ben Craig1684c422015-04-24 08:52:44 -0500156 $(BOOST_CHRONO_LDADD) \
157 $(BOOST_SYSTEM_LDADD) \
158 $(BOOST_THREAD_LDADD)
159
160TServerIntegrationTest_SOURCES = \
161 TServerIntegrationTest.cpp
162
163TServerIntegrationTest_LDADD = \
164 libtestgencpp.la \
165 libprocessortest.la \
166 $(BOOST_TEST_LDADD) \
167 $(BOOST_SYSTEM_LDADD) \
168 $(BOOST_THREAD_LDADD)
169
Jim Kingb0b710a2015-07-28 13:31:27 -0400170SecurityTest_SOURCES = \
171 SecurityTest.cpp
172
173SecurityTest_LDADD = \
174 libtestgencpp.la \
175 libprocessortest.la \
176 $(BOOST_TEST_LDADD) \
177 $(BOOST_FILESYSTEM_LDADD) \
178 $(BOOST_SYSTEM_LDADD) \
179 $(BOOST_THREAD_LDADD)
180
David Reiss35dc7692010-10-06 17:10:19 +0000181TransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200182 TransportTest.cpp
David Reiss35dc7692010-10-06 17:10:19 +0000183
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000184TransportTest_LDADD = \
185 libtestgencpp.la \
186 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100187 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000188 -lz
David Reiss35dc7692010-10-06 17:10:19 +0000189
David Reiss9a961e72010-10-06 17:10:23 +0000190ZlibTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200191 ZlibTest.cpp
David Reiss9a961e72010-10-06 17:10:23 +0000192
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000193ZlibTest_LDADD = \
194 libtestgencpp.la \
195 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100196 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000197 -lz
David Reiss9a961e72010-10-06 17:10:23 +0000198
Jens Geyerae0b22c2014-09-04 23:04:21 +0200199EnumTest_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500200 EnumTest.cpp
Jens Geyerae0b22c2014-09-04 23:04:21 +0200201
202EnumTest_LDADD = \
203 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100204 $(BOOST_TEST_LDADD)
Jens Geyerae0b22c2014-09-04 23:04:21 +0200205
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300206RenderedDoubleConstantsTest_SOURCES = RenderedDoubleConstantsTest.cpp
207
208RenderedDoubleConstantsTest_LDADD = libtestgencpp.la $(BOOST_TEST_LDADD)
209
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500210AnnotationTest_SOURCES = \
211 AnnotationTest.cpp
212
213AnnotationTest_LDADD = \
214 libtestgencpp.la \
215 $(BOOST_TEST_LDADD)
216
David Reiss709b69f2010-10-06 17:10:30 +0000217TFileTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200218 TFileTransportTest.cpp
David Reiss709b69f2010-10-06 17:10:30 +0000219
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000220TFileTransportTest_LDADD = \
221 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100222 $(BOOST_TEST_LDADD)
David Reiss709b69f2010-10-06 17:10:30 +0000223
David Reiss351e22b2010-08-31 16:51:19 +0000224#
225# TFDTransportTest
226#
227TFDTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200228 TFDTransportTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000229
Claudius Heine5ef662b2015-06-24 10:03:50 +0200230TFDTransportTest_LDADD = \
231 $(top_builddir)/lib/cpp/libthrift.la \
232 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000233
234
235#
236# TPipedTransportTest
237#
238TPipedTransportTest_SOURCES = \
jfarrellf13e4312015-08-25 00:39:29 -0400239 TPipedTransportTest.cpp \
240 TPipeInterruptTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000241
242TPipedTransportTest_LDADD = \
jfarrelle2e5e222015-08-25 14:59:40 -0400243 libtestgencpp.la \
Claudius Heine5ef662b2015-06-24 10:03:50 +0200244 $(top_builddir)/lib/cpp/libthrift.la \
jfarrelle2e5e222015-08-25 14:59:40 -0400245 $(BOOST_TEST_LDADD) \
246 $(BOOST_SYSTEM_LDADD) \
247 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000248
249#
250# AllProtocolsTest
251#
252AllProtocolsTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200253 AllProtocolTests.cpp \
254 AllProtocolTests.tcc \
255 GenericHelpers.h
David Reiss351e22b2010-08-31 16:51:19 +0000256
Claudius Heine5ef662b2015-06-24 10:03:50 +0200257AllProtocolsTest_LDADD = \
258 libtestgencpp.la \
259 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000260
261#
262# DebugProtoTest
263#
264DebugProtoTest_SOURCES = \
ben-craigaf2d9c82015-07-16 08:11:21 -0500265 DebugProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000266
Claudius Heine5ef662b2015-06-24 10:03:50 +0200267DebugProtoTest_LDADD = \
268 libtestgencpp.la \
269 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000270
271
272#
273# JSONProtoTest
274#
275JSONProtoTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200276 JSONProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000277
Claudius Heine5ef662b2015-06-24 10:03:50 +0200278JSONProtoTest_LDADD = \
279 libtestgencpp.la \
280 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000281
282#
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900283# TNonblockingServerTest
284#
285TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
286
287TNonblockingServerTest_LDADD = libprocessortest.la \
288 $(top_builddir)/lib/cpp/libthrift.la \
289 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100290 $(BOOST_TEST_LDADD) \
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900291 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100292 $(LIBEVENT_LIBS)
Divya Thaluru808d1432017-08-06 16:36:36 -0700293#
294# TNonblockingSSLServerTest
295#
296TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp
297
298TNonblockingSSLServerTest_LDADD = libprocessortest.la \
299 $(top_builddir)/lib/cpp/libthrift.la \
300 $(top_builddir)/lib/cpp/libthriftnb.la \
301 $(BOOST_TEST_LDADD) \
302 $(BOOST_LDFLAGS) \
303 $(BOOST_FILESYSTEM_LDADD) \
304 $(BOOST_CHRONO_LDADD) \
305 $(BOOST_SYSTEM_LDADD) \
306 $(BOOST_THREAD_LDADD) \
307 $(LIBEVENT_LIBS)
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900308
309#
David Reiss351e22b2010-08-31 16:51:19 +0000310# OptionalRequiredTest
311#
312OptionalRequiredTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200313 OptionalRequiredTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000314
Claudius Heine5ef662b2015-06-24 10:03:50 +0200315OptionalRequiredTest_LDADD = \
316 libtestgencpp.la \
317 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000318
David Reisse71115b2010-10-06 17:09:56 +0000319#
jfarrelle0e83162014-04-08 22:45:01 -0400320# OptionalRequiredTest
321#
322RecursiveTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200323 RecursiveTest.cpp
jfarrelle0e83162014-04-08 22:45:01 -0400324
Claudius Heine5ef662b2015-06-24 10:03:50 +0200325RecursiveTest_LDADD = \
326 libtestgencpp.la \
327 $(BOOST_TEST_LDADD)
328
329#
David Reisse71115b2010-10-06 17:09:56 +0000330# SpecializationTest
331#
332SpecializationTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200333 SpecializationTest.cpp
David Reisse71115b2010-10-06 17:09:56 +0000334
Claudius Heine5ef662b2015-06-24 10:03:50 +0200335SpecializationTest_LDADD = \
336 libtestgencpp.la \
337 $(BOOST_TEST_LDADD)
David Reisse71115b2010-10-06 17:09:56 +0000338
Roger Meier2b1a5282012-05-11 10:12:39 +0000339concurrency_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200340 concurrency/Tests.cpp \
341 concurrency/ThreadFactoryTests.h \
342 concurrency/ThreadManagerTests.h \
343 concurrency/TimerManagerTests.h
David Reiss351e22b2010-08-31 16:51:19 +0000344
Roger Meier2b1a5282012-05-11 10:12:39 +0000345concurrency_test_LDADD = \
346 $(top_builddir)/lib/cpp/libthrift.la
347
Roger Meier63fcb7e2014-06-15 21:48:59 +0200348link_test_SOURCES = \
349 link/LinkTest.cpp \
350 link/TemplatedService1.cpp \
351 link/TemplatedService2.cpp
352
Roger Meier2b1a5282012-05-11 10:12:39 +0000353processor_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200354 processor/ProcessorTest.cpp \
355 processor/EventLog.cpp \
356 processor/ServerThread.cpp \
357 processor/EventLog.h \
358 processor/Handlers.h \
359 processor/ServerThread.h
Roger Meier2b1a5282012-05-11 10:12:39 +0000360
361processor_test_LDADD = libprocessortest.la \
362 $(top_builddir)/lib/cpp/libthrift.la \
363 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100364 $(BOOST_TEST_LDADD) \
Roger Meier2b1a5282012-05-11 10:12:39 +0000365 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100366 $(LIBEVENT_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500367
368OpenSSLManualInitTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200369 OpenSSLManualInitTest.cpp
Alan Dunnbee7b732014-07-26 13:48:43 -0500370
371OpenSSLManualInitTest_LDADD = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200372 $(top_builddir)/lib/cpp/libthrift.la \
Nobuaki Sukegawaa8370852016-01-19 00:48:46 +0900373 $(BOOST_TEST_LDADD) \
374 $(OPENSSL_LDFLAGS) \
375 $(OPENSSL_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500376
David Reiss351e22b2010-08-31 16:51:19 +0000377#
378# Common thrift code generation rules
379#
David Reiss351e22b2010-08-31 16:51:19 +0000380
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500381gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
382 $(THRIFT) --gen cpp $<
383
Ben Craig1684c422015-04-24 08:52:44 -0500384gen-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 -0700385 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000386
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300387gen-cpp/DoubleConstantsTest_constants.cpp gen-cpp/DoubleConstantsTest_constants.h: $(top_srcdir)/test/DoubleConstantsTest.thrift
388 $(THRIFT) --gen cpp $<
389
390
Jens Geyerae0b22c2014-09-04 23:04:21 +0200391gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200392 $(THRIFT) --gen cpp $<
Jens Geyerae0b22c2014-09-04 23:04:21 +0200393
Jens Geyer089bcd32014-09-11 22:36:41 +0200394gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200395 $(THRIFT) --gen cpp $<
Jens Geyer089bcd32014-09-11 22:36:41 +0200396
David Reiss351e22b2010-08-31 16:51:19 +0000397gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700398 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000399
jfarrelle0e83162014-04-08 22:45:01 -0400400gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200401 $(THRIFT) --gen cpp $<
jfarrelle0e83162014-04-08 22:45:01 -0400402
David Reiss351e22b2010-08-31 16:51:19 +0000403gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700404 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000405
406gen-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 -0700407 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000408
Chet Murthyad08a8b2017-12-19 15:55:56 -0800409gen-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
410 $(THRIFT) --gen cpp $<
411
Roger Meier6f28c042014-11-01 20:31:44 +0100412gen-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 +0200413 $(THRIFT) --gen cpp:templates,cob_style $<
Roger Meier2b1a5282012-05-11 10:12:39 +0000414
James E. King, IIId7142b72017-09-01 13:00:36 -0700415AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I.
Roger Meier38315782011-11-06 11:29:41 +0000416AM_LDFLAGS = $(BOOST_LDFLAGS)
Roger Meiercb0754d2014-10-21 21:28:04 +0200417AM_CXXFLAGS = -Wall -Wextra -pedantic
David Reiss351e22b2010-08-31 16:51:19 +0000418
419clean-local:
Nobuaki Sukegawad3f7d0e2015-11-03 13:42:00 +0900420 $(RM) gen-cpp/*
David Reiss351e22b2010-08-31 16:51:19 +0000421
422EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200423 concurrency \
jfarrellf13e4312015-08-25 00:39:29 -0400424 processor \
425 qt \
426 CMakeLists.txt \
427 DebugProtoTest_extras.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800428 ThriftTest_extras.cpp \
429 OneWayTest.thrift