blob: f61cff191d6e1fdd35f7d2964f631f2ece833b91 [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 += \
102 TNonblockingServerTest
103endif
104
Roger Meier9e0f0742011-08-03 17:36:55 +0000105TESTS_ENVIRONMENT= \
Jens Geyer79f988c2014-10-03 20:42:54 +0200106 BOOST_TEST_LOG_SINK=tests.xml \
107 BOOST_TEST_LOG_LEVEL=test_suite \
Nobuaki Sukegawa3d600bf2016-01-23 22:45:20 +0900108 BOOST_TEST_LOG_FORMAT=XML
Roger Meier9e0f0742011-08-03 17:36:55 +0000109
David Reiss351e22b2010-08-31 16:51:19 +0000110TESTS = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200111 $(check_PROGRAMS)
David Reiss351e22b2010-08-31 16:51:19 +0000112
113UnitTests_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200114 UnitTestMain.cpp \
115 TMemoryBufferTest.cpp \
116 TBufferBaseTest.cpp \
117 Base64Test.cpp \
118 ToStringTest.cpp \
Roger Meier01144552015-04-04 16:14:08 +0200119 TypedefTest.cpp \
Ben Craig1684c422015-04-24 08:52:44 -0500120 TServerSocketTest.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400121 TServerTransportTest.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400122 TTransportCheckThrow.h
Roger Meier12d70532011-12-14 23:35:28 +0000123
124if !WITH_BOOSTTHREADS
125UnitTests_SOURCES += \
James E. King, III00d42522017-04-04 09:32:45 -0400126 concurrency/MutexTest.cpp \
127 concurrency/RWMutexStarveTest.cpp
Roger Meier12d70532011-12-14 23:35:28 +0000128endif
David Reiss351e22b2010-08-31 16:51:19 +0000129
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000130UnitTests_LDADD = \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000131 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100132 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000133
ben-craigaf2d9c82015-07-16 08:11:21 -0500134TInterruptTest_SOURCES = \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800135 TSocketInterruptTest.cpp \
136 TSSLSocketInterruptTest.cpp
Ben Craig1684c422015-04-24 08:52:44 -0500137
ben-craigaf2d9c82015-07-16 08:11:21 -0500138TInterruptTest_LDADD = \
Ben Craig1684c422015-04-24 08:52:44 -0500139 libtestgencpp.la \
140 $(BOOST_TEST_LDADD) \
Martin Haimberger0ad6ee92015-11-13 03:18:50 -0800141 $(BOOST_FILESYSTEM_LDADD) \
Ben Craig1684c422015-04-24 08:52:44 -0500142 $(BOOST_CHRONO_LDADD) \
143 $(BOOST_SYSTEM_LDADD) \
144 $(BOOST_THREAD_LDADD)
145
146TServerIntegrationTest_SOURCES = \
147 TServerIntegrationTest.cpp
148
149TServerIntegrationTest_LDADD = \
150 libtestgencpp.la \
151 libprocessortest.la \
152 $(BOOST_TEST_LDADD) \
153 $(BOOST_SYSTEM_LDADD) \
154 $(BOOST_THREAD_LDADD)
155
Jim Kingb0b710a2015-07-28 13:31:27 -0400156SecurityTest_SOURCES = \
157 SecurityTest.cpp
158
159SecurityTest_LDADD = \
160 libtestgencpp.la \
161 libprocessortest.la \
162 $(BOOST_TEST_LDADD) \
163 $(BOOST_FILESYSTEM_LDADD) \
164 $(BOOST_SYSTEM_LDADD) \
165 $(BOOST_THREAD_LDADD)
166
David Reiss35dc7692010-10-06 17:10:19 +0000167TransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200168 TransportTest.cpp
David Reiss35dc7692010-10-06 17:10:19 +0000169
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000170TransportTest_LDADD = \
171 libtestgencpp.la \
172 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100173 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000174 -lz
David Reiss35dc7692010-10-06 17:10:19 +0000175
David Reiss9a961e72010-10-06 17:10:23 +0000176ZlibTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200177 ZlibTest.cpp
David Reiss9a961e72010-10-06 17:10:23 +0000178
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000179ZlibTest_LDADD = \
180 libtestgencpp.la \
181 $(top_builddir)/lib/cpp/libthriftz.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100182 $(BOOST_TEST_LDADD) \
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000183 -lz
David Reiss9a961e72010-10-06 17:10:23 +0000184
Jens Geyerae0b22c2014-09-04 23:04:21 +0200185EnumTest_SOURCES = \
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500186 EnumTest.cpp
Jens Geyerae0b22c2014-09-04 23:04:21 +0200187
188EnumTest_LDADD = \
189 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100190 $(BOOST_TEST_LDADD)
Jens Geyerae0b22c2014-09-04 23:04:21 +0200191
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500192AnnotationTest_SOURCES = \
193 AnnotationTest.cpp
194
195AnnotationTest_LDADD = \
196 libtestgencpp.la \
197 $(BOOST_TEST_LDADD)
198
David Reiss709b69f2010-10-06 17:10:30 +0000199TFileTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200200 TFileTransportTest.cpp
David Reiss709b69f2010-10-06 17:10:30 +0000201
Christian Lavoie4f42ef72010-11-04 18:51:42 +0000202TFileTransportTest_LDADD = \
203 libtestgencpp.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100204 $(BOOST_TEST_LDADD)
David Reiss709b69f2010-10-06 17:10:30 +0000205
David Reiss351e22b2010-08-31 16:51:19 +0000206#
207# TFDTransportTest
208#
209TFDTransportTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200210 TFDTransportTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000211
Claudius Heine5ef662b2015-06-24 10:03:50 +0200212TFDTransportTest_LDADD = \
213 $(top_builddir)/lib/cpp/libthrift.la \
214 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000215
216
217#
218# TPipedTransportTest
219#
220TPipedTransportTest_SOURCES = \
jfarrellf13e4312015-08-25 00:39:29 -0400221 TPipedTransportTest.cpp \
222 TPipeInterruptTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000223
224TPipedTransportTest_LDADD = \
jfarrelle2e5e222015-08-25 14:59:40 -0400225 libtestgencpp.la \
Claudius Heine5ef662b2015-06-24 10:03:50 +0200226 $(top_builddir)/lib/cpp/libthrift.la \
jfarrelle2e5e222015-08-25 14:59:40 -0400227 $(BOOST_TEST_LDADD) \
228 $(BOOST_SYSTEM_LDADD) \
229 $(BOOST_THREAD_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000230
231#
232# AllProtocolsTest
233#
234AllProtocolsTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200235 AllProtocolTests.cpp \
236 AllProtocolTests.tcc \
237 GenericHelpers.h
David Reiss351e22b2010-08-31 16:51:19 +0000238
Claudius Heine5ef662b2015-06-24 10:03:50 +0200239AllProtocolsTest_LDADD = \
240 libtestgencpp.la \
241 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000242
243#
244# DebugProtoTest
245#
246DebugProtoTest_SOURCES = \
ben-craigaf2d9c82015-07-16 08:11:21 -0500247 DebugProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000248
Claudius Heine5ef662b2015-06-24 10:03:50 +0200249DebugProtoTest_LDADD = \
250 libtestgencpp.la \
251 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000252
253
254#
255# JSONProtoTest
256#
257JSONProtoTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200258 JSONProtoTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000259
Claudius Heine5ef662b2015-06-24 10:03:50 +0200260JSONProtoTest_LDADD = \
261 libtestgencpp.la \
262 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000263
264#
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900265# TNonblockingServerTest
266#
267TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp
268
269TNonblockingServerTest_LDADD = libprocessortest.la \
270 $(top_builddir)/lib/cpp/libthrift.la \
271 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100272 $(BOOST_TEST_LDADD) \
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900273 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100274 $(LIBEVENT_LIBS)
Nobuaki Sukegawad0d7a652014-12-07 21:36:51 +0900275
276#
David Reiss351e22b2010-08-31 16:51:19 +0000277# OptionalRequiredTest
278#
279OptionalRequiredTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200280 OptionalRequiredTest.cpp
David Reiss351e22b2010-08-31 16:51:19 +0000281
Claudius Heine5ef662b2015-06-24 10:03:50 +0200282OptionalRequiredTest_LDADD = \
283 libtestgencpp.la \
284 $(BOOST_TEST_LDADD)
David Reiss351e22b2010-08-31 16:51:19 +0000285
David Reisse71115b2010-10-06 17:09:56 +0000286#
jfarrelle0e83162014-04-08 22:45:01 -0400287# OptionalRequiredTest
288#
289RecursiveTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200290 RecursiveTest.cpp
jfarrelle0e83162014-04-08 22:45:01 -0400291
Claudius Heine5ef662b2015-06-24 10:03:50 +0200292RecursiveTest_LDADD = \
293 libtestgencpp.la \
294 $(BOOST_TEST_LDADD)
295
296#
David Reisse71115b2010-10-06 17:09:56 +0000297# SpecializationTest
298#
299SpecializationTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200300 SpecializationTest.cpp
David Reisse71115b2010-10-06 17:09:56 +0000301
Claudius Heine5ef662b2015-06-24 10:03:50 +0200302SpecializationTest_LDADD = \
303 libtestgencpp.la \
304 $(BOOST_TEST_LDADD)
David Reisse71115b2010-10-06 17:09:56 +0000305
Roger Meier2b1a5282012-05-11 10:12:39 +0000306concurrency_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200307 concurrency/Tests.cpp \
308 concurrency/ThreadFactoryTests.h \
309 concurrency/ThreadManagerTests.h \
310 concurrency/TimerManagerTests.h
David Reiss351e22b2010-08-31 16:51:19 +0000311
Roger Meier2b1a5282012-05-11 10:12:39 +0000312concurrency_test_LDADD = \
313 $(top_builddir)/lib/cpp/libthrift.la
314
Roger Meier63fcb7e2014-06-15 21:48:59 +0200315link_test_SOURCES = \
316 link/LinkTest.cpp \
317 link/TemplatedService1.cpp \
318 link/TemplatedService2.cpp
319
Roger Meier2b1a5282012-05-11 10:12:39 +0000320processor_test_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200321 processor/ProcessorTest.cpp \
322 processor/EventLog.cpp \
323 processor/ServerThread.cpp \
324 processor/EventLog.h \
325 processor/Handlers.h \
326 processor/ServerThread.h
Roger Meier2b1a5282012-05-11 10:12:39 +0000327
328processor_test_LDADD = libprocessortest.la \
329 $(top_builddir)/lib/cpp/libthrift.la \
330 $(top_builddir)/lib/cpp/libthriftnb.la \
Konrad Grochowskiec8d8772014-12-20 12:19:00 +0100331 $(BOOST_TEST_LDADD) \
Roger Meier2b1a5282012-05-11 10:12:39 +0000332 $(BOOST_LDFLAGS) \
Jens Geyer4461a2f2014-12-23 18:22:54 +0100333 $(LIBEVENT_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500334
335OpenSSLManualInitTest_SOURCES = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200336 OpenSSLManualInitTest.cpp
Alan Dunnbee7b732014-07-26 13:48:43 -0500337
338OpenSSLManualInitTest_LDADD = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200339 $(top_builddir)/lib/cpp/libthrift.la \
Nobuaki Sukegawaa8370852016-01-19 00:48:46 +0900340 $(BOOST_TEST_LDADD) \
341 $(OPENSSL_LDFLAGS) \
342 $(OPENSSL_LIBS)
Alan Dunnbee7b732014-07-26 13:48:43 -0500343
David Reiss351e22b2010-08-31 16:51:19 +0000344#
345# Common thrift code generation rules
346#
347THRIFT = $(top_builddir)/compiler/cpp/thrift
348
James E. King, IIIb4c190b2017-02-13 16:39:59 -0500349gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift
350 $(THRIFT) --gen cpp $<
351
Ben Craig1684c422015-04-24 08:52:44 -0500352gen-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 -0700353 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000354
Jens Geyerae0b22c2014-09-04 23:04:21 +0200355gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200356 $(THRIFT) --gen cpp $<
Jens Geyerae0b22c2014-09-04 23:04:21 +0200357
Jens Geyer089bcd32014-09-11 22:36:41 +0200358gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200359 $(THRIFT) --gen cpp $<
Jens Geyer089bcd32014-09-11 22:36:41 +0200360
David Reiss351e22b2010-08-31 16:51:19 +0000361gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700362 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000363
jfarrelle0e83162014-04-08 22:45:01 -0400364gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift
Jens Geyer79f988c2014-10-03 20:42:54 +0200365 $(THRIFT) --gen cpp $<
jfarrelle0e83162014-04-08 22:45:01 -0400366
David Reiss351e22b2010-08-31 16:51:19 +0000367gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
Randy Abernethy8dbe5f62015-08-01 22:57:02 -0700368 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000369
370gen-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 -0700371 $(THRIFT) --gen cpp $<
David Reiss351e22b2010-08-31 16:51:19 +0000372
Roger Meier6f28c042014-11-01 20:31:44 +0100373gen-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 +0200374 $(THRIFT) --gen cpp:templates,cob_style $<
Roger Meier2b1a5282012-05-11 10:12:39 +0000375
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +0900376AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src -D__STDC_LIMIT_MACROS -I.
Roger Meier38315782011-11-06 11:29:41 +0000377AM_LDFLAGS = $(BOOST_LDFLAGS)
Roger Meiercb0754d2014-10-21 21:28:04 +0200378AM_CXXFLAGS = -Wall -Wextra -pedantic
David Reiss351e22b2010-08-31 16:51:19 +0000379
380clean-local:
Nobuaki Sukegawad3f7d0e2015-11-03 13:42:00 +0900381 $(RM) gen-cpp/*
David Reiss351e22b2010-08-31 16:51:19 +0000382
383EXTRA_DIST = \
Jens Geyer79f988c2014-10-03 20:42:54 +0200384 concurrency \
jfarrellf13e4312015-08-25 00:39:29 -0400385 processor \
386 qt \
387 CMakeLists.txt \
388 DebugProtoTest_extras.cpp \
jfarrellf13e4312015-08-25 00:39:29 -0400389 ThriftTest_extras.cpp