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