blob: b1092d55c42166d4714cc42bfbb423b487b96464 [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 \
Bryan Duxbury50119f12009-01-29 21:31:25 +000016 gen-cpp/ThriftTest_types.cpp \
David Reissade070f2009-03-20 07:02:52 +000017 gen-cpp/DebugProtoTest_types.h \
18 gen-cpp/OptionalRequiredTest_types.h \
19 gen-cpp/ThriftTest_types.h \
David Reiss7d3df422009-02-10 21:38:44 +000020 ThriftTest_extras.cpp \
21 DebugProtoTest_extras.cpp
David Reiss2a4bfd62008-04-07 23:45:00 +000022
David Reissc6c64982008-06-11 01:16:45 +000023libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
David Reiss2a4bfd62008-04-07 23:45:00 +000024
25noinst_PROGRAMS = Benchmark
26
27Benchmark_SOURCES = \
28 Benchmark.cpp
29
30Benchmark_LDADD = libtestgencpp.la
31
David Reiss8180c0c2008-02-04 21:14:14 +000032check_PROGRAMS = \
David Reisse4db03d2008-04-08 05:06:59 +000033 TFDTransportTest \
David Reiss1ffb61b2008-04-08 05:07:26 +000034 TPipedTransportTest \
David Reiss8180c0c2008-02-04 21:14:14 +000035 DebugProtoTest \
David Reissdb0ea152008-02-18 01:49:37 +000036 JSONProtoTest \
David Reiss8180c0c2008-02-04 21:14:14 +000037 OptionalRequiredTest \
David Reiss2a4bfd62008-04-07 23:45:00 +000038 UnitTests
David Reiss8180c0c2008-02-04 21:14:14 +000039
40TESTS = \
41 $(check_PROGRAMS)
42
David Reiss2a4bfd62008-04-07 23:45:00 +000043UnitTests_SOURCES = \
44 UnitTestMain.cpp \
David Reiss28f298d2008-05-01 06:17:36 +000045 TMemoryBufferTest.cpp \
46 TBufferBaseTest.cpp
David Reiss2a4bfd62008-04-07 23:45:00 +000047
48UnitTests_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000049
50#
David Reisse4db03d2008-04-08 05:06:59 +000051# TFDTransportTest
52#
53TFDTransportTest_SOURCES = \
54 TFDTransportTest.cpp
55
56TFDTransportTest_LDADD = \
David Reissc6c64982008-06-11 01:16:45 +000057 $(top_builddir)/lib/cpp/libthrift.la
David Reisse4db03d2008-04-08 05:06:59 +000058
David Reiss1ffb61b2008-04-08 05:07:26 +000059
60#
61# TPipedTransportTest
62#
63TPipedTransportTest_SOURCES = \
64 TPipedTransportTest.cpp
65
66TPipedTransportTest_LDADD = \
David Reissc6c64982008-06-11 01:16:45 +000067 $(top_builddir)/lib/cpp/libthrift.la
David Reiss1ffb61b2008-04-08 05:07:26 +000068
David Reisse4db03d2008-04-08 05:06:59 +000069#
David Reiss8180c0c2008-02-04 21:14:14 +000070# DebugProtoTest
71#
72DebugProtoTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000073 DebugProtoTest.cpp
74
David Reiss2a4bfd62008-04-07 23:45:00 +000075DebugProtoTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000076
77
78#
David Reissdb0ea152008-02-18 01:49:37 +000079# JSONProtoTest
80#
81JSONProtoTest_SOURCES = \
David Reissdb0ea152008-02-18 01:49:37 +000082 JSONProtoTest.cpp
83
David Reiss2a4bfd62008-04-07 23:45:00 +000084JSONProtoTest_LDADD = libtestgencpp.la
David Reissdb0ea152008-02-18 01:49:37 +000085
86#
David Reiss8180c0c2008-02-04 21:14:14 +000087# OptionalRequiredTest
88#
89OptionalRequiredTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000090 OptionalRequiredTest.cpp
91
David Reiss2a4bfd62008-04-07 23:45:00 +000092OptionalRequiredTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000093
94
95#
David Reiss8180c0c2008-02-04 21:14:14 +000096# Common thrift code generation rules
97#
David Reissc6c64982008-06-11 01:16:45 +000098THRIFT = $(top_builddir)/compiler/cpp/thrift
David Reiss8180c0c2008-02-04 21:14:14 +000099
David Reissade070f2009-03-20 07:02:52 +0000100gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h: DebugProtoTest.thrift
David Reiss0b7d6fa2009-02-07 02:36:35 +0000101 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000102
David Reissade070f2009-03-20 07:02:52 +0000103gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: OptionalRequiredTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000104 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000105
106gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
David Reiss0b7d6fa2009-02-07 02:36:35 +0000107 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000108
David Reissade070f2009-03-20 07:02:52 +0000109gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_types.h: ThriftTest.thrift
David Reiss0b7d6fa2009-02-07 02:36:35 +0000110 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000111
112INCLUDES = \
113 -I$(top_srcdir)/lib/cpp/src
114
115AM_CPPFLAGS = $(BOOST_CPPFLAGS)
116
117clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +0000118 $(RM) -r gen-cpp
David Reiss48141bf2009-03-18 23:59:56 +0000119
120EXTRA_DIST = \
121 cpp \
122 threads \
123 csharp \
124 py \
125 rb \
126 perl \
127 php \
128 erl \
129 hs \
130 ocaml \
131 AnnotationTest.thrift \
132 BrokenConstants.thrift \
133 ConstantsDemo.thrift \
134 DebugProtoTest.thrift \
135 DenseLinkingTest.thrift \
136 DocTest.thrift \
137 JavaBeansTest.thrift \
138 ManyTypedefs.thrift \
139 OptionalRequiredTest.thrift \
140 SmallTest.thrift \
141 StressTest.thrift \
142 ThriftTest.thrift \
143 ZlibTest.cpp \
144 DenseProtoTest.cpp \
145 FastbinaryTest.py