David Reiss | 9ff3b9d | 2008-02-15 01:10:23 +0000 | [diff] [blame] | 1 | SUBDIRS = py |
| 2 | |
David Reiss | ff50f28 | 2008-02-23 22:07:46 +0000 | [diff] [blame] | 3 | if ENABLE_JAVA |
| 4 | SUBDIRS += java |
| 5 | endif |
| 6 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 7 | noinst_LTLIBRARIES = libtestgencpp.la |
| 8 | libtestgencpp_la_SOURCES = \ |
| 9 | gen-cpp/DebugProtoTest_types.cpp \ |
| 10 | gen-cpp/OptionalRequiredTest_types.cpp \ |
| 11 | gen-cpp/DebugProtoTest_types.cpp \ |
| 12 | gen-cpp/PartiallyReflectable.cpp \ |
| 13 | gen-cpp/Service.cpp \ |
| 14 | gen-cpp/StressTest_types.cpp \ |
| 15 | gen-cpp/SecondService.cpp \ |
| 16 | gen-cpp/ThriftTest_constants.cpp \ |
| 17 | gen-cpp/ThriftTest.cpp \ |
| 18 | gen-cpp/ThriftTest_types.cpp |
| 19 | |
| 20 | libtestgencpp_la_LIBADD = $(top_srcdir)/lib/cpp/libthrift.la |
| 21 | |
| 22 | noinst_PROGRAMS = Benchmark |
| 23 | |
| 24 | Benchmark_SOURCES = \ |
| 25 | Benchmark.cpp |
| 26 | |
| 27 | Benchmark_LDADD = libtestgencpp.la |
| 28 | |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 29 | check_PROGRAMS = \ |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 30 | TFDTransportTest \ |
David Reiss | 1ffb61b | 2008-04-08 05:07:26 +0000 | [diff] [blame] | 31 | TPipedTransportTest \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 32 | DebugProtoTest \ |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 33 | JSONProtoTest \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 34 | OptionalRequiredTest \ |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 35 | ReflectionTest \ |
| 36 | UnitTests |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 37 | |
| 38 | TESTS = \ |
| 39 | $(check_PROGRAMS) |
| 40 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 41 | UnitTests_SOURCES = \ |
| 42 | UnitTestMain.cpp \ |
David Reiss | 28f298d | 2008-05-01 06:17:36 +0000 | [diff] [blame] | 43 | TMemoryBufferTest.cpp \ |
| 44 | TBufferBaseTest.cpp |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 45 | |
| 46 | UnitTests_LDADD = libtestgencpp.la |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 47 | |
| 48 | # |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 49 | # TFDTransportTest |
| 50 | # |
| 51 | TFDTransportTest_SOURCES = \ |
| 52 | TFDTransportTest.cpp |
| 53 | |
| 54 | TFDTransportTest_LDADD = \ |
| 55 | $(top_srcdir)/lib/cpp/libthrift.la |
| 56 | |
David Reiss | 1ffb61b | 2008-04-08 05:07:26 +0000 | [diff] [blame] | 57 | |
| 58 | # |
| 59 | # TPipedTransportTest |
| 60 | # |
| 61 | TPipedTransportTest_SOURCES = \ |
| 62 | TPipedTransportTest.cpp |
| 63 | |
| 64 | TPipedTransportTest_LDADD = \ |
| 65 | $(top_srcdir)/lib/cpp/libthrift.la |
| 66 | |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 67 | # |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 68 | # DebugProtoTest |
| 69 | # |
| 70 | DebugProtoTest_SOURCES = \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 71 | DebugProtoTest.cpp |
| 72 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 73 | DebugProtoTest_LDADD = libtestgencpp.la |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 74 | |
| 75 | |
| 76 | # |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 77 | # JSONProtoTest |
| 78 | # |
| 79 | JSONProtoTest_SOURCES = \ |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 80 | JSONProtoTest.cpp |
| 81 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 82 | JSONProtoTest_LDADD = libtestgencpp.la |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 83 | |
| 84 | # |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 85 | # OptionalRequiredTest |
| 86 | # |
| 87 | OptionalRequiredTest_SOURCES = \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 88 | OptionalRequiredTest.cpp |
| 89 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 90 | OptionalRequiredTest_LDADD = libtestgencpp.la |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 91 | |
| 92 | |
| 93 | # |
| 94 | # ReflectionTest |
| 95 | # |
| 96 | ReflectionTest_SOURCES = \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 97 | ReflectionTest.cpp |
| 98 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 99 | ReflectionTest_LDADD = libtestgencpp.la |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 100 | |
| 101 | # |
| 102 | # Common thrift code generation rules |
| 103 | # |
| 104 | THRIFT = $(top_srcdir)/compiler/cpp/thrift |
| 105 | |
| 106 | gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift |
David Reiss | 4ce2874 | 2008-02-27 07:45:05 +0000 | [diff] [blame] | 107 | $(THRIFT) --gen cpp:dense,reflection_limited $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 108 | |
| 109 | gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift |
David Reiss | 4ce2874 | 2008-02-27 07:45:05 +0000 | [diff] [blame] | 110 | $(THRIFT) --gen cpp:dense $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 111 | |
| 112 | gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift |
David Reiss | 4ce2874 | 2008-02-27 07:45:05 +0000 | [diff] [blame] | 113 | $(THRIFT) --gen cpp:dense,reflection_limited $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 114 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 115 | gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift |
| 116 | $(THRIFT) --gen cpp:dense,reflection_limited $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 117 | |
| 118 | INCLUDES = \ |
| 119 | -I$(top_srcdir)/lib/cpp/src |
| 120 | |
| 121 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) |
| 122 | |
| 123 | clean-local: |
David Reiss | 2ca456a | 2008-02-24 16:42:18 +0000 | [diff] [blame] | 124 | $(RM) -r gen-cpp |