blob: 4b9f77d2142d7ef410a09b18fa725e9763101df9 [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
138if !WITH_BOOSTTHREADS
139UnitTests_SOURCES += \
James E. King, III00d42522017-04-04 09:32:45 -0400140 concurrency/MutexTest.cpp \
141 concurrency/RWMutexStarveTest.cpp
Roger Meier12d70532011-12-14 23:35:28 +0000142endif
David Reiss351e22b2010-08-31 16:51:19 +0000143
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000144UnitTests_LDADD = \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000145 libtestgencpp.la \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800146 $(BOOST_TEST_LDADD) \
147 $(BOOST_SYSTEM_LDADD) \
148 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000149
ben-craigaf2d9c82015-07-16 08:11:21 -0500150TInterruptTest_SOURCES = \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800151 TSocketInterruptTest.cpp \
152 TSSLSocketInterruptTest.cpp
Ben Craig1684c422015-04-24 08:52:44 -0500153
ben-craigaf2d9c82015-07-16 08:11:21 -0500154TInterruptTest_LDADD = \
Ben Craig1684c422015-04-24 08:52:44 -0500155 libtestgencpp.la \
156 $(BOOST_TEST_LDADD) \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800157 $(BOOST_FILESYSTEM_LDADD) \
Ben Craig1684c422015-04-24 08:52:44 -0500158 $(BOOST_CHRONO_LDADD) \
159 $(BOOST_SYSTEM_LDADD) \
160 $(BOOST_THREAD_LDADD)
161
162TServerIntegrationTest_SOURCES = \
163 TServerIntegrationTest.cpp
164
165TServerIntegrationTest_LDADD = \
166 libtestgencpp.la \
167 libprocessortest.la \
168 $(BOOST_TEST_LDADD) \
169 $(BOOST_SYSTEM_LDADD) \
170 $(BOOST_THREAD_LDADD)
171
Jim Kingb0b710a2015-07-28 13:31:27 -0400172SecurityTest_SOURCES = \
173 SecurityTest.cpp
174
175SecurityTest_LDADD = \
176 libtestgencpp.la \
177 libprocessortest.la \
178 $(BOOST_TEST_LDADD) \
179 $(BOOST_FILESYSTEM_LDADD) \
180 $(BOOST_SYSTEM_LDADD) \
181 $(BOOST_THREAD_LDADD)
182
David Reiss35dc7692010-10-06 17:10:19 +0000183TransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200184 TransportTest.cpp
David Reiss35dc7692010-10-06 17:10:19 +0000185
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000186TransportTest_LDADD = \
187 libtestgencpp.la \
188 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100189 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000190 -lz
David Reiss35dc7692010-10-06 17:10:19 +0000191
David Reiss9a961e72010-10-06 17:10:23 +0000192ZlibTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200193 ZlibTest.cpp
David Reiss9a961e72010-10-06 17:10:23 +0000194
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000195ZlibTest_LDADD = \
196 libtestgencpp.la \
197 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100198 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000199 -lz
David Reiss9a961e72010-10-06 17:10:23 +0000200
Jens Geyerae0b22c2014-09-04 23:04:21 +0200201EnumTest_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500202 EnumTest.cpp
Jens Geyerae0b22c2014-09-04 23:04:21 +0200203
204EnumTest_LDADD = \
205 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100206 $(BOOST_TEST_LDADD)
Jens Geyerae0b22c2014-09-04 23:04:21 +0200207
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300208RenderedDoubleConstantsTest_SOURCES = RenderedDoubleConstantsTest.cpp
209
210RenderedDoubleConstantsTest_LDADD = libtestgencpp.la $(BOOST_TEST_LDADD)
211
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500212AnnotationTest_SOURCES = \
213 AnnotationTest.cpp
214
215AnnotationTest_LDADD = \
216 libtestgencpp.la \
217 $(BOOST_TEST_LDADD)
218
David Reiss709b69f2010-10-06 17:10:30 +0000219TFileTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200220 TFileTransportTest.cpp
David Reiss709b69f2010-10-06 17:10:30 +0000221
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000222TFileTransportTest_LDADD = \
223 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100224 $(BOOST_TEST_LDADD)
David Reiss709b69f2010-10-06 17:10:30 +0000225
David Reiss351e22b2010-08-31 16:51:19 +0000226#
227# TFDTransportTest
228#
229TFDTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200230 TFDTransportTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000231
Claudius Heine5ef662b2015-06-24 10:03:50 +0200232TFDTransportTest_LDADD = \
233 $(top_builddir)/lib/cpp/libthrift.la \
234 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000235
236
237#
238# TPipedTransportTest
239#
240TPipedTransportTest_SOURCES = \
jfarrellf13e4312015-08-25 00:39:29 -0400241 TPipedTransportTest.cpp \
242 TPipeInterruptTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000243
244TPipedTransportTest_LDADD = \
jfarrelle2e5e222015-08-25 14:59:40 -0400245 libtestgencpp.la \
Claudius Heine5ef662b2015-06-24 10:03:50 +0200246 $(top_builddir)/lib/cpp/libthrift.la \
jfarrelle2e5e222015-08-25 14:59:40 -0400247 $(BOOST_TEST_LDADD) \
248 $(BOOST_SYSTEM_LDADD) \
249 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000250
251#
252# AllProtocolsTest
253#
254AllProtocolsTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200255 AllProtocolTests.cpp \
256 AllProtocolTests.tcc \
257 GenericHelpers.h
David Reiss351e22b2010-08-31 16:51:19 +0000258
Claudius Heine5ef662b2015-06-24 10:03:50 +0200259AllProtocolsTest_LDADD = \
260 libtestgencpp.la \
261 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000262
263#
264# DebugProtoTest
265#
266DebugProtoTest_SOURCES = \
ben-craigaf2d9c82015-07-16 08:11:21 -0500267 DebugProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000268
Claudius Heine5ef662b2015-06-24 10:03:50 +0200269DebugProtoTest_LDADD = \
270 libtestgencpp.la \
271 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000272
273
274#
275# JSONProtoTest
276#
277JSONProtoTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200278 JSONProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000279
Claudius Heine5ef662b2015-06-24 10:03:50 +0200280JSONProtoTest_LDADD = \
281 libtestgencpp.la \
282 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000283
284#
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900285# TNonblockingServerTest
286#
287TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
288
289TNonblockingServerTest_LDADD = libprocessortest.la \
290 $(top_builddir)/lib/cpp/libthrift.la \
291 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100292 $(BOOST_TEST_LDADD) \
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900293 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100294 $(LIBEVENT_LIBS)
Divya Thaluru808d1432017-08-06 16:36:36 -0700295#
296# TNonblockingSSLServerTest
297#
298TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp
299
300TNonblockingSSLServerTest_LDADD = libprocessortest.la \
301 $(top_builddir)/lib/cpp/libthrift.la \
302 $(top_builddir)/lib/cpp/libthriftnb.la \
303 $(BOOST_TEST_LDADD) \
304 $(BOOST_LDFLAGS) \
305 $(BOOST_FILESYSTEM_LDADD) \
306 $(BOOST_CHRONO_LDADD) \
307 $(BOOST_SYSTEM_LDADD) \
308 $(BOOST_THREAD_LDADD) \
309 $(LIBEVENT_LIBS)
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900310
311#
David Reiss351e22b2010-08-31 16:51:19 +0000312# OptionalRequiredTest
313#
314OptionalRequiredTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200315 OptionalRequiredTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000316
Claudius Heine5ef662b2015-06-24 10:03:50 +0200317OptionalRequiredTest_LDADD = \
318 libtestgencpp.la \
319 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000320
David Reisse71115b2010-10-06 17:09:56 +0000321#
jfarrelle0e83162014-04-08 22:45:01 -0400322# OptionalRequiredTest
323#
324RecursiveTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200325 RecursiveTest.cpp
jfarrelle0e83162014-04-08 22:45:01 -0400326
Claudius Heine5ef662b2015-06-24 10:03:50 +0200327RecursiveTest_LDADD = \
328 libtestgencpp.la \
329 $(BOOST_TEST_LDADD)
330
331#
David Reisse71115b2010-10-06 17:09:56 +0000332# SpecializationTest
333#
334SpecializationTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200335 SpecializationTest.cpp
David Reisse71115b2010-10-06 17:09:56 +0000336
Claudius Heine5ef662b2015-06-24 10:03:50 +0200337SpecializationTest_LDADD = \
338 libtestgencpp.la \
339 $(BOOST_TEST_LDADD)
David Reisse71115b2010-10-06 17:09:56 +0000340
Roger Meier2b1a5282012-05-11 10:12:39 +0000341concurrency_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200342 concurrency/Tests.cpp \
343 concurrency/ThreadFactoryTests.h \
344 concurrency/ThreadManagerTests.h \
345 concurrency/TimerManagerTests.h
David Reiss351e22b2010-08-31 16:51:19 +0000346
Roger Meier2b1a5282012-05-11 10:12:39 +0000347concurrency_test_LDADD = \
348 $(top_builddir)/lib/cpp/libthrift.la
349
Roger Meier63fcb7e2014-06-15 21:48:59 +0200350link_test_SOURCES = \
351 link/LinkTest.cpp \
352 link/TemplatedService1.cpp \
353 link/TemplatedService2.cpp
354
Roger Meier2b1a5282012-05-11 10:12:39 +0000355processor_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200356 processor/ProcessorTest.cpp \
357 processor/EventLog.cpp \
358 processor/ServerThread.cpp \
359 processor/EventLog.h \
360 processor/Handlers.h \
361 processor/ServerThread.h
Roger Meier2b1a5282012-05-11 10:12:39 +0000362
363processor_test_LDADD = libprocessortest.la \
364 $(top_builddir)/lib/cpp/libthrift.la \
365 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100366 $(BOOST_TEST_LDADD) \
Roger Meier2b1a5282012-05-11 10:12:39 +0000367 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100368 $(LIBEVENT_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500369
370OpenSSLManualInitTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200371 OpenSSLManualInitTest.cpp
Alan Dunnbee7b732014-07-26 13:48:43 -0500372
373OpenSSLManualInitTest_LDADD = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200374 $(top_builddir)/lib/cpp/libthrift.la \
Nobuaki Sukegawaa8370852016-01-19 00:48:46 +0900375 $(BOOST_TEST_LDADD) \
376 $(OPENSSL_LDFLAGS) \
377 $(OPENSSL_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500378
David Reiss351e22b2010-08-31 16:51:19 +0000379#
380# Common thrift code generation rules
381#
David Reiss351e22b2010-08-31 16:51:19 +0000382
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500383gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
384 $(THRIFT) --gen cpp $<
385
Ben Craig1684c422015-04-24 08:52:44 -0500386gen-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 -0700387 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000388
Ozan Can Altioke46419b2018-03-20 15:02:28 +0300389gen-cpp/DoubleConstantsTest_constants.cpp gen-cpp/DoubleConstantsTest_constants.h: $(top_srcdir)/test/DoubleConstantsTest.thrift
390 $(THRIFT) --gen cpp $<
391
392
Jens Geyerae0b22c2014-09-04 23:04:21 +0200393gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200394 $(THRIFT) --gen cpp $<
Jens Geyerae0b22c2014-09-04 23:04:21 +0200395
Jens Geyer089bcd32014-09-11 22:36:41 +0200396gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200397 $(THRIFT) --gen cpp $<
Jens Geyer089bcd32014-09-11 22:36:41 +0200398
David Reiss351e22b2010-08-31 16:51:19 +0000399gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700400 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000401
jfarrelle0e83162014-04-08 22:45:01 -0400402gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200403 $(THRIFT) --gen cpp $<
jfarrelle0e83162014-04-08 22:45:01 -0400404
David Reiss351e22b2010-08-31 16:51:19 +0000405gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700406 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000407
408gen-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 -0700409 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000410
Chet Murthyad08a8b2017-12-19 15:55:56 -0800411gen-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
412 $(THRIFT) --gen cpp $<
413
Roger Meier6f28c042014-11-01 20:31:44 +0100414gen-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 +0200415 $(THRIFT) --gen cpp:templates,cob_style $<
Roger Meier2b1a5282012-05-11 10:12:39 +0000416
James E. King, IIId7142b72017-09-01 13:00:36 -0700417AM_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 +0000418AM_LDFLAGS = $(BOOST_LDFLAGS)
Roger Meiercb0754d2014-10-21 21:28:04 +0200419AM_CXXFLAGS = -Wall -Wextra -pedantic
David Reiss351e22b2010-08-31 16:51:19 +0000420
421clean-local:
Nobuaki Sukegawad3f7d0e2015-11-03 13:42:00 +0900422 $(RM) gen-cpp/*
David Reiss351e22b2010-08-31 16:51:19 +0000423
424EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200425 concurrency \
jfarrellf13e4312015-08-25 00:39:29 -0400426 processor \
427 qt \
428 CMakeLists.txt \
429 DebugProtoTest_extras.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800430 ThriftTest_extras.cpp \
431 OneWayTest.thrift