blob: 288ea378b0834fe958a886e453260bb7e9ae793a [file] [log] [blame]
David Reiss1a140912008-06-11 01:16:37 +00001SUBDIRS =
David Reiss9ff3b9d2008-02-15 01:10:23 +00002
David Reiss82c1bab2008-06-11 01:16:53 +00003if WITH_PYTHON
David Reiss1a140912008-06-11 01:16:37 +00004SUBDIRS += py
5endif
6
David Reiss8d07e1d2008-07-11 08:04:12 +00007if WITH_RUBY
Kevin Clark4bd89162008-07-08 00:47:49 +00008SUBDIRS += rb
9endif
10
David Reiss2a4bfd62008-04-07 23:45:00 +000011noinst_LTLIBRARIES = libtestgencpp.la
12libtestgencpp_la_SOURCES = \
13 gen-cpp/DebugProtoTest_types.cpp \
14 gen-cpp/OptionalRequiredTest_types.cpp \
15 gen-cpp/DebugProtoTest_types.cpp \
David Reiss2a4bfd62008-04-07 23:45:00 +000016 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 Duxbury50119f12009-01-29 21:31:25 +000021 gen-cpp/ThriftTest_types.cpp \
David Reiss7d3df422009-02-10 21:38:44 +000022 ThriftTest_extras.cpp \
23 DebugProtoTest_extras.cpp
David Reiss2a4bfd62008-04-07 23:45:00 +000024
David Reissc6c64982008-06-11 01:16:45 +000025libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
David Reiss2a4bfd62008-04-07 23:45:00 +000026
27noinst_PROGRAMS = Benchmark
28
29Benchmark_SOURCES = \
30 Benchmark.cpp
31
32Benchmark_LDADD = libtestgencpp.la
33
David Reiss8180c0c2008-02-04 21:14:14 +000034check_PROGRAMS = \
David Reisse4db03d2008-04-08 05:06:59 +000035 TFDTransportTest \
David Reiss1ffb61b2008-04-08 05:07:26 +000036 TPipedTransportTest \
David Reiss8180c0c2008-02-04 21:14:14 +000037 DebugProtoTest \
David Reissdb0ea152008-02-18 01:49:37 +000038 JSONProtoTest \
David Reiss8180c0c2008-02-04 21:14:14 +000039 OptionalRequiredTest \
David Reiss2a4bfd62008-04-07 23:45:00 +000040 UnitTests
David Reiss8180c0c2008-02-04 21:14:14 +000041
42TESTS = \
43 $(check_PROGRAMS)
44
David Reiss2a4bfd62008-04-07 23:45:00 +000045UnitTests_SOURCES = \
46 UnitTestMain.cpp \
David Reiss28f298d2008-05-01 06:17:36 +000047 TMemoryBufferTest.cpp \
48 TBufferBaseTest.cpp
David Reiss2a4bfd62008-04-07 23:45:00 +000049
50UnitTests_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000051
52#
David Reisse4db03d2008-04-08 05:06:59 +000053# TFDTransportTest
54#
55TFDTransportTest_SOURCES = \
56 TFDTransportTest.cpp
57
58TFDTransportTest_LDADD = \
David Reissc6c64982008-06-11 01:16:45 +000059 $(top_builddir)/lib/cpp/libthrift.la
David Reisse4db03d2008-04-08 05:06:59 +000060
David Reiss1ffb61b2008-04-08 05:07:26 +000061
62#
63# TPipedTransportTest
64#
65TPipedTransportTest_SOURCES = \
66 TPipedTransportTest.cpp
67
68TPipedTransportTest_LDADD = \
David Reissc6c64982008-06-11 01:16:45 +000069 $(top_builddir)/lib/cpp/libthrift.la
David Reiss1ffb61b2008-04-08 05:07:26 +000070
David Reisse4db03d2008-04-08 05:06:59 +000071#
David Reiss8180c0c2008-02-04 21:14:14 +000072# DebugProtoTest
73#
74DebugProtoTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000075 DebugProtoTest.cpp
76
David Reiss2a4bfd62008-04-07 23:45:00 +000077DebugProtoTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000078
79
80#
David Reissdb0ea152008-02-18 01:49:37 +000081# JSONProtoTest
82#
83JSONProtoTest_SOURCES = \
David Reissdb0ea152008-02-18 01:49:37 +000084 JSONProtoTest.cpp
85
David Reiss2a4bfd62008-04-07 23:45:00 +000086JSONProtoTest_LDADD = libtestgencpp.la
David Reissdb0ea152008-02-18 01:49:37 +000087
88#
David Reiss8180c0c2008-02-04 21:14:14 +000089# OptionalRequiredTest
90#
91OptionalRequiredTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000092 OptionalRequiredTest.cpp
93
David Reiss2a4bfd62008-04-07 23:45:00 +000094OptionalRequiredTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000095
96
97#
David Reiss8180c0c2008-02-04 21:14:14 +000098# Common thrift code generation rules
99#
David Reissc6c64982008-06-11 01:16:45 +0000100THRIFT = $(top_builddir)/compiler/cpp/thrift
David Reiss8180c0c2008-02-04 21:14:14 +0000101
David Reiss0b7d6fa2009-02-07 02:36:35 +0000102gen-cpp/DebugProtoTest_types.cpp: DebugProtoTest.thrift
103 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000104
105gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000106 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000107
108gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
David Reiss0b7d6fa2009-02-07 02:36:35 +0000109 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000110
David Reiss2a4bfd62008-04-07 23:45:00 +0000111gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift
David Reiss0b7d6fa2009-02-07 02:36:35 +0000112 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000113
114INCLUDES = \
115 -I$(top_srcdir)/lib/cpp/src
116
117AM_CPPFLAGS = $(BOOST_CPPFLAGS)
118
119clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +0000120 $(RM) -r gen-cpp
David Reiss48141bf2009-03-18 23:59:56 +0000121
122EXTRA_DIST = \
123 cpp \
124 threads \
125 csharp \
126 py \
127 rb \
128 perl \
129 php \
130 erl \
131 hs \
132 ocaml \
133 AnnotationTest.thrift \
134 BrokenConstants.thrift \
135 ConstantsDemo.thrift \
136 DebugProtoTest.thrift \
137 DenseLinkingTest.thrift \
138 DocTest.thrift \
139 JavaBeansTest.thrift \
140 ManyTypedefs.thrift \
141 OptionalRequiredTest.thrift \
142 SmallTest.thrift \
143 StressTest.thrift \
144 ThriftTest.thrift \
145 ZlibTest.cpp \
146 DenseProtoTest.cpp \
147 FastbinaryTest.py