blob: 1a2884e063b96c1d0b5d293e3577fac1957b3d97 [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 Reissf2422b62009-03-20 07:14:50 +000023ThriftTest_extras.o: gen-cpp/ThriftTest_types.h
24DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h
25
David Reissc6c64982008-06-11 01:16:45 +000026libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
David Reiss2a4bfd62008-04-07 23:45:00 +000027
28noinst_PROGRAMS = Benchmark
29
30Benchmark_SOURCES = \
31 Benchmark.cpp
32
33Benchmark_LDADD = libtestgencpp.la
34
David Reiss8180c0c2008-02-04 21:14:14 +000035check_PROGRAMS = \
David Reisse4db03d2008-04-08 05:06:59 +000036 TFDTransportTest \
David Reiss1ffb61b2008-04-08 05:07:26 +000037 TPipedTransportTest \
David Reiss8180c0c2008-02-04 21:14:14 +000038 DebugProtoTest \
David Reissdb0ea152008-02-18 01:49:37 +000039 JSONProtoTest \
David Reiss8180c0c2008-02-04 21:14:14 +000040 OptionalRequiredTest \
David Reiss2a4bfd62008-04-07 23:45:00 +000041 UnitTests
David Reiss8180c0c2008-02-04 21:14:14 +000042
43TESTS = \
44 $(check_PROGRAMS)
45
David Reiss2a4bfd62008-04-07 23:45:00 +000046UnitTests_SOURCES = \
47 UnitTestMain.cpp \
David Reiss28f298d2008-05-01 06:17:36 +000048 TMemoryBufferTest.cpp \
49 TBufferBaseTest.cpp
David Reiss2a4bfd62008-04-07 23:45:00 +000050
51UnitTests_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000052
53#
David Reisse4db03d2008-04-08 05:06:59 +000054# TFDTransportTest
55#
56TFDTransportTest_SOURCES = \
57 TFDTransportTest.cpp
58
59TFDTransportTest_LDADD = \
David Reissc6c64982008-06-11 01:16:45 +000060 $(top_builddir)/lib/cpp/libthrift.la
David Reisse4db03d2008-04-08 05:06:59 +000061
David Reiss1ffb61b2008-04-08 05:07:26 +000062
63#
64# TPipedTransportTest
65#
66TPipedTransportTest_SOURCES = \
67 TPipedTransportTest.cpp
68
69TPipedTransportTest_LDADD = \
David Reissc6c64982008-06-11 01:16:45 +000070 $(top_builddir)/lib/cpp/libthrift.la
David Reiss1ffb61b2008-04-08 05:07:26 +000071
David Reisse4db03d2008-04-08 05:06:59 +000072#
David Reiss8180c0c2008-02-04 21:14:14 +000073# DebugProtoTest
74#
75DebugProtoTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000076 DebugProtoTest.cpp
77
David Reiss2a4bfd62008-04-07 23:45:00 +000078DebugProtoTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000079
80
81#
David Reissdb0ea152008-02-18 01:49:37 +000082# JSONProtoTest
83#
84JSONProtoTest_SOURCES = \
David Reissdb0ea152008-02-18 01:49:37 +000085 JSONProtoTest.cpp
86
David Reiss2a4bfd62008-04-07 23:45:00 +000087JSONProtoTest_LDADD = libtestgencpp.la
David Reissdb0ea152008-02-18 01:49:37 +000088
89#
David Reiss8180c0c2008-02-04 21:14:14 +000090# OptionalRequiredTest
91#
92OptionalRequiredTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000093 OptionalRequiredTest.cpp
94
David Reiss2a4bfd62008-04-07 23:45:00 +000095OptionalRequiredTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000096
97
98#
David Reiss8180c0c2008-02-04 21:14:14 +000099# Common thrift code generation rules
100#
David Reissc6c64982008-06-11 01:16:45 +0000101THRIFT = $(top_builddir)/compiler/cpp/thrift
David Reiss8180c0c2008-02-04 21:14:14 +0000102
David Reissade070f2009-03-20 07:02:52 +0000103gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h: DebugProtoTest.thrift
David Reiss0b7d6fa2009-02-07 02:36:35 +0000104 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000105
David Reissade070f2009-03-20 07:02:52 +0000106gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: OptionalRequiredTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000107 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000108
109gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
David Reiss0b7d6fa2009-02-07 02:36:35 +0000110 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000111
David Reissade070f2009-03-20 07:02:52 +0000112gen-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 +0000113 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000114
115INCLUDES = \
116 -I$(top_srcdir)/lib/cpp/src
117
118AM_CPPFLAGS = $(BOOST_CPPFLAGS)
119
120clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +0000121 $(RM) -r gen-cpp
David Reiss48141bf2009-03-18 23:59:56 +0000122
123EXTRA_DIST = \
124 cpp \
125 threads \
126 csharp \
127 py \
128 rb \
129 perl \
130 php \
131 erl \
132 hs \
133 ocaml \
134 AnnotationTest.thrift \
135 BrokenConstants.thrift \
136 ConstantsDemo.thrift \
137 DebugProtoTest.thrift \
138 DenseLinkingTest.thrift \
139 DocTest.thrift \
140 JavaBeansTest.thrift \
141 ManyTypedefs.thrift \
142 OptionalRequiredTest.thrift \
143 SmallTest.thrift \
144 StressTest.thrift \
145 ThriftTest.thrift \
146 ZlibTest.cpp \
147 DenseProtoTest.cpp \
148 FastbinaryTest.py