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