blob: 0c201c1913e678fabafc191a75a8590074a1fa9d [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 \
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 \
Bryan Duxbury50119f12009-01-29 21:31:25 +000022 gen-cpp/ThriftTest_types.cpp \
23 ThriftTest_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 ReflectionTest \
41 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#
99# ReflectionTest
100#
101ReflectionTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +0000102 ReflectionTest.cpp
103
David Reiss2a4bfd62008-04-07 23:45:00 +0000104ReflectionTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +0000105
106#
107# Common thrift code generation rules
108#
David Reissc6c64982008-06-11 01:16:45 +0000109THRIFT = $(top_builddir)/compiler/cpp/thrift
David Reiss8180c0c2008-02-04 21:14:14 +0000110
111gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000112 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000113
114gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000115 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000116
117gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000118 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000119
David Reiss2a4bfd62008-04-07 23:45:00 +0000120gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift
121 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000122
123INCLUDES = \
124 -I$(top_srcdir)/lib/cpp/src
125
126AM_CPPFLAGS = $(BOOST_CPPFLAGS)
127
128clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +0000129 $(RM) -r gen-cpp