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