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