David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 1 | # |
| 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 | # |
Kevin Wojniak | a392566 | 2019-07-01 11:07:45 -0700 | [diff] [blame] | 19 | AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc |
Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 20 | |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 21 | BUILT_SOURCES = gen-cpp/AnnotationTest_types.h \ |
| 22 | gen-cpp/DebugProtoTest_types.h \ |
Nobuaki Sukegawa | a0c5ab7 | 2015-02-01 00:27:12 +0900 | [diff] [blame] | 23 | 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 Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 29 | gen-cpp/EmptyService.h \ |
Nobuaki Sukegawa | a0c5ab7 | 2015-02-01 00:27:12 +0900 | [diff] [blame] | 30 | gen-cpp/ParentService.h \ |
Chet Murthy | ad08a8b | 2017-12-19 15:55:56 -0800 | [diff] [blame] | 31 | gen-cpp/OneWayTest_types.h \ |
| 32 | gen-cpp/OneWayService.h \ |
Nobuaki Sukegawa | a0c5ab7 | 2015-02-01 00:27:12 +0900 | [diff] [blame] | 33 | gen-cpp/proc_types.h |
| 34 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 35 | noinst_LTLIBRARIES = libtestgencpp.la libprocessortest.la |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 36 | nodist_libtestgencpp_la_SOURCES = \ |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 37 | gen-cpp/AnnotationTest_types.cpp \ |
| 38 | gen-cpp/AnnotationTest_types.h \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 39 | gen-cpp/DebugProtoTest_types.cpp \ |
| 40 | gen-cpp/DebugProtoTest_types.h \ |
Ozan Can Altiok | e46419b | 2018-03-20 15:02:28 +0300 | [diff] [blame] | 41 | gen-cpp/DoubleConstantsTest_constants.cpp \ |
| 42 | gen-cpp/DoubleConstantsTest_constants.h \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 43 | gen-cpp/EnumTest_types.cpp \ |
| 44 | gen-cpp/EnumTest_types.h \ |
| 45 | gen-cpp/OptionalRequiredTest_types.cpp \ |
| 46 | gen-cpp/OptionalRequiredTest_types.h \ |
| 47 | gen-cpp/Recursive_types.cpp \ |
| 48 | gen-cpp/Recursive_types.h \ |
| 49 | gen-cpp/ThriftTest_types.cpp \ |
| 50 | gen-cpp/ThriftTest_types.h \ |
Roger Meier | a5bf1a1 | 2014-10-22 23:26:01 +0200 | [diff] [blame] | 51 | gen-cpp/ThriftTest_constants.cpp \ |
| 52 | gen-cpp/ThriftTest_constants.h \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 53 | gen-cpp/TypedefTest_types.cpp \ |
| 54 | gen-cpp/TypedefTest_types.h \ |
Chet Murthy | ad08a8b | 2017-12-19 15:55:56 -0800 | [diff] [blame] | 55 | gen-cpp/OneWayService.cpp \ |
Chet Murthy | ad08a8b | 2017-12-19 15:55:56 -0800 | [diff] [blame] | 56 | gen-cpp/OneWayTest_types.h \ |
| 57 | gen-cpp/OneWayService.h \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 58 | ThriftTest_extras.cpp \ |
| 59 | DebugProtoTest_extras.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 60 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 61 | nodist_libprocessortest_la_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 62 | gen-cpp/ChildService.cpp \ |
| 63 | gen-cpp/ChildService.h \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 64 | gen-cpp/EmptyService.cpp \ |
| 65 | gen-cpp/EmptyService.h \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 66 | gen-cpp/ParentService.cpp \ |
| 67 | gen-cpp/ParentService.h \ |
| 68 | gen-cpp/proc_types.cpp \ |
| 69 | gen-cpp/proc_types.h |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 70 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 71 | ThriftTest_extras.o: gen-cpp/ThriftTest_types.h |
| 72 | DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h |
| 73 | |
| 74 | libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la |
| 75 | |
Roger Meier | a5bf1a1 | 2014-10-22 23:26:01 +0200 | [diff] [blame] | 76 | noinst_PROGRAMS = Benchmark \ |
Roger Meier | a5bf1a1 | 2014-10-22 23:26:01 +0200 | [diff] [blame] | 77 | concurrency_test |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 78 | |
| 79 | Benchmark_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 80 | Benchmark.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 81 | |
| 82 | Benchmark_LDADD = libtestgencpp.la |
| 83 | |
| 84 | check_PROGRAMS = \ |
Roger Meier | 0114455 | 2015-04-04 16:14:08 +0200 | [diff] [blame] | 85 | UnitTests \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 86 | TFDTransportTest \ |
| 87 | TPipedTransportTest \ |
| 88 | DebugProtoTest \ |
| 89 | JSONProtoTest \ |
| 90 | OptionalRequiredTest \ |
| 91 | RecursiveTest \ |
| 92 | SpecializationTest \ |
| 93 | AllProtocolsTest \ |
| 94 | TransportTest \ |
ben-craig | af2d9c8 | 2015-07-16 08:11:21 -0500 | [diff] [blame] | 95 | TInterruptTest \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 96 | TServerIntegrationTest \ |
Jim King | b0b710a | 2015-07-28 13:31:27 -0400 | [diff] [blame] | 97 | SecurityTest \ |
Mario Emmenlauer | 0f14e2f | 2019-10-15 11:25:10 +0200 | [diff] [blame] | 98 | SecurityFromBufferTest \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 99 | ZlibTest \ |
| 100 | TFileTransportTest \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 101 | link_test \ |
| 102 | OpenSSLManualInitTest \ |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 103 | EnumTest \ |
Ozan Can Altiok | e46419b | 2018-03-20 15:02:28 +0300 | [diff] [blame] | 104 | RenderedDoubleConstantsTest \ |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 105 | AnnotationTest |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 106 | |
Jens Geyer | 4461a2f | 2014-12-23 18:22:54 +0100 | [diff] [blame] | 107 | if AMX_HAVE_LIBEVENT |
Nobuaki Sukegawa | 208738a | 2015-02-01 00:27:22 +0900 | [diff] [blame] | 108 | noinst_PROGRAMS += \ |
Jens Geyer | 4461a2f | 2014-12-23 18:22:54 +0100 | [diff] [blame] | 109 | processor_test |
| 110 | check_PROGRAMS += \ |
Divya Thaluru | 808d143 | 2017-08-06 16:36:36 -0700 | [diff] [blame] | 111 | TNonblockingServerTest \ |
| 112 | TNonblockingSSLServerTest |
Jens Geyer | 4461a2f | 2014-12-23 18:22:54 +0100 | [diff] [blame] | 113 | endif |
| 114 | |
Roger Meier | 9e0f074 | 2011-08-03 17:36:55 +0000 | [diff] [blame] | 115 | TESTS_ENVIRONMENT= \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 116 | BOOST_TEST_LOG_SINK=tests.xml \ |
| 117 | BOOST_TEST_LOG_LEVEL=test_suite \ |
Nobuaki Sukegawa | 3d600bf | 2016-01-23 22:45:20 +0900 | [diff] [blame] | 118 | BOOST_TEST_LOG_FORMAT=XML |
Roger Meier | 9e0f074 | 2011-08-03 17:36:55 +0000 | [diff] [blame] | 119 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 120 | TESTS = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 121 | $(check_PROGRAMS) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 122 | |
| 123 | UnitTests_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 124 | UnitTestMain.cpp \ |
Chet Murthy | ad08a8b | 2017-12-19 15:55:56 -0800 | [diff] [blame] | 125 | OneWayHTTPTest.cpp \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 126 | TMemoryBufferTest.cpp \ |
| 127 | TBufferBaseTest.cpp \ |
| 128 | Base64Test.cpp \ |
| 129 | ToStringTest.cpp \ |
Roger Meier | 0114455 | 2015-04-04 16:14:08 +0200 | [diff] [blame] | 130 | TypedefTest.cpp \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 131 | TServerSocketTest.cpp \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 132 | TServerTransportTest.cpp \ |
zeshuai007 | 86352b4 | 2020-06-15 17:00:33 +0800 | [diff] [blame] | 133 | TTransportCheckThrow.h \ |
| 134 | ThrifttReadCheckTests.cpp |
Roger Meier | 12d7053 | 2011-12-14 23:35:28 +0000 | [diff] [blame] | 135 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 136 | UnitTests_LDADD = \ |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 137 | libtestgencpp.la \ |
Chet Murthy | ad08a8b | 2017-12-19 15:55:56 -0800 | [diff] [blame] | 138 | $(BOOST_TEST_LDADD) \ |
| 139 | $(BOOST_SYSTEM_LDADD) \ |
| 140 | $(BOOST_THREAD_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 141 | |
ben-craig | af2d9c8 | 2015-07-16 08:11:21 -0500 | [diff] [blame] | 142 | TInterruptTest_SOURCES = \ |
Martin Haimberger | 0ad6ee9 | 2015-11-13 03:18:50 -0800 | [diff] [blame] | 143 | TSocketInterruptTest.cpp \ |
| 144 | TSSLSocketInterruptTest.cpp |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 145 | |
ben-craig | af2d9c8 | 2015-07-16 08:11:21 -0500 | [diff] [blame] | 146 | TInterruptTest_LDADD = \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 147 | libtestgencpp.la \ |
| 148 | $(BOOST_TEST_LDADD) \ |
Martin Haimberger | 0ad6ee9 | 2015-11-13 03:18:50 -0800 | [diff] [blame] | 149 | $(BOOST_FILESYSTEM_LDADD) \ |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 150 | $(BOOST_CHRONO_LDADD) \ |
| 151 | $(BOOST_SYSTEM_LDADD) \ |
| 152 | $(BOOST_THREAD_LDADD) |
| 153 | |
| 154 | TServerIntegrationTest_SOURCES = \ |
| 155 | TServerIntegrationTest.cpp |
| 156 | |
| 157 | TServerIntegrationTest_LDADD = \ |
| 158 | libtestgencpp.la \ |
| 159 | libprocessortest.la \ |
| 160 | $(BOOST_TEST_LDADD) \ |
| 161 | $(BOOST_SYSTEM_LDADD) \ |
| 162 | $(BOOST_THREAD_LDADD) |
| 163 | |
Jim King | b0b710a | 2015-07-28 13:31:27 -0400 | [diff] [blame] | 164 | SecurityTest_SOURCES = \ |
| 165 | SecurityTest.cpp |
| 166 | |
| 167 | SecurityTest_LDADD = \ |
| 168 | libtestgencpp.la \ |
| 169 | libprocessortest.la \ |
| 170 | $(BOOST_TEST_LDADD) \ |
| 171 | $(BOOST_FILESYSTEM_LDADD) \ |
| 172 | $(BOOST_SYSTEM_LDADD) \ |
| 173 | $(BOOST_THREAD_LDADD) |
| 174 | |
Mario Emmenlauer | 0f14e2f | 2019-10-15 11:25:10 +0200 | [diff] [blame] | 175 | SecurityFromBufferTest_SOURCES = \ |
| 176 | SecurityFromBufferTest.cpp |
| 177 | |
| 178 | SecurityFromBufferTest_LDADD = \ |
| 179 | libtestgencpp.la \ |
| 180 | libprocessortest.la \ |
| 181 | $(BOOST_TEST_LDADD) \ |
| 182 | $(BOOST_FILESYSTEM_LDADD) \ |
| 183 | $(BOOST_SYSTEM_LDADD) \ |
| 184 | $(BOOST_THREAD_LDADD) |
| 185 | |
David Reiss | 35dc769 | 2010-10-06 17:10:19 +0000 | [diff] [blame] | 186 | TransportTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 187 | TransportTest.cpp |
David Reiss | 35dc769 | 2010-10-06 17:10:19 +0000 | [diff] [blame] | 188 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 189 | TransportTest_LDADD = \ |
| 190 | libtestgencpp.la \ |
| 191 | $(top_builddir)/lib/cpp/libthriftz.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 192 | $(BOOST_TEST_LDADD) \ |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 193 | -lz |
David Reiss | 35dc769 | 2010-10-06 17:10:19 +0000 | [diff] [blame] | 194 | |
David Reiss | 9a961e7 | 2010-10-06 17:10:23 +0000 | [diff] [blame] | 195 | ZlibTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 196 | ZlibTest.cpp |
David Reiss | 9a961e7 | 2010-10-06 17:10:23 +0000 | [diff] [blame] | 197 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 198 | ZlibTest_LDADD = \ |
| 199 | libtestgencpp.la \ |
| 200 | $(top_builddir)/lib/cpp/libthriftz.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 201 | $(BOOST_TEST_LDADD) \ |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 202 | -lz |
David Reiss | 9a961e7 | 2010-10-06 17:10:23 +0000 | [diff] [blame] | 203 | |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 204 | EnumTest_SOURCES = \ |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 205 | EnumTest.cpp |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 206 | |
| 207 | EnumTest_LDADD = \ |
| 208 | libtestgencpp.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 209 | $(BOOST_TEST_LDADD) |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 210 | |
Ozan Can Altiok | e46419b | 2018-03-20 15:02:28 +0300 | [diff] [blame] | 211 | RenderedDoubleConstantsTest_SOURCES = RenderedDoubleConstantsTest.cpp |
| 212 | |
| 213 | RenderedDoubleConstantsTest_LDADD = libtestgencpp.la $(BOOST_TEST_LDADD) |
| 214 | |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 215 | AnnotationTest_SOURCES = \ |
| 216 | AnnotationTest.cpp |
| 217 | |
| 218 | AnnotationTest_LDADD = \ |
| 219 | libtestgencpp.la \ |
| 220 | $(BOOST_TEST_LDADD) |
| 221 | |
David Reiss | 709b69f | 2010-10-06 17:10:30 +0000 | [diff] [blame] | 222 | TFileTransportTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 223 | TFileTransportTest.cpp |
David Reiss | 709b69f | 2010-10-06 17:10:30 +0000 | [diff] [blame] | 224 | |
Christian Lavoie | 4f42ef7 | 2010-11-04 18:51:42 +0000 | [diff] [blame] | 225 | TFileTransportTest_LDADD = \ |
| 226 | libtestgencpp.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 227 | $(BOOST_TEST_LDADD) |
David Reiss | 709b69f | 2010-10-06 17:10:30 +0000 | [diff] [blame] | 228 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 229 | # |
| 230 | # TFDTransportTest |
| 231 | # |
| 232 | TFDTransportTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 233 | TFDTransportTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 234 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 235 | TFDTransportTest_LDADD = \ |
| 236 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 237 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 238 | |
| 239 | |
| 240 | # |
| 241 | # TPipedTransportTest |
| 242 | # |
| 243 | TPipedTransportTest_SOURCES = \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 244 | TPipedTransportTest.cpp \ |
| 245 | TPipeInterruptTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 246 | |
| 247 | TPipedTransportTest_LDADD = \ |
jfarrell | e2e5e22 | 2015-08-25 14:59:40 -0400 | [diff] [blame] | 248 | libtestgencpp.la \ |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 249 | $(top_builddir)/lib/cpp/libthrift.la \ |
jfarrell | e2e5e22 | 2015-08-25 14:59:40 -0400 | [diff] [blame] | 250 | $(BOOST_TEST_LDADD) \ |
| 251 | $(BOOST_SYSTEM_LDADD) \ |
| 252 | $(BOOST_THREAD_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 253 | |
| 254 | # |
| 255 | # AllProtocolsTest |
| 256 | # |
| 257 | AllProtocolsTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 258 | AllProtocolTests.cpp \ |
| 259 | AllProtocolTests.tcc \ |
| 260 | GenericHelpers.h |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 261 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 262 | AllProtocolsTest_LDADD = \ |
| 263 | libtestgencpp.la \ |
| 264 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 265 | |
| 266 | # |
| 267 | # DebugProtoTest |
| 268 | # |
| 269 | DebugProtoTest_SOURCES = \ |
ben-craig | af2d9c8 | 2015-07-16 08:11:21 -0500 | [diff] [blame] | 270 | DebugProtoTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 271 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 272 | DebugProtoTest_LDADD = \ |
| 273 | libtestgencpp.la \ |
| 274 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 275 | |
| 276 | |
| 277 | # |
| 278 | # JSONProtoTest |
| 279 | # |
| 280 | JSONProtoTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 281 | JSONProtoTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 282 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 283 | JSONProtoTest_LDADD = \ |
| 284 | libtestgencpp.la \ |
| 285 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 286 | |
| 287 | # |
Nobuaki Sukegawa | d0d7a65 | 2014-12-07 21:36:51 +0900 | [diff] [blame] | 288 | # TNonblockingServerTest |
| 289 | # |
| 290 | TNonblockingServerTest_SOURCES = TNonblockingServerTest.cpp |
| 291 | |
| 292 | TNonblockingServerTest_LDADD = libprocessortest.la \ |
| 293 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 294 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 295 | $(BOOST_TEST_LDADD) \ |
Nobuaki Sukegawa | d0d7a65 | 2014-12-07 21:36:51 +0900 | [diff] [blame] | 296 | $(BOOST_LDFLAGS) \ |
Jens Geyer | 4461a2f | 2014-12-23 18:22:54 +0100 | [diff] [blame] | 297 | $(LIBEVENT_LIBS) |
Divya Thaluru | 808d143 | 2017-08-06 16:36:36 -0700 | [diff] [blame] | 298 | # |
| 299 | # TNonblockingSSLServerTest |
| 300 | # |
| 301 | TNonblockingSSLServerTest_SOURCES = TNonblockingSSLServerTest.cpp |
| 302 | |
| 303 | TNonblockingSSLServerTest_LDADD = libprocessortest.la \ |
| 304 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 305 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
| 306 | $(BOOST_TEST_LDADD) \ |
| 307 | $(BOOST_LDFLAGS) \ |
| 308 | $(BOOST_FILESYSTEM_LDADD) \ |
| 309 | $(BOOST_CHRONO_LDADD) \ |
| 310 | $(BOOST_SYSTEM_LDADD) \ |
| 311 | $(BOOST_THREAD_LDADD) \ |
| 312 | $(LIBEVENT_LIBS) |
Nobuaki Sukegawa | d0d7a65 | 2014-12-07 21:36:51 +0900 | [diff] [blame] | 313 | |
| 314 | # |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 315 | # OptionalRequiredTest |
| 316 | # |
| 317 | OptionalRequiredTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 318 | OptionalRequiredTest.cpp |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 319 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 320 | OptionalRequiredTest_LDADD = \ |
| 321 | libtestgencpp.la \ |
| 322 | $(BOOST_TEST_LDADD) |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 323 | |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 324 | # |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 325 | # OptionalRequiredTest |
| 326 | # |
| 327 | RecursiveTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 328 | RecursiveTest.cpp |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 329 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 330 | RecursiveTest_LDADD = \ |
| 331 | libtestgencpp.la \ |
| 332 | $(BOOST_TEST_LDADD) |
| 333 | |
| 334 | # |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 335 | # SpecializationTest |
| 336 | # |
| 337 | SpecializationTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 338 | SpecializationTest.cpp |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 339 | |
Claudius Heine | 5ef662b | 2015-06-24 10:03:50 +0200 | [diff] [blame] | 340 | SpecializationTest_LDADD = \ |
| 341 | libtestgencpp.la \ |
| 342 | $(BOOST_TEST_LDADD) |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 343 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 344 | concurrency_test_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 345 | concurrency/Tests.cpp \ |
| 346 | concurrency/ThreadFactoryTests.h \ |
| 347 | concurrency/ThreadManagerTests.h \ |
| 348 | concurrency/TimerManagerTests.h |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 349 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 350 | concurrency_test_LDADD = \ |
| 351 | $(top_builddir)/lib/cpp/libthrift.la |
| 352 | |
Roger Meier | 63fcb7e | 2014-06-15 21:48:59 +0200 | [diff] [blame] | 353 | link_test_SOURCES = \ |
| 354 | link/LinkTest.cpp \ |
| 355 | link/TemplatedService1.cpp \ |
| 356 | link/TemplatedService2.cpp |
| 357 | |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 358 | processor_test_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 359 | processor/ProcessorTest.cpp \ |
| 360 | processor/EventLog.cpp \ |
| 361 | processor/ServerThread.cpp \ |
| 362 | processor/EventLog.h \ |
| 363 | processor/Handlers.h \ |
| 364 | processor/ServerThread.h |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 365 | |
| 366 | processor_test_LDADD = libprocessortest.la \ |
| 367 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 368 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
Konrad Grochowski | ec8d877 | 2014-12-20 12:19:00 +0100 | [diff] [blame] | 369 | $(BOOST_TEST_LDADD) \ |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 370 | $(BOOST_LDFLAGS) \ |
Jens Geyer | 4461a2f | 2014-12-23 18:22:54 +0100 | [diff] [blame] | 371 | $(LIBEVENT_LIBS) |
Alan Dunn | bee7b73 | 2014-07-26 13:48:43 -0500 | [diff] [blame] | 372 | |
| 373 | OpenSSLManualInitTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 374 | OpenSSLManualInitTest.cpp |
Alan Dunn | bee7b73 | 2014-07-26 13:48:43 -0500 | [diff] [blame] | 375 | |
| 376 | OpenSSLManualInitTest_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 377 | $(top_builddir)/lib/cpp/libthrift.la \ |
Nobuaki Sukegawa | a837085 | 2016-01-19 00:48:46 +0900 | [diff] [blame] | 378 | $(BOOST_TEST_LDADD) \ |
| 379 | $(OPENSSL_LDFLAGS) \ |
| 380 | $(OPENSSL_LIBS) |
Alan Dunn | bee7b73 | 2014-07-26 13:48:43 -0500 | [diff] [blame] | 381 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 382 | # |
| 383 | # Common thrift code generation rules |
| 384 | # |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 385 | |
James E. King, III | b4c190b | 2017-02-13 16:39:59 -0500 | [diff] [blame] | 386 | gen-cpp/AnnotationTest_constants.cpp gen-cpp/AnnotationTest_constants.h gen-cpp/AnnotationTest_types.cpp gen-cpp/AnnotationTest_types.h: $(top_srcdir)/test/AnnotationTest.thrift |
| 387 | $(THRIFT) --gen cpp $< |
| 388 | |
Ben Craig | 1684c42 | 2015-04-24 08:52:44 -0500 | [diff] [blame] | 389 | gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h gen-cpp/EmptyService.cpp gen-cpp/EmptyService.h: $(top_srcdir)/test/DebugProtoTest.thrift |
Randy Abernethy | 8dbe5f6 | 2015-08-01 22:57:02 -0700 | [diff] [blame] | 390 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 391 | |
Ozan Can Altiok | e46419b | 2018-03-20 15:02:28 +0300 | [diff] [blame] | 392 | gen-cpp/DoubleConstantsTest_constants.cpp gen-cpp/DoubleConstantsTest_constants.h: $(top_srcdir)/test/DoubleConstantsTest.thrift |
| 393 | $(THRIFT) --gen cpp $< |
| 394 | |
| 395 | |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 396 | gen-cpp/EnumTest_types.cpp gen-cpp/EnumTest_types.h: $(top_srcdir)/test/EnumTest.thrift |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 397 | $(THRIFT) --gen cpp $< |
Jens Geyer | ae0b22c | 2014-09-04 23:04:21 +0200 | [diff] [blame] | 398 | |
Jens Geyer | 089bcd3 | 2014-09-11 22:36:41 +0200 | [diff] [blame] | 399 | gen-cpp/TypedefTest_types.cpp gen-cpp/TypedefTest_types.h: $(top_srcdir)/test/TypedefTest.thrift |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 400 | $(THRIFT) --gen cpp $< |
Jens Geyer | 089bcd3 | 2014-09-11 22:36:41 +0200 | [diff] [blame] | 401 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 402 | gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift |
Randy Abernethy | 8dbe5f6 | 2015-08-01 22:57:02 -0700 | [diff] [blame] | 403 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 404 | |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 405 | gen-cpp/Recursive_types.cpp gen-cpp/Recursive_types.h: $(top_srcdir)/test/Recursive.thrift |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 406 | $(THRIFT) --gen cpp $< |
jfarrell | e0e8316 | 2014-04-08 22:45:01 -0400 | [diff] [blame] | 407 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 408 | gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift |
Randy Abernethy | 8dbe5f6 | 2015-08-01 22:57:02 -0700 | [diff] [blame] | 409 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 410 | |
| 411 | gen-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 Abernethy | 8dbe5f6 | 2015-08-01 22:57:02 -0700 | [diff] [blame] | 412 | $(THRIFT) --gen cpp $< |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 413 | |
zeshuai007 | 57c2507 | 2020-04-09 11:17:05 +0800 | [diff] [blame] | 414 | gen-cpp/OneWayService.cpp gen-cpp/OneWayTest_types.h gen-cpp/OneWayService.h: OneWayTest.thrift |
Chet Murthy | ad08a8b | 2017-12-19 15:55:56 -0800 | [diff] [blame] | 415 | $(THRIFT) --gen cpp $< |
| 416 | |
Roger Meier | 6f28c04 | 2014-11-01 20:31:44 +0100 | [diff] [blame] | 417 | gen-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 Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 418 | $(THRIFT) --gen cpp:templates,cob_style $< |
Roger Meier | 2b1a528 | 2012-05-11 10:12:39 +0000 | [diff] [blame] | 419 | |
Kevin Wojniak | a392566 | 2019-07-01 11:07:45 -0700 | [diff] [blame] | 420 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src -I$(top_srcdir)/lib/cpp/src/thrift -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I. |
Roger Meier | 3831578 | 2011-11-06 11:29:41 +0000 | [diff] [blame] | 421 | AM_LDFLAGS = $(BOOST_LDFLAGS) |
Roger Meier | cb0754d | 2014-10-21 21:28:04 +0200 | [diff] [blame] | 422 | AM_CXXFLAGS = -Wall -Wextra -pedantic |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 423 | |
| 424 | clean-local: |
Nobuaki Sukegawa | d3f7d0e | 2015-11-03 13:42:00 +0900 | [diff] [blame] | 425 | $(RM) gen-cpp/* |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 426 | |
| 427 | EXTRA_DIST = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 428 | concurrency \ |
jfarrell | f13e431 | 2015-08-25 00:39:29 -0400 | [diff] [blame] | 429 | processor \ |
| 430 | qt \ |
| 431 | CMakeLists.txt \ |
| 432 | DebugProtoTest_extras.cpp \ |
Chet Murthy | ad08a8b | 2017-12-19 15:55:56 -0800 | [diff] [blame] | 433 | ThriftTest_extras.cpp \ |
| 434 | OneWayTest.thrift |