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 \ |
| 43 | TMemoryBufferTest.cpp |
| 44 | |
| 45 | UnitTests_LDADD = libtestgencpp.la |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 46 | |
| 47 | # |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 48 | # TFDTransportTest |
| 49 | # |
| 50 | TFDTransportTest_SOURCES = \ |
| 51 | TFDTransportTest.cpp |
| 52 | |
| 53 | TFDTransportTest_LDADD = \ |
| 54 | $(top_srcdir)/lib/cpp/libthrift.la |
| 55 | |
David Reiss | 1ffb61b | 2008-04-08 05:07:26 +0000 | [diff] [blame] | 56 | |
| 57 | # |
| 58 | # TPipedTransportTest |
| 59 | # |
| 60 | TPipedTransportTest_SOURCES = \ |
| 61 | TPipedTransportTest.cpp |
| 62 | |
| 63 | TPipedTransportTest_LDADD = \ |
| 64 | $(top_srcdir)/lib/cpp/libthrift.la |
| 65 | |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 66 | # |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 67 | # DebugProtoTest |
| 68 | # |
| 69 | DebugProtoTest_SOURCES = \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 70 | DebugProtoTest.cpp |
| 71 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 72 | DebugProtoTest_LDADD = libtestgencpp.la |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 73 | |
| 74 | |
| 75 | # |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 76 | # JSONProtoTest |
| 77 | # |
| 78 | JSONProtoTest_SOURCES = \ |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 79 | JSONProtoTest.cpp |
| 80 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 81 | JSONProtoTest_LDADD = libtestgencpp.la |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 82 | |
| 83 | # |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 84 | # OptionalRequiredTest |
| 85 | # |
| 86 | OptionalRequiredTest_SOURCES = \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 87 | OptionalRequiredTest.cpp |
| 88 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 89 | OptionalRequiredTest_LDADD = libtestgencpp.la |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 90 | |
| 91 | |
| 92 | # |
| 93 | # ReflectionTest |
| 94 | # |
| 95 | ReflectionTest_SOURCES = \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 96 | ReflectionTest.cpp |
| 97 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 98 | ReflectionTest_LDADD = libtestgencpp.la |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 99 | |
| 100 | # |
| 101 | # Common thrift code generation rules |
| 102 | # |
| 103 | THRIFT = $(top_srcdir)/compiler/cpp/thrift |
| 104 | |
| 105 | gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift |
David Reiss | 4ce2874 | 2008-02-27 07:45:05 +0000 | [diff] [blame] | 106 | $(THRIFT) --gen cpp:dense,reflection_limited $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 107 | |
| 108 | gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift |
David Reiss | 4ce2874 | 2008-02-27 07:45:05 +0000 | [diff] [blame] | 109 | $(THRIFT) --gen cpp:dense $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 110 | |
| 111 | gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift |
David Reiss | 4ce2874 | 2008-02-27 07:45:05 +0000 | [diff] [blame] | 112 | $(THRIFT) --gen cpp:dense,reflection_limited $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 113 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 114 | gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift |
| 115 | $(THRIFT) --gen cpp:dense,reflection_limited $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 116 | |
| 117 | INCLUDES = \ |
| 118 | -I$(top_srcdir)/lib/cpp/src |
| 119 | |
| 120 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) |
| 121 | |
| 122 | clean-local: |
David Reiss | 2ca456a | 2008-02-24 16:42:18 +0000 | [diff] [blame] | 123 | $(RM) -r gen-cpp |