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 | 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 \ | ||||
22 | gen-cpp/ThriftTest_types.cpp | ||||
23 | |||||
David Reiss | c6c6498 | 2008-06-11 01:16:45 +0000 | [diff] [blame] | 24 | libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 25 | |
26 | noinst_PROGRAMS = Benchmark | ||||
27 | |||||
28 | Benchmark_SOURCES = \ | ||||
29 | Benchmark.cpp | ||||
30 | |||||
31 | Benchmark_LDADD = libtestgencpp.la | ||||
32 | |||||
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 33 | check_PROGRAMS = \ |
David Reiss | e4db03d | 2008-04-08 05:06:59 +0000 | [diff] [blame] | 34 | TFDTransportTest \ |
David Reiss | 1ffb61b | 2008-04-08 05:07:26 +0000 | [diff] [blame] | 35 | TPipedTransportTest \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 36 | DebugProtoTest \ |
David Reiss | db0ea15 | 2008-02-18 01:49:37 +0000 | [diff] [blame] | 37 | JSONProtoTest \ |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 38 | OptionalRequiredTest \ |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 39 | ReflectionTest \ |
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 | # | ||||
98 | # ReflectionTest | ||||
99 | # | ||||
100 | ReflectionTest_SOURCES = \ | ||||
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 101 | ReflectionTest.cpp |
102 | |||||
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 103 | ReflectionTest_LDADD = libtestgencpp.la |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 104 | |
105 | # | ||||
106 | # Common thrift code generation rules | ||||
107 | # | ||||
David Reiss | c6c6498 | 2008-06-11 01:16:45 +0000 | [diff] [blame] | 108 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 109 | |
110 | gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift | ||||
David Reiss | 4ce2874 | 2008-02-27 07:45:05 +0000 | [diff] [blame] | 111 | $(THRIFT) --gen cpp:dense,reflection_limited $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 112 | |
113 | gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift | ||||
David Reiss | 4ce2874 | 2008-02-27 07:45:05 +0000 | [diff] [blame] | 114 | $(THRIFT) --gen cpp:dense $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 115 | |
116 | gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift | ||||
David Reiss | 4ce2874 | 2008-02-27 07:45:05 +0000 | [diff] [blame] | 117 | $(THRIFT) --gen cpp:dense,reflection_limited $< |
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 118 | |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 119 | gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift |
120 | $(THRIFT) --gen cpp:dense,reflection_limited $< | ||||
David Reiss | 8180c0c | 2008-02-04 21:14:14 +0000 | [diff] [blame] | 121 | |
122 | INCLUDES = \ | ||||
123 | -I$(top_srcdir)/lib/cpp/src | ||||
124 | |||||
125 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) | ||||
126 | |||||
127 | clean-local: | ||||
David Reiss | 2ca456a | 2008-02-24 16:42:18 +0000 | [diff] [blame] | 128 | $(RM) -r gen-cpp |