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