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