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