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