blob: 587e2be58f1698f05697b65a419209e300f2fa35 [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 \
42 gen-cpp/EnumTest_types.cpp \
43 gen-cpp/EnumTest_types.h \
44 gen-cpp/OptionalRequiredTest_types.cpp \
45 gen-cpp/OptionalRequiredTest_types.h \
46 gen-cpp/Recursive_types.cpp \
47 gen-cpp/Recursive_types.h \
48 gen-cpp/ThriftTest_types.cpp \
49 gen-cpp/ThriftTest_types.h \
Roger Meiera5bf1a12014-10-22 23:26:01 +020050 gen-cpp/ThriftTest_constants.cpp \
51 gen-cpp/ThriftTest_constants.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020052 gen-cpp/TypedefTest_types.cpp \
53 gen-cpp/TypedefTest_types.h \
Chet Murthyad08a8b2017-12-19 15:55:56 -080054 gen-cpp/OneWayService.cpp \
55 gen-cpp/OneWayTest_constants.cpp \
56 gen-cpp/OneWayTest_types.h \
57 gen-cpp/OneWayService.h \
58 gen-cpp/OneWayTest_constants.h \
59 gen-cpp/OneWayTest_types.cpp \
Jens Geyer79f988c2014-10-03 20:42:54 +020060 ThriftTest_extras.cpp \
61 DebugProtoTest_extras.cpp
David Reiss351e22b2010-08-31 16:51:19 +000062
Roger Meier2b1a5282012-05-11 10:12:39 +000063nodist_libprocessortest_la_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +020064 gen-cpp/ChildService.cpp \
65 gen-cpp/ChildService.h \
Ben Craig1684c422015-04-24 08:52:44 -050066 gen-cpp/EmptyService.cpp \
67 gen-cpp/EmptyService.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020068 gen-cpp/ParentService.cpp \
69 gen-cpp/ParentService.h \
70 gen-cpp/proc_types.cpp \
71 gen-cpp/proc_types.h
Roger Meier2b1a5282012-05-11 10:12:39 +000072
David Reiss351e22b2010-08-31 16:51:19 +000073ThriftTest_extras.o: gen-cpp/ThriftTest_types.h
74DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h
75
76libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
77
Roger Meiera5bf1a12014-10-22 23:26:01 +020078noinst_PROGRAMS = Benchmark \
Roger Meiera5bf1a12014-10-22 23:26:01 +020079 concurrency_test
David Reiss351e22b2010-08-31 16:51:19 +000080
81Benchmark_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +020082 Benchmark.cpp
David Reiss351e22b2010-08-31 16:51:19 +000083
84Benchmark_LDADD = libtestgencpp.la
85
86check_PROGRAMS = \
Roger Meier01144552015-04-04 16:14:08 +020087 UnitTests \
Jens Geyer79f988c2014-10-03 20:42:54 +020088 TFDTransportTest \
89 TPipedTransportTest \
90 DebugProtoTest \
91 JSONProtoTest \
92 OptionalRequiredTest \
93 RecursiveTest \
94 SpecializationTest \
95 AllProtocolsTest \
96 TransportTest \
ben-craigaf2d9c82015-07-16 08:11:21 -050097 TInterruptTest \
Ben Craig1684c422015-04-24 08:52:44 -050098 TServerIntegrationTest \
Jim Kingb0b710a2015-07-28 13:31:27 -040099 SecurityTest \
Jens Geyer79f988c2014-10-03 20:42:54 +0200100 ZlibTest \
101 TFileTransportTest \
Jens Geyer79f988c2014-10-03 20:42:54 +0200102 link_test \
103 OpenSSLManualInitTest \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500104 EnumTest \
105 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 \
jfarrellf13e4312015-08-25 00:39:29 -0400133 TTransportCheckThrow.h
Roger Meier12d70532011-12-14 23:35:28 +0000134
135if !WITH_BOOSTTHREADS
136UnitTests_SOURCES += \
James E. King, III00d42522017-04-04 09:32:45 -0400137 concurrency/MutexTest.cpp \
138 concurrency/RWMutexStarveTest.cpp
Roger Meier12d70532011-12-14 23:35:28 +0000139endif
David Reiss351e22b2010-08-31 16:51:19 +0000140
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000141UnitTests_LDADD = \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000142 libtestgencpp.la \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800143 $(BOOST_TEST_LDADD) \
144 $(BOOST_SYSTEM_LDADD) \
145 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000146
ben-craigaf2d9c82015-07-16 08:11:21 -0500147TInterruptTest_SOURCES = \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800148 TSocketInterruptTest.cpp \
149 TSSLSocketInterruptTest.cpp
Ben Craig1684c422015-04-24 08:52:44 -0500150
ben-craigaf2d9c82015-07-16 08:11:21 -0500151TInterruptTest_LDADD = \
Ben Craig1684c422015-04-24 08:52:44 -0500152 libtestgencpp.la \
153 $(BOOST_TEST_LDADD) \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800154 $(BOOST_FILESYSTEM_LDADD) \
Ben Craig1684c422015-04-24 08:52:44 -0500155 $(BOOST_CHRONO_LDADD) \
156 $(BOOST_SYSTEM_LDADD) \
157 $(BOOST_THREAD_LDADD)
158
159TServerIntegrationTest_SOURCES = \
160 TServerIntegrationTest.cpp
161
162TServerIntegrationTest_LDADD = \
163 libtestgencpp.la \
164 libprocessortest.la \
165 $(BOOST_TEST_LDADD) \
166 $(BOOST_SYSTEM_LDADD) \
167 $(BOOST_THREAD_LDADD)
168
Jim Kingb0b710a2015-07-28 13:31:27 -0400169SecurityTest_SOURCES = \
170 SecurityTest.cpp
171
172SecurityTest_LDADD = \
173 libtestgencpp.la \
174 libprocessortest.la \
175 $(BOOST_TEST_LDADD) \
176 $(BOOST_FILESYSTEM_LDADD) \
177 $(BOOST_SYSTEM_LDADD) \
178 $(BOOST_THREAD_LDADD)
179
David Reiss35dc7692010-10-06 17:10:19 +0000180TransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200181 TransportTest.cpp
David Reiss35dc7692010-10-06 17:10:19 +0000182
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000183TransportTest_LDADD = \
184 libtestgencpp.la \
185 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100186 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000187 -lz
David Reiss35dc7692010-10-06 17:10:19 +0000188
David Reiss9a961e72010-10-06 17:10:23 +0000189ZlibTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200190 ZlibTest.cpp
David Reiss9a961e72010-10-06 17:10:23 +0000191
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000192ZlibTest_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 Reiss9a961e72010-10-06 17:10:23 +0000197
Jens Geyerae0b22c2014-09-04 23:04:21 +0200198EnumTest_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500199 EnumTest.cpp
Jens Geyerae0b22c2014-09-04 23:04:21 +0200200
201EnumTest_LDADD = \
202 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100203 $(BOOST_TEST_LDADD)
Jens Geyerae0b22c2014-09-04 23:04:21 +0200204
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500205AnnotationTest_SOURCES = \
206 AnnotationTest.cpp
207
208AnnotationTest_LDADD = \
209 libtestgencpp.la \
210 $(BOOST_TEST_LDADD)
211
David Reiss709b69f2010-10-06 17:10:30 +0000212TFileTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200213 TFileTransportTest.cpp
David Reiss709b69f2010-10-06 17:10:30 +0000214
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000215TFileTransportTest_LDADD = \
216 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100217 $(BOOST_TEST_LDADD)
David Reiss709b69f2010-10-06 17:10:30 +0000218
David Reiss351e22b2010-08-31 16:51:19 +0000219#
220# TFDTransportTest
221#
222TFDTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200223 TFDTransportTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000224
Claudius Heine5ef662b2015-06-24 10:03:50 +0200225TFDTransportTest_LDADD = \
226 $(top_builddir)/lib/cpp/libthrift.la \
227 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000228
229
230#
231# TPipedTransportTest
232#
233TPipedTransportTest_SOURCES = \
jfarrellf13e4312015-08-25 00:39:29 -0400234 TPipedTransportTest.cpp \
235 TPipeInterruptTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000236
237TPipedTransportTest_LDADD = \
jfarrelle2e5e222015-08-25 14:59:40 -0400238 libtestgencpp.la \
Claudius Heine5ef662b2015-06-24 10:03:50 +0200239 $(top_builddir)/lib/cpp/libthrift.la \
jfarrelle2e5e222015-08-25 14:59:40 -0400240 $(BOOST_TEST_LDADD) \
241 $(BOOST_SYSTEM_LDADD) \
242 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000243
244#
245# AllProtocolsTest
246#
247AllProtocolsTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200248 AllProtocolTests.cpp \
249 AllProtocolTests.tcc \
250 GenericHelpers.h
David Reiss351e22b2010-08-31 16:51:19 +0000251
Claudius Heine5ef662b2015-06-24 10:03:50 +0200252AllProtocolsTest_LDADD = \
253 libtestgencpp.la \
254 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000255
256#
257# DebugProtoTest
258#
259DebugProtoTest_SOURCES = \
ben-craigaf2d9c82015-07-16 08:11:21 -0500260 DebugProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000261
Claudius Heine5ef662b2015-06-24 10:03:50 +0200262DebugProtoTest_LDADD = \
263 libtestgencpp.la \
264 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000265
266
267#
268# JSONProtoTest
269#
270JSONProtoTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200271 JSONProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000272
Claudius Heine5ef662b2015-06-24 10:03:50 +0200273JSONProtoTest_LDADD = \
274 libtestgencpp.la \
275 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000276
277#
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900278# TNonblockingServerTest
279#
280TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
281
282TNonblockingServerTest_LDADD = libprocessortest.la \
283 $(top_builddir)/lib/cpp/libthrift.la \
284 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100285 $(BOOST_TEST_LDADD) \
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900286 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100287 $(LIBEVENT_LIBS)
Divya Thaluru808d1432017-08-06 16:36:36 -0700288#
289# TNonblockingSSLServerTest
290#
291TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp
292
293TNonblockingSSLServerTest_LDADD = libprocessortest.la \
294 $(top_builddir)/lib/cpp/libthrift.la \
295 $(top_builddir)/lib/cpp/libthriftnb.la \
296 $(BOOST_TEST_LDADD) \
297 $(BOOST_LDFLAGS) \
298 $(BOOST_FILESYSTEM_LDADD) \
299 $(BOOST_CHRONO_LDADD) \
300 $(BOOST_SYSTEM_LDADD) \
301 $(BOOST_THREAD_LDADD) \
302 $(LIBEVENT_LIBS)
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900303
304#
David Reiss351e22b2010-08-31 16:51:19 +0000305# OptionalRequiredTest
306#
307OptionalRequiredTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200308 OptionalRequiredTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000309
Claudius Heine5ef662b2015-06-24 10:03:50 +0200310OptionalRequiredTest_LDADD = \
311 libtestgencpp.la \
312 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000313
David Reisse71115b2010-10-06 17:09:56 +0000314#
jfarrelle0e83162014-04-08 22:45:01 -0400315# OptionalRequiredTest
316#
317RecursiveTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200318 RecursiveTest.cpp
jfarrelle0e83162014-04-08 22:45:01 -0400319
Claudius Heine5ef662b2015-06-24 10:03:50 +0200320RecursiveTest_LDADD = \
321 libtestgencpp.la \
322 $(BOOST_TEST_LDADD)
323
324#
David Reisse71115b2010-10-06 17:09:56 +0000325# SpecializationTest
326#
327SpecializationTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200328 SpecializationTest.cpp
David Reisse71115b2010-10-06 17:09:56 +0000329
Claudius Heine5ef662b2015-06-24 10:03:50 +0200330SpecializationTest_LDADD = \
331 libtestgencpp.la \
332 $(BOOST_TEST_LDADD)
David Reisse71115b2010-10-06 17:09:56 +0000333
Roger Meier2b1a5282012-05-11 10:12:39 +0000334concurrency_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200335 concurrency/Tests.cpp \
336 concurrency/ThreadFactoryTests.h \
337 concurrency/ThreadManagerTests.h \
338 concurrency/TimerManagerTests.h
David Reiss351e22b2010-08-31 16:51:19 +0000339
Roger Meier2b1a5282012-05-11 10:12:39 +0000340concurrency_test_LDADD = \
341 $(top_builddir)/lib/cpp/libthrift.la
342
Roger Meier63fcb7e2014-06-15 21:48:59 +0200343link_test_SOURCES = \
344 link/LinkTest.cpp \
345 link/TemplatedService1.cpp \
346 link/TemplatedService2.cpp
347
Roger Meier2b1a5282012-05-11 10:12:39 +0000348processor_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200349 processor/ProcessorTest.cpp \
350 processor/EventLog.cpp \
351 processor/ServerThread.cpp \
352 processor/EventLog.h \
353 processor/Handlers.h \
354 processor/ServerThread.h
Roger Meier2b1a5282012-05-11 10:12:39 +0000355
356processor_test_LDADD = libprocessortest.la \
357 $(top_builddir)/lib/cpp/libthrift.la \
358 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100359 $(BOOST_TEST_LDADD) \
Roger Meier2b1a5282012-05-11 10:12:39 +0000360 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100361 $(LIBEVENT_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500362
363OpenSSLManualInitTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200364 OpenSSLManualInitTest.cpp
Alan Dunnbee7b732014-07-26 13:48:43 -0500365
366OpenSSLManualInitTest_LDADD = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200367 $(top_builddir)/lib/cpp/libthrift.la \
Nobuaki Sukegawaa8370852016-01-19 00:48:46 +0900368 $(BOOST_TEST_LDADD) \
369 $(OPENSSL_LDFLAGS) \
370 $(OPENSSL_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500371
David Reiss351e22b2010-08-31 16:51:19 +0000372#
373# Common thrift code generation rules
374#
David Reiss351e22b2010-08-31 16:51:19 +0000375
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500376gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
377 $(THRIFT) --gen cpp $<
378
Ben Craig1684c422015-04-24 08:52:44 -0500379gen-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 -0700380 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000381
Jens Geyerae0b22c2014-09-04 23:04:21 +0200382gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200383 $(THRIFT) --gen cpp $<
Jens Geyerae0b22c2014-09-04 23:04:21 +0200384
Jens Geyer089bcd32014-09-11 22:36:41 +0200385gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200386 $(THRIFT) --gen cpp $<
Jens Geyer089bcd32014-09-11 22:36:41 +0200387
David Reiss351e22b2010-08-31 16:51:19 +0000388gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700389 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000390
jfarrelle0e83162014-04-08 22:45:01 -0400391gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200392 $(THRIFT) --gen cpp $<
jfarrelle0e83162014-04-08 22:45:01 -0400393
David Reiss351e22b2010-08-31 16:51:19 +0000394gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700395 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000396
397gen-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 -0700398 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000399
Chet Murthyad08a8b2017-12-19 15:55:56 -0800400gen-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
401 $(THRIFT) --gen cpp $<
402
Roger Meier6f28c042014-11-01 20:31:44 +0100403gen-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 +0200404 $(THRIFT) --gen cpp:templates,cob_style $<
Roger Meier2b1a5282012-05-11 10:12:39 +0000405
James E. King, IIId7142b72017-09-01 13:00:36 -0700406AM_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 +0000407AM_LDFLAGS = $(BOOST_LDFLAGS)
Roger Meiercb0754d2014-10-21 21:28:04 +0200408AM_CXXFLAGS = -Wall -Wextra -pedantic
David Reiss351e22b2010-08-31 16:51:19 +0000409
410clean-local:
Nobuaki Sukegawad3f7d0e2015-11-03 13:42:00 +0900411 $(RM) gen-cpp/*
David Reiss351e22b2010-08-31 16:51:19 +0000412
413EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200414 concurrency \
jfarrellf13e4312015-08-25 00:39:29 -0400415 processor \
416 qt \
417 CMakeLists.txt \
418 DebugProtoTest_extras.cpp \
Chet Murthyad08a8b2017-12-19 15:55:56 -0800419 ThriftTest_extras.cpp \
420 OneWayTest.thrift