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