David Reiss | ea2cba8 | 2009-03-30 21:35:00 +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 | |
David Reiss | 1a14091 | 2008-06-11 01:16:37 +0000 | [diff] [blame] | 20 | SUBDIRS = |
David Reiss | 9ff3b9d | 2008-02-15 01:10:23 +0000 | [diff] [blame] | 21 | |
David Reiss | 82c1bab | 2008-06-11 01:16:53 +0000 | [diff] [blame] | 22 | if WITH_PYTHON |
David Reiss | 1a14091 | 2008-06-11 01:16:37 +0000 | [diff] [blame] | 23 | SUBDIRS += py |
| 24 | endif |
| 25 | |
David Reiss | 8d07e1d | 2008-07-11 08:04:12 +0000 | [diff] [blame] | 26 | if WITH_RUBY |
Kevin Clark | 4bd8916 | 2008-07-08 00:47:49 +0000 | [diff] [blame] | 27 | SUBDIRS += rb |
| 28 | endif |
| 29 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 30 | noinst_LTLIBRARIES = libtestgencpp.la |
Bryan Duxbury | a1e268c | 2010-05-03 21:33:00 +0000 | [diff] [blame] | 31 | nodist_libtestgencpp_la_SOURCES = \ |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 32 | gen-cpp/DebugProtoTest_types.cpp \ |
| 33 | gen-cpp/OptionalRequiredTest_types.cpp \ |
| 34 | gen-cpp/DebugProtoTest_types.cpp \ |
Bryan Duxbury | 50119f1 | 2009-01-29 21:31:25 +0000 | [diff] [blame] | 35 | gen-cpp/ThriftTest_types.cpp \ |
David Reiss | ade070f | 2009-03-20 07:02:52 +0000 | [diff] [blame] | 36 | gen-cpp/DebugProtoTest_types.h \ |
| 37 | gen-cpp/OptionalRequiredTest_types.h \ |
| 38 | gen-cpp/ThriftTest_types.h \ |
David Reiss | 7d3df42 | 2009-02-10 21:38:44 +0000 | [diff] [blame] | 39 | ThriftTest_extras.cpp \ |
| 40 | DebugProtoTest_extras.cpp |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 41 | |
David Reiss | f2422b6 | 2009-03-20 07:14:50 +0000 | [diff] [blame] | 42 | ThriftTest_extras.o: gen-cpp/ThriftTest_types.h |
| 43 | DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h |
| 44 | |
David Reiss | c6c6498 | 2008-06-11 01:16:45 +0000 | [diff] [blame] | 45 | libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 46 | |
| 47 | noinst_PROGRAMS = Benchmark |
| 48 | |
| 49 | Benchmark_SOURCES = \ |
| 50 | Benchmark.cpp |
| 51 | |
| 52 | Benchmark_LDADD = libtestgencpp.la |
| 53 | |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 54 | check_PROGRAMS = \ |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 55 | TFDTransportTest \ |
David Reiss | 1ffb61b | 2008-04-08 05:07:26 +0000 | [diff] [blame] | 56 | TPipedTransportTest \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 57 | DebugProtoTest \ |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 58 | JSONProtoTest \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 59 | OptionalRequiredTest \ |
David Reiss | e4d4ea0 | 2009-04-02 21:37:17 +0000 | [diff] [blame] | 60 | AllProtocolsTest \ |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 61 | UnitTests |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 62 | |
| 63 | TESTS = \ |
| 64 | $(check_PROGRAMS) |
| 65 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 66 | UnitTests_SOURCES = \ |
| 67 | UnitTestMain.cpp \ |
David Reiss | 28f298d | 2008-05-01 06:17:36 +0000 | [diff] [blame] | 68 | TMemoryBufferTest.cpp \ |
| 69 | TBufferBaseTest.cpp |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 70 | |
Bryan Duxbury | f7d9f8e | 2010-05-02 23:04:03 +0000 | [diff] [blame] | 71 | UnitTests_LDADD = libtestgencpp.la -lboost_unit_test_framework |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 72 | |
| 73 | # |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 74 | # TFDTransportTest |
| 75 | # |
| 76 | TFDTransportTest_SOURCES = \ |
| 77 | TFDTransportTest.cpp |
| 78 | |
| 79 | TFDTransportTest_LDADD = \ |
David Reiss | c6c6498 | 2008-06-11 01:16:45 +0000 | [diff] [blame] | 80 | $(top_builddir)/lib/cpp/libthrift.la |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 81 | |
David Reiss | 1ffb61b | 2008-04-08 05:07:26 +0000 | [diff] [blame] | 82 | |
| 83 | # |
| 84 | # TPipedTransportTest |
| 85 | # |
| 86 | TPipedTransportTest_SOURCES = \ |
| 87 | TPipedTransportTest.cpp |
| 88 | |
| 89 | TPipedTransportTest_LDADD = \ |
David Reiss | c6c6498 | 2008-06-11 01:16:45 +0000 | [diff] [blame] | 90 | $(top_builddir)/lib/cpp/libthrift.la |
David Reiss | 1ffb61b | 2008-04-08 05:07:26 +0000 | [diff] [blame] | 91 | |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 92 | # |
David Reiss | e4d4ea0 | 2009-04-02 21:37:17 +0000 | [diff] [blame] | 93 | # AllProtocolsTest |
| 94 | # |
| 95 | AllProtocolsTest_SOURCES = \ |
David Reiss | 4b86e62 | 2009-05-22 19:52:06 +0000 | [diff] [blame] | 96 | AllProtocolTests.cpp \ |
| 97 | AllProtocolTests.tcc \ |
| 98 | GenericHelpers.h |
David Reiss | e4d4ea0 | 2009-04-02 21:37:17 +0000 | [diff] [blame] | 99 | |
| 100 | AllProtocolsTest_LDADD = libtestgencpp.la |
| 101 | |
| 102 | # |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 103 | # DebugProtoTest |
| 104 | # |
| 105 | DebugProtoTest_SOURCES = \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 106 | DebugProtoTest.cpp |
| 107 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 108 | DebugProtoTest_LDADD = libtestgencpp.la |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 109 | |
| 110 | |
| 111 | # |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 112 | # JSONProtoTest |
| 113 | # |
| 114 | JSONProtoTest_SOURCES = \ |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 115 | JSONProtoTest.cpp |
| 116 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 117 | JSONProtoTest_LDADD = libtestgencpp.la |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 118 | |
| 119 | # |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 120 | # OptionalRequiredTest |
| 121 | # |
| 122 | OptionalRequiredTest_SOURCES = \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 123 | OptionalRequiredTest.cpp |
| 124 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 125 | OptionalRequiredTest_LDADD = libtestgencpp.la |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 126 | |
| 127 | |
| 128 | # |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 129 | # Common thrift code generation rules |
| 130 | # |
David Reiss | c6c6498 | 2008-06-11 01:16:45 +0000 | [diff] [blame] | 131 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 132 | |
David Reiss | ade070f | 2009-03-20 07:02:52 +0000 | [diff] [blame] | 133 | gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h: DebugProtoTest.thrift |
David Reiss | 0b7d6fa | 2009-02-07 02:36:35 +0000 | [diff] [blame] | 134 | $(THRIFT) --gen cpp:dense $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 135 | |
David Reiss | ade070f | 2009-03-20 07:02:52 +0000 | [diff] [blame] | 136 | gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: OptionalRequiredTest.thrift |
David Reiss | 4ce2874 | 2008-02-27 07:45:05 +0000 | [diff] [blame] | 137 | $(THRIFT) --gen cpp:dense $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 138 | |
| 139 | gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift |
David Reiss | 0b7d6fa | 2009-02-07 02:36:35 +0000 | [diff] [blame] | 140 | $(THRIFT) --gen cpp:dense $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 141 | |
David Reiss | ade070f | 2009-03-20 07:02:52 +0000 | [diff] [blame] | 142 | gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_types.h: ThriftTest.thrift |
David Reiss | 0b7d6fa | 2009-02-07 02:36:35 +0000 | [diff] [blame] | 143 | $(THRIFT) --gen cpp:dense $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 144 | |
| 145 | INCLUDES = \ |
| 146 | -I$(top_srcdir)/lib/cpp/src |
| 147 | |
| 148 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) |
| 149 | |
| 150 | clean-local: |
David Reiss | 2ca456a | 2008-02-24 16:42:18 +0000 | [diff] [blame] | 151 | $(RM) -r gen-cpp |
David Reiss | 48141bf | 2009-03-18 23:59:56 +0000 | [diff] [blame] | 152 | |
| 153 | EXTRA_DIST = \ |
| 154 | cpp \ |
| 155 | threads \ |
| 156 | csharp \ |
| 157 | py \ |
| 158 | rb \ |
| 159 | perl \ |
| 160 | php \ |
| 161 | erl \ |
| 162 | hs \ |
| 163 | ocaml \ |
| 164 | AnnotationTest.thrift \ |
| 165 | BrokenConstants.thrift \ |
| 166 | ConstantsDemo.thrift \ |
| 167 | DebugProtoTest.thrift \ |
| 168 | DenseLinkingTest.thrift \ |
| 169 | DocTest.thrift \ |
| 170 | JavaBeansTest.thrift \ |
| 171 | ManyTypedefs.thrift \ |
| 172 | OptionalRequiredTest.thrift \ |
| 173 | SmallTest.thrift \ |
| 174 | StressTest.thrift \ |
| 175 | ThriftTest.thrift \ |
| 176 | ZlibTest.cpp \ |
| 177 | DenseProtoTest.cpp \ |
Bryan Duxbury | a1e268c | 2010-05-03 21:33:00 +0000 | [diff] [blame] | 178 | FastbinaryTest.py \ |
| 179 | ThriftTest_extras.cpp \ |
| 180 | DebugProtoTest_extras.cpp |
| 181 | |