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 | # |
| 19 | |
| 20 | noinst_LTLIBRARIES = libtestgencpp.la |
| 21 | nodist_libtestgencpp_la_SOURCES = \ |
| 22 | gen-cpp/DebugProtoTest_types.cpp \ |
| 23 | gen-cpp/OptionalRequiredTest_types.cpp \ |
| 24 | gen-cpp/DebugProtoTest_types.cpp \ |
| 25 | gen-cpp/ThriftTest_types.cpp \ |
| 26 | gen-cpp/DebugProtoTest_types.h \ |
| 27 | gen-cpp/OptionalRequiredTest_types.h \ |
| 28 | gen-cpp/ThriftTest_types.h \ |
| 29 | ThriftTest_extras.cpp \ |
| 30 | DebugProtoTest_extras.cpp |
| 31 | |
| 32 | ThriftTest_extras.o: gen-cpp/ThriftTest_types.h |
| 33 | DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h |
| 34 | |
| 35 | libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la |
| 36 | |
| 37 | noinst_PROGRAMS = Benchmark |
| 38 | |
| 39 | Benchmark_SOURCES = \ |
| 40 | Benchmark.cpp |
| 41 | |
| 42 | Benchmark_LDADD = libtestgencpp.la |
| 43 | |
| 44 | check_PROGRAMS = \ |
| 45 | TFDTransportTest \ |
| 46 | TPipedTransportTest \ |
| 47 | DebugProtoTest \ |
| 48 | JSONProtoTest \ |
| 49 | OptionalRequiredTest \ |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 50 | SpecializationTest \ |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 51 | AllProtocolsTest \ |
| 52 | UnitTests |
| 53 | |
| 54 | TESTS = \ |
| 55 | $(check_PROGRAMS) |
| 56 | |
| 57 | UnitTests_SOURCES = \ |
| 58 | UnitTestMain.cpp \ |
| 59 | TMemoryBufferTest.cpp \ |
| 60 | TBufferBaseTest.cpp |
| 61 | |
Roger Meier | 8a441a4 | 2010-10-04 21:13:36 +0000 | [diff] [blame] | 62 | UnitTests_LDADD = $(BOOST_LDFLAGS) libtestgencpp.la -lboost_unit_test_framework |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 63 | |
| 64 | # |
| 65 | # TFDTransportTest |
| 66 | # |
| 67 | TFDTransportTest_SOURCES = \ |
| 68 | TFDTransportTest.cpp |
| 69 | |
| 70 | TFDTransportTest_LDADD = \ |
| 71 | $(top_builddir)/lib/cpp/libthrift.la |
| 72 | |
| 73 | |
| 74 | # |
| 75 | # TPipedTransportTest |
| 76 | # |
| 77 | TPipedTransportTest_SOURCES = \ |
| 78 | TPipedTransportTest.cpp |
| 79 | |
| 80 | TPipedTransportTest_LDADD = \ |
| 81 | $(top_builddir)/lib/cpp/libthrift.la |
| 82 | |
| 83 | # |
| 84 | # AllProtocolsTest |
| 85 | # |
| 86 | AllProtocolsTest_SOURCES = \ |
| 87 | AllProtocolTests.cpp \ |
| 88 | AllProtocolTests.tcc \ |
| 89 | GenericHelpers.h |
| 90 | |
| 91 | AllProtocolsTest_LDADD = libtestgencpp.la |
| 92 | |
| 93 | # |
| 94 | # DebugProtoTest |
| 95 | # |
| 96 | DebugProtoTest_SOURCES = \ |
| 97 | DebugProtoTest.cpp |
| 98 | |
| 99 | DebugProtoTest_LDADD = libtestgencpp.la |
| 100 | |
| 101 | |
| 102 | # |
| 103 | # JSONProtoTest |
| 104 | # |
| 105 | JSONProtoTest_SOURCES = \ |
| 106 | JSONProtoTest.cpp |
| 107 | |
| 108 | JSONProtoTest_LDADD = libtestgencpp.la |
| 109 | |
| 110 | # |
| 111 | # OptionalRequiredTest |
| 112 | # |
| 113 | OptionalRequiredTest_SOURCES = \ |
| 114 | OptionalRequiredTest.cpp |
| 115 | |
| 116 | OptionalRequiredTest_LDADD = libtestgencpp.la |
| 117 | |
David Reiss | e71115b | 2010-10-06 17:09:56 +0000 | [diff] [blame] | 118 | # |
| 119 | # SpecializationTest |
| 120 | # |
| 121 | SpecializationTest_SOURCES = \ |
| 122 | SpecializationTest.cpp |
| 123 | |
| 124 | SpecializationTest_LDADD = libtestgencpp.la |
| 125 | |
David Reiss | 351e22b | 2010-08-31 16:51:19 +0000 | [diff] [blame] | 126 | |
| 127 | # |
| 128 | # Common thrift code generation rules |
| 129 | # |
| 130 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
| 131 | |
| 132 | gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h: $(top_srcdir)/test/DebugProtoTest.thrift |
| 133 | $(THRIFT) --gen cpp:dense $< |
| 134 | |
| 135 | gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift |
| 136 | $(THRIFT) --gen cpp:dense $< |
| 137 | |
| 138 | gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift |
| 139 | $(THRIFT) --gen cpp:dense $< |
| 140 | |
| 141 | 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 |
| 142 | $(THRIFT) --gen cpp:dense $< |
| 143 | |
| 144 | INCLUDES = \ |
| 145 | -I$(top_srcdir)/lib/cpp/src |
| 146 | |
| 147 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) |
| 148 | |
| 149 | clean-local: |
| 150 | $(RM) -r gen-cpp |
| 151 | |
| 152 | EXTRA_DIST = \ |
| 153 | ZlibTest.cpp \ |
| 154 | DenseProtoTest.cpp \ |
| 155 | ThriftTest_extras.cpp \ |
| 156 | DebugProtoTest_extras.cpp |