blob: 5bb9eb760293c45a60c524603d2b207a33bb05f8 [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
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000138UnitTests_LDADD = \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000139 libtestgencpp.la \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800140 $(BOOST_TEST_LDADD) \
141 $(BOOST_SYSTEM_LDADD) \
142 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000143
ben-craigaf2d9c82015-07-16 08:11:21 -0500144TInterruptTest_SOURCES = \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800145 TSocketInterruptTest.cpp \
146 TSSLSocketInterruptTest.cpp
Ben Craig1684c422015-04-24 08:52:44 -0500147
ben-craigaf2d9c82015-07-16 08:11:21 -0500148TInterruptTest_LDADD = \
Ben Craig1684c422015-04-24 08:52:44 -0500149 libtestgencpp.la \
150 $(BOOST_TEST_LDADD) \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800151 $(BOOST_FILESYSTEM_LDADD) \
Ben Craig1684c422015-04-24 08:52:44 -0500152 $(BOOST_CHRONO_LDADD) \
153 $(BOOST_SYSTEM_LDADD) \
154 $(BOOST_THREAD_LDADD)
155
156TServerIntegrationTest_SOURCES = \
157 TServerIntegrationTest.cpp
158
159TServerIntegrationTest_LDADD = \
160 libtestgencpp.la \
161 libprocessortest.la \
162 $(BOOST_TEST_LDADD) \
163 $(BOOST_SYSTEM_LDADD) \
164 $(BOOST_THREAD_LDADD)
165
Jim Kingb0b710a2015-07-28 13:31:27 -0400166SecurityTest_SOURCES = \
167 SecurityTest.cpp
168
169SecurityTest_LDADD = \
170 libtestgencpp.la \
171 libprocessortest.la \
172 $(BOOST_TEST_LDADD) \
173 $(BOOST_FILESYSTEM_LDADD) \
174 $(BOOST_SYSTEM_LDADD) \
175 $(BOOST_THREAD_LDADD)
176
David Reiss35dc7692010-10-06 17:10:19 +0000177TransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200178 TransportTest.cpp
David Reiss35dc7692010-10-06 17:10:19 +0000179
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000180TransportTest_LDADD = \
181 libtestgencpp.la \
182 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100183 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000184 -lz
David Reiss35dc7692010-10-06 17:10:19 +0000185
David Reiss9a961e72010-10-06 17:10:23 +0000186ZlibTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200187 ZlibTest.cpp
David Reiss9a961e72010-10-06 17:10:23 +0000188
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000189ZlibTest_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 Reiss9a961e72010-10-06 17:10:23 +0000194
Jens Geyerae0b22c2014-09-04 23:04:21 +0200195EnumTest_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500196 EnumTest.cpp
Jens Geyerae0b22c2014-09-04 23:04:21 +0200197
198EnumTest_LDADD = \
199 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100200 $(BOOST_TEST_LDADD)
Jens Geyerae0b22c2014-09-04 23:04:21 +0200201
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300202RenderedDoubleConstantsTest_SOURCES = RenderedDoubleConstantsTest.cpp
203
204RenderedDoubleConstantsTest_LDADD = libtestgencpp.la $(BOOST_TEST_LDADD)
205
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500206AnnotationTest_SOURCES = \
207 AnnotationTest.cpp
208
209AnnotationTest_LDADD = \
210 libtestgencpp.la \
211 $(BOOST_TEST_LDADD)
212
David Reiss709b69f2010-10-06 17:10:30 +0000213TFileTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200214 TFileTransportTest.cpp
David Reiss709b69f2010-10-06 17:10:30 +0000215
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000216TFileTransportTest_LDADD = \
217 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100218 $(BOOST_TEST_LDADD)
David Reiss709b69f2010-10-06 17:10:30 +0000219
David Reiss351e22b2010-08-31 16:51:19 +0000220#
221# TFDTransportTest
222#
223TFDTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200224 TFDTransportTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000225
Claudius Heine5ef662b2015-06-24 10:03:50 +0200226TFDTransportTest_LDADD = \
227 $(top_builddir)/lib/cpp/libthrift.la \
228 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000229
230
231#
232# TPipedTransportTest
233#
234TPipedTransportTest_SOURCES = \
jfarrellf13e4312015-08-25 00:39:29 -0400235 TPipedTransportTest.cpp \
236 TPipeInterruptTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000237
238TPipedTransportTest_LDADD = \
jfarrelle2e5e222015-08-25 14:59:40 -0400239 libtestgencpp.la \
Claudius Heine5ef662b2015-06-24 10:03:50 +0200240 $(top_builddir)/lib/cpp/libthrift.la \
jfarrelle2e5e222015-08-25 14:59:40 -0400241 $(BOOST_TEST_LDADD) \
242 $(BOOST_SYSTEM_LDADD) \
243 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000244
245#
246# AllProtocolsTest
247#
248AllProtocolsTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200249 AllProtocolTests.cpp \
250 AllProtocolTests.tcc \
251 GenericHelpers.h
David Reiss351e22b2010-08-31 16:51:19 +0000252
Claudius Heine5ef662b2015-06-24 10:03:50 +0200253AllProtocolsTest_LDADD = \
254 libtestgencpp.la \
255 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000256
257#
258# DebugProtoTest
259#
260DebugProtoTest_SOURCES = \
ben-craigaf2d9c82015-07-16 08:11:21 -0500261 DebugProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000262
Claudius Heine5ef662b2015-06-24 10:03:50 +0200263DebugProtoTest_LDADD = \
264 libtestgencpp.la \
265 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000266
267
268#
269# JSONProtoTest
270#
271JSONProtoTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200272 JSONProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000273
Claudius Heine5ef662b2015-06-24 10:03:50 +0200274JSONProtoTest_LDADD = \
275 libtestgencpp.la \
276 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000277
278#
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900279# TNonblockingServerTest
280#
281TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
282
283TNonblockingServerTest_LDADD = libprocessortest.la \
284 $(top_builddir)/lib/cpp/libthrift.la \
285 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100286 $(BOOST_TEST_LDADD) \
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900287 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100288 $(LIBEVENT_LIBS)
Divya Thaluru808d1432017-08-06 16:36:36 -0700289#
290# TNonblockingSSLServerTest
291#
292TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp
293
294TNonblockingSSLServerTest_LDADD = libprocessortest.la \
295 $(top_builddir)/lib/cpp/libthrift.la \
296 $(top_builddir)/lib/cpp/libthriftnb.la \
297 $(BOOST_TEST_LDADD) \
298 $(BOOST_LDFLAGS) \
299 $(BOOST_FILESYSTEM_LDADD) \
300 $(BOOST_CHRONO_LDADD) \
301 $(BOOST_SYSTEM_LDADD) \
302 $(BOOST_THREAD_LDADD) \
303 $(LIBEVENT_LIBS)
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900304
305#
David Reiss351e22b2010-08-31 16:51:19 +0000306# OptionalRequiredTest
307#
308OptionalRequiredTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200309 OptionalRequiredTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000310
Claudius Heine5ef662b2015-06-24 10:03:50 +0200311OptionalRequiredTest_LDADD = \
312 libtestgencpp.la \
313 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000314
David Reisse71115b2010-10-06 17:09:56 +0000315#
jfarrelle0e83162014-04-08 22:45:01 -0400316# OptionalRequiredTest
317#
318RecursiveTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200319 RecursiveTest.cpp
jfarrelle0e83162014-04-08 22:45:01 -0400320
Claudius Heine5ef662b2015-06-24 10:03:50 +0200321RecursiveTest_LDADD = \
322 libtestgencpp.la \
323 $(BOOST_TEST_LDADD)
324
325#
David Reisse71115b2010-10-06 17:09:56 +0000326# SpecializationTest
327#
328SpecializationTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200329 SpecializationTest.cpp
David Reisse71115b2010-10-06 17:09:56 +0000330
Claudius Heine5ef662b2015-06-24 10:03:50 +0200331SpecializationTest_LDADD = \
332 libtestgencpp.la \
333 $(BOOST_TEST_LDADD)
David Reisse71115b2010-10-06 17:09:56 +0000334
Roger Meier2b1a5282012-05-11 10:12:39 +0000335concurrency_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200336 concurrency/Tests.cpp \
337 concurrency/ThreadFactoryTests.h \
338 concurrency/ThreadManagerTests.h \
339 concurrency/TimerManagerTests.h
David Reiss351e22b2010-08-31 16:51:19 +0000340
Roger Meier2b1a5282012-05-11 10:12:39 +0000341concurrency_test_LDADD = \
342 $(top_builddir)/lib/cpp/libthrift.la
343
Roger Meier63fcb7e2014-06-15 21:48:59 +0200344link_test_SOURCES = \
345 link/LinkTest.cpp \
346 link/TemplatedService1.cpp \
347 link/TemplatedService2.cpp
348
Roger Meier2b1a5282012-05-11 10:12:39 +0000349processor_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200350 processor/ProcessorTest.cpp \
351 processor/EventLog.cpp \
352 processor/ServerThread.cpp \
353 processor/EventLog.h \
354 processor/Handlers.h \
355 processor/ServerThread.h
Roger Meier2b1a5282012-05-11 10:12:39 +0000356
357processor_test_LDADD = libprocessortest.la \
358 $(top_builddir)/lib/cpp/libthrift.la \
359 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100360 $(BOOST_TEST_LDADD) \
Roger Meier2b1a5282012-05-11 10:12:39 +0000361 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100362 $(LIBEVENT_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500363
364OpenSSLManualInitTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200365 OpenSSLManualInitTest.cpp
Alan Dunnbee7b732014-07-26 13:48:43 -0500366
367OpenSSLManualInitTest_LDADD = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200368 $(top_builddir)/lib/cpp/libthrift.la \
Nobuaki Sukegawaa8370852016-01-19 00:48:46 +0900369 $(BOOST_TEST_LDADD) \
370 $(OPENSSL_LDFLAGS) \
371 $(OPENSSL_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500372
David Reiss351e22b2010-08-31 16:51:19 +0000373#
374# Common thrift code generation rules
375#
David Reiss351e22b2010-08-31 16:51:19 +0000376
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500377gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
378 $(THRIFT) --gen cpp $<
379
Ben Craig1684c422015-04-24 08:52:44 -0500380gen-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 -0700381 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000382
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300383gen-cpp/DoubleConstantsTest_constants.cpp gen-cpp/DoubleConstantsTest_constants.h: $(top_srcdir)/test/DoubleConstantsTest.thrift
384 $(THRIFT) --gen cpp $<
385
386
Jens Geyerae0b22c2014-09-04 23:04:21 +0200387gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200388 $(THRIFT) --gen cpp $<
Jens Geyerae0b22c2014-09-04 23:04:21 +0200389
Jens Geyer089bcd32014-09-11 22:36:41 +0200390gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200391 $(THRIFT) --gen cpp $<
Jens Geyer089bcd32014-09-11 22:36:41 +0200392
David Reiss351e22b2010-08-31 16:51:19 +0000393gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700394 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000395
jfarrelle0e83162014-04-08 22:45:01 -0400396gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200397 $(THRIFT) --gen cpp $<
jfarrelle0e83162014-04-08 22:45:01 -0400398
David Reiss351e22b2010-08-31 16:51:19 +0000399gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700400 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000401
402gen-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 -0700403 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000404
Chet Murthyad08a8b2017-12-19 15:55:56 -0800405gen-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
406 $(THRIFT) --gen cpp $<
407
Roger Meier6f28c042014-11-01 20:31:44 +0100408gen-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 +0200409 $(THRIFT) --gen cpp:templates,cob_style $<
Roger Meier2b1a5282012-05-11 10:12:39 +0000410
James E. King, IIId7142b72017-09-01 13:00:36 -0700411AM_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 +0000412AM_LDFLAGS = $(BOOST_LDFLAGS)
Roger Meiercb0754d2014-10-21 21:28:04 +0200413AM_CXXFLAGS = -Wall -Wextra -pedantic
David Reiss351e22b2010-08-31 16:51:19 +0000414
415clean-local:
Nobuaki Sukegawad3f7d0e2015-11-03 13:42:00 +0900416 $(RM) gen-cpp/*
David Reiss351e22b2010-08-31 16:51:19 +0000417
418EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200419 concurrency \
jfarrellf13e4312015-08-25 00:39:29 -0400420 processor \
421 qt \
422 CMakeLists.txt \
423 DebugProtoTest_extras.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800424 ThriftTest_extras.cpp \
425 OneWayTest.thrift