blob: c298e26f83325ca3074d6f0d42ec0c1b02827eb8 [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 \
31 gen-cpp/proc_types.h
32
Roger Meier2b1a5282012-05-11 10:12:39 +000033noinst_LTLIBRARIES = libtestgencpp.la libprocessortest.la
David Reiss351e22b2010-08-31 16:51:19 +000034nodist_libtestgencpp_la_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -050035 gen-cpp/AnnotationTest_types.cpp \
36 gen-cpp/AnnotationTest_types.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020037 gen-cpp/DebugProtoTest_types.cpp \
38 gen-cpp/DebugProtoTest_types.h \
39 gen-cpp/EnumTest_types.cpp \
40 gen-cpp/EnumTest_types.h \
41 gen-cpp/OptionalRequiredTest_types.cpp \
42 gen-cpp/OptionalRequiredTest_types.h \
43 gen-cpp/Recursive_types.cpp \
44 gen-cpp/Recursive_types.h \
45 gen-cpp/ThriftTest_types.cpp \
46 gen-cpp/ThriftTest_types.h \
Roger Meiera5bf1a12014-10-22 23:26:01 +020047 gen-cpp/ThriftTest_constants.cpp \
48 gen-cpp/ThriftTest_constants.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020049 gen-cpp/TypedefTest_types.cpp \
50 gen-cpp/TypedefTest_types.h \
51 ThriftTest_extras.cpp \
52 DebugProtoTest_extras.cpp
David Reiss351e22b2010-08-31 16:51:19 +000053
Roger Meier2b1a5282012-05-11 10:12:39 +000054nodist_libprocessortest_la_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +020055 gen-cpp/ChildService.cpp \
56 gen-cpp/ChildService.h \
Ben Craig1684c422015-04-24 08:52:44 -050057 gen-cpp/EmptyService.cpp \
58 gen-cpp/EmptyService.h \
Jens Geyer79f988c2014-10-03 20:42:54 +020059 gen-cpp/ParentService.cpp \
60 gen-cpp/ParentService.h \
61 gen-cpp/proc_types.cpp \
62 gen-cpp/proc_types.h
Roger Meier2b1a5282012-05-11 10:12:39 +000063
David Reiss351e22b2010-08-31 16:51:19 +000064ThriftTest_extras.o: gen-cpp/ThriftTest_types.h
65DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h
66
67libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
68
Roger Meiera5bf1a12014-10-22 23:26:01 +020069noinst_PROGRAMS = Benchmark \
Roger Meiera5bf1a12014-10-22 23:26:01 +020070 concurrency_test
David Reiss351e22b2010-08-31 16:51:19 +000071
72Benchmark_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +020073 Benchmark.cpp
David Reiss351e22b2010-08-31 16:51:19 +000074
75Benchmark_LDADD = libtestgencpp.la
76
77check_PROGRAMS = \
Roger Meier01144552015-04-04 16:14:08 +020078 UnitTests \
Jens Geyer79f988c2014-10-03 20:42:54 +020079 TFDTransportTest \
80 TPipedTransportTest \
81 DebugProtoTest \
82 JSONProtoTest \
83 OptionalRequiredTest \
84 RecursiveTest \
85 SpecializationTest \
86 AllProtocolsTest \
87 TransportTest \
ben-craigaf2d9c82015-07-16 08:11:21 -050088 TInterruptTest \
Ben Craig1684c422015-04-24 08:52:44 -050089 TServerIntegrationTest \
Jim Kingb0b710a2015-07-28 13:31:27 -040090 SecurityTest \
Jens Geyer79f988c2014-10-03 20:42:54 +020091 ZlibTest \
92 TFileTransportTest \
Jens Geyer79f988c2014-10-03 20:42:54 +020093 link_test \
94 OpenSSLManualInitTest \
James E. King, IIIb4c190b2017-02-13 16:39:59 -050095 EnumTest \
96 AnnotationTest
David Reiss351e22b2010-08-31 16:51:19 +000097
Jens Geyer4461a2f2014-12-23 18:22:54 +010098if AMX_HAVE_LIBEVENT
Nobuaki Sukegawa208738a2015-02-01 00:27:22 +090099noinst_PROGRAMS += \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100100 processor_test
101check_PROGRAMS += \
Divya Thaluru808d1432017-08-06 16:36:36 -0700102 TNonblockingServerTest \
103 TNonblockingSSLServerTest
Jens Geyer4461a2f2014-12-23 18:22:54 +0100104endif
105
Roger Meier9e0f0742011-08-03 17:36:55 +0000106TESTS_ENVIRONMENT= \
Jens Geyer79f988c2014-10-03 20:42:54 +0200107 BOOST_TEST_LOG_SINK=tests.xml \
108 BOOST_TEST_LOG_LEVEL=test_suite \
Nobuaki Sukegawa3d600bf2016-01-23 22:45:20 +0900109 BOOST_TEST_LOG_FORMAT=XML
Roger Meier9e0f0742011-08-03 17:36:55 +0000110
David Reiss351e22b2010-08-31 16:51:19 +0000111TESTS = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200112 $(check_PROGRAMS)
David Reiss351e22b2010-08-31 16:51:19 +0000113
114UnitTests_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200115 UnitTestMain.cpp \
116 TMemoryBufferTest.cpp \
117 TBufferBaseTest.cpp \
118 Base64Test.cpp \
119 ToStringTest.cpp \
Roger Meier01144552015-04-04 16:14:08 +0200120 TypedefTest.cpp \
Ben Craig1684c422015-04-24 08:52:44 -0500121 TServerSocketTest.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400122 TServerTransportTest.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400123 TTransportCheckThrow.h
Roger Meier12d70532011-12-14 23:35:28 +0000124
125if !WITH_BOOSTTHREADS
126UnitTests_SOURCES += \
James E. King, III00d42522017-04-04 09:32:45 -0400127 concurrency/MutexTest.cpp \
128 concurrency/RWMutexStarveTest.cpp
Roger Meier12d70532011-12-14 23:35:28 +0000129endif
David Reiss351e22b2010-08-31 16:51:19 +0000130
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000131UnitTests_LDADD = \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000132 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100133 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000134
ben-craigaf2d9c82015-07-16 08:11:21 -0500135TInterruptTest_SOURCES = \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800136 TSocketInterruptTest.cpp \
137 TSSLSocketInterruptTest.cpp
Ben Craig1684c422015-04-24 08:52:44 -0500138
ben-craigaf2d9c82015-07-16 08:11:21 -0500139TInterruptTest_LDADD = \
Ben Craig1684c422015-04-24 08:52:44 -0500140 libtestgencpp.la \
141 $(BOOST_TEST_LDADD) \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800142 $(BOOST_FILESYSTEM_LDADD) \
Ben Craig1684c422015-04-24 08:52:44 -0500143 $(BOOST_CHRONO_LDADD) \
144 $(BOOST_SYSTEM_LDADD) \
145 $(BOOST_THREAD_LDADD)
146
147TServerIntegrationTest_SOURCES = \
148 TServerIntegrationTest.cpp
149
150TServerIntegrationTest_LDADD = \
151 libtestgencpp.la \
152 libprocessortest.la \
153 $(BOOST_TEST_LDADD) \
154 $(BOOST_SYSTEM_LDADD) \
155 $(BOOST_THREAD_LDADD)
156
Jim Kingb0b710a2015-07-28 13:31:27 -0400157SecurityTest_SOURCES = \
158 SecurityTest.cpp
159
160SecurityTest_LDADD = \
161 libtestgencpp.la \
162 libprocessortest.la \
163 $(BOOST_TEST_LDADD) \
164 $(BOOST_FILESYSTEM_LDADD) \
165 $(BOOST_SYSTEM_LDADD) \
166 $(BOOST_THREAD_LDADD)
167
David Reiss35dc7692010-10-06 17:10:19 +0000168TransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200169 TransportTest.cpp
David Reiss35dc7692010-10-06 17:10:19 +0000170
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000171TransportTest_LDADD = \
172 libtestgencpp.la \
173 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100174 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000175 -lz
David Reiss35dc7692010-10-06 17:10:19 +0000176
David Reiss9a961e72010-10-06 17:10:23 +0000177ZlibTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200178 ZlibTest.cpp
David Reiss9a961e72010-10-06 17:10:23 +0000179
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000180ZlibTest_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 Reiss9a961e72010-10-06 17:10:23 +0000185
Jens Geyerae0b22c2014-09-04 23:04:21 +0200186EnumTest_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500187 EnumTest.cpp
Jens Geyerae0b22c2014-09-04 23:04:21 +0200188
189EnumTest_LDADD = \
190 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100191 $(BOOST_TEST_LDADD)
Jens Geyerae0b22c2014-09-04 23:04:21 +0200192
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500193AnnotationTest_SOURCES = \
194 AnnotationTest.cpp
195
196AnnotationTest_LDADD = \
197 libtestgencpp.la \
198 $(BOOST_TEST_LDADD)
199
David Reiss709b69f2010-10-06 17:10:30 +0000200TFileTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200201 TFileTransportTest.cpp
David Reiss709b69f2010-10-06 17:10:30 +0000202
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000203TFileTransportTest_LDADD = \
204 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100205 $(BOOST_TEST_LDADD)
David Reiss709b69f2010-10-06 17:10:30 +0000206
David Reiss351e22b2010-08-31 16:51:19 +0000207#
208# TFDTransportTest
209#
210TFDTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200211 TFDTransportTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000212
Claudius Heine5ef662b2015-06-24 10:03:50 +0200213TFDTransportTest_LDADD = \
214 $(top_builddir)/lib/cpp/libthrift.la \
215 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000216
217
218#
219# TPipedTransportTest
220#
221TPipedTransportTest_SOURCES = \
jfarrellf13e4312015-08-25 00:39:29 -0400222 TPipedTransportTest.cpp \
223 TPipeInterruptTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000224
225TPipedTransportTest_LDADD = \
jfarrelle2e5e222015-08-25 14:59:40 -0400226 libtestgencpp.la \
Claudius Heine5ef662b2015-06-24 10:03:50 +0200227 $(top_builddir)/lib/cpp/libthrift.la \
jfarrelle2e5e222015-08-25 14:59:40 -0400228 $(BOOST_TEST_LDADD) \
229 $(BOOST_SYSTEM_LDADD) \
230 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000231
232#
233# AllProtocolsTest
234#
235AllProtocolsTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200236 AllProtocolTests.cpp \
237 AllProtocolTests.tcc \
238 GenericHelpers.h
David Reiss351e22b2010-08-31 16:51:19 +0000239
Claudius Heine5ef662b2015-06-24 10:03:50 +0200240AllProtocolsTest_LDADD = \
241 libtestgencpp.la \
242 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000243
244#
245# DebugProtoTest
246#
247DebugProtoTest_SOURCES = \
ben-craigaf2d9c82015-07-16 08:11:21 -0500248 DebugProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000249
Claudius Heine5ef662b2015-06-24 10:03:50 +0200250DebugProtoTest_LDADD = \
251 libtestgencpp.la \
252 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000253
254
255#
256# JSONProtoTest
257#
258JSONProtoTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200259 JSONProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000260
Claudius Heine5ef662b2015-06-24 10:03:50 +0200261JSONProtoTest_LDADD = \
262 libtestgencpp.la \
263 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000264
265#
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900266# TNonblockingServerTest
267#
268TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
269
270TNonblockingServerTest_LDADD = libprocessortest.la \
271 $(top_builddir)/lib/cpp/libthrift.la \
272 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100273 $(BOOST_TEST_LDADD) \
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900274 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100275 $(LIBEVENT_LIBS)
Divya Thaluru808d1432017-08-06 16:36:36 -0700276#
277# TNonblockingSSLServerTest
278#
279TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp
280
281TNonblockingSSLServerTest_LDADD = libprocessortest.la \
282 $(top_builddir)/lib/cpp/libthrift.la \
283 $(top_builddir)/lib/cpp/libthriftnb.la \
284 $(BOOST_TEST_LDADD) \
285 $(BOOST_LDFLAGS) \
286 $(BOOST_FILESYSTEM_LDADD) \
287 $(BOOST_CHRONO_LDADD) \
288 $(BOOST_SYSTEM_LDADD) \
289 $(BOOST_THREAD_LDADD) \
290 $(LIBEVENT_LIBS)
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900291
292#
David Reiss351e22b2010-08-31 16:51:19 +0000293# OptionalRequiredTest
294#
295OptionalRequiredTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200296 OptionalRequiredTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000297
Claudius Heine5ef662b2015-06-24 10:03:50 +0200298OptionalRequiredTest_LDADD = \
299 libtestgencpp.la \
300 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000301
David Reisse71115b2010-10-06 17:09:56 +0000302#
jfarrelle0e83162014-04-08 22:45:01 -0400303# OptionalRequiredTest
304#
305RecursiveTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200306 RecursiveTest.cpp
jfarrelle0e83162014-04-08 22:45:01 -0400307
Claudius Heine5ef662b2015-06-24 10:03:50 +0200308RecursiveTest_LDADD = \
309 libtestgencpp.la \
310 $(BOOST_TEST_LDADD)
311
312#
David Reisse71115b2010-10-06 17:09:56 +0000313# SpecializationTest
314#
315SpecializationTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200316 SpecializationTest.cpp
David Reisse71115b2010-10-06 17:09:56 +0000317
Claudius Heine5ef662b2015-06-24 10:03:50 +0200318SpecializationTest_LDADD = \
319 libtestgencpp.la \
320 $(BOOST_TEST_LDADD)
David Reisse71115b2010-10-06 17:09:56 +0000321
Roger Meier2b1a5282012-05-11 10:12:39 +0000322concurrency_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200323 concurrency/Tests.cpp \
324 concurrency/ThreadFactoryTests.h \
325 concurrency/ThreadManagerTests.h \
326 concurrency/TimerManagerTests.h
David Reiss351e22b2010-08-31 16:51:19 +0000327
Roger Meier2b1a5282012-05-11 10:12:39 +0000328concurrency_test_LDADD = \
329 $(top_builddir)/lib/cpp/libthrift.la
330
Roger Meier63fcb7e2014-06-15 21:48:59 +0200331link_test_SOURCES = \
332 link/LinkTest.cpp \
333 link/TemplatedService1.cpp \
334 link/TemplatedService2.cpp
335
Roger Meier2b1a5282012-05-11 10:12:39 +0000336processor_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200337 processor/ProcessorTest.cpp \
338 processor/EventLog.cpp \
339 processor/ServerThread.cpp \
340 processor/EventLog.h \
341 processor/Handlers.h \
342 processor/ServerThread.h
Roger Meier2b1a5282012-05-11 10:12:39 +0000343
344processor_test_LDADD = libprocessortest.la \
345 $(top_builddir)/lib/cpp/libthrift.la \
346 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100347 $(BOOST_TEST_LDADD) \
Roger Meier2b1a5282012-05-11 10:12:39 +0000348 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100349 $(LIBEVENT_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500350
351OpenSSLManualInitTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200352 OpenSSLManualInitTest.cpp
Alan Dunnbee7b732014-07-26 13:48:43 -0500353
354OpenSSLManualInitTest_LDADD = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200355 $(top_builddir)/lib/cpp/libthrift.la \
Nobuaki Sukegawaa8370852016-01-19 00:48:46 +0900356 $(BOOST_TEST_LDADD) \
357 $(OPENSSL_LDFLAGS) \
358 $(OPENSSL_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500359
David Reiss351e22b2010-08-31 16:51:19 +0000360#
361# Common thrift code generation rules
362#
David Reiss351e22b2010-08-31 16:51:19 +0000363
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500364gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
365 $(THRIFT) --gen cpp $<
366
Ben Craig1684c422015-04-24 08:52:44 -0500367gen-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 -0700368 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000369
Jens Geyerae0b22c2014-09-04 23:04:21 +0200370gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200371 $(THRIFT) --gen cpp $<
Jens Geyerae0b22c2014-09-04 23:04:21 +0200372
Jens Geyer089bcd32014-09-11 22:36:41 +0200373gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200374 $(THRIFT) --gen cpp $<
Jens Geyer089bcd32014-09-11 22:36:41 +0200375
David Reiss351e22b2010-08-31 16:51:19 +0000376gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700377 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000378
jfarrelle0e83162014-04-08 22:45:01 -0400379gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200380 $(THRIFT) --gen cpp $<
jfarrelle0e83162014-04-08 22:45:01 -0400381
David Reiss351e22b2010-08-31 16:51:19 +0000382gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700383 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000384
385gen-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 -0700386 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000387
Roger Meier6f28c042014-11-01 20:31:44 +0100388gen-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 +0200389 $(THRIFT) --gen cpp:templates,cob_style $<
Roger Meier2b1a5282012-05-11 10:12:39 +0000390
James E. King, IIId7142b72017-09-01 13:00:36 -0700391AM_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 +0000392AM_LDFLAGS = $(BOOST_LDFLAGS)
Roger Meiercb0754d2014-10-21 21:28:04 +0200393AM_CXXFLAGS = -Wall -Wextra -pedantic
David Reiss351e22b2010-08-31 16:51:19 +0000394
395clean-local:
Nobuaki Sukegawad3f7d0e2015-11-03 13:42:00 +0900396 $(RM) gen-cpp/*
David Reiss351e22b2010-08-31 16:51:19 +0000397
398EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200399 concurrency \
jfarrellf13e4312015-08-25 00:39:29 -0400400 processor \
401 qt \
402 CMakeLists.txt \
403 DebugProtoTest_extras.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400404 ThriftTest_extras.cpp