blob: 5f2ce8dab30067d5e75c8bf9f8a58e56bb54932c [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 \
22 ThriftTest_extras.cpp
David Reiss2a4bfd62008-04-07 23:45:00 +000023
David Reissc6c64982008-06-11 01:16:45 +000024libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
David Reiss2a4bfd62008-04-07 23:45:00 +000025
26noinst_PROGRAMS = Benchmark
27
28Benchmark_SOURCES = \
29 Benchmark.cpp
30
31Benchmark_LDADD = libtestgencpp.la
32
David Reiss8180c0c2008-02-04 21:14:14 +000033check_PROGRAMS = \
David Reisse4db03d2008-04-08 05:06:59 +000034 TFDTransportTest \
David Reiss1ffb61b2008-04-08 05:07:26 +000035 TPipedTransportTest \
David Reiss8180c0c2008-02-04 21:14:14 +000036 DebugProtoTest \
David Reissdb0ea152008-02-18 01:49:37 +000037 JSONProtoTest \
David Reiss8180c0c2008-02-04 21:14:14 +000038 OptionalRequiredTest \
David Reiss2a4bfd62008-04-07 23:45:00 +000039 UnitTests
David Reiss8180c0c2008-02-04 21:14:14 +000040
41TESTS = \
42 $(check_PROGRAMS)
43
David Reiss2a4bfd62008-04-07 23:45:00 +000044UnitTests_SOURCES = \
45 UnitTestMain.cpp \
David Reiss28f298d2008-05-01 06:17:36 +000046 TMemoryBufferTest.cpp \
47 TBufferBaseTest.cpp
David Reiss2a4bfd62008-04-07 23:45:00 +000048
49UnitTests_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000050
51#
David Reisse4db03d2008-04-08 05:06:59 +000052# TFDTransportTest
53#
54TFDTransportTest_SOURCES = \
55 TFDTransportTest.cpp
56
57TFDTransportTest_LDADD = \
David Reissc6c64982008-06-11 01:16:45 +000058 $(top_builddir)/lib/cpp/libthrift.la
David Reisse4db03d2008-04-08 05:06:59 +000059
David Reiss1ffb61b2008-04-08 05:07:26 +000060
61#
62# TPipedTransportTest
63#
64TPipedTransportTest_SOURCES = \
65 TPipedTransportTest.cpp
66
67TPipedTransportTest_LDADD = \
David Reissc6c64982008-06-11 01:16:45 +000068 $(top_builddir)/lib/cpp/libthrift.la
David Reiss1ffb61b2008-04-08 05:07:26 +000069
David Reisse4db03d2008-04-08 05:06:59 +000070#
David Reiss8180c0c2008-02-04 21:14:14 +000071# DebugProtoTest
72#
73DebugProtoTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000074 DebugProtoTest.cpp
75
David Reiss2a4bfd62008-04-07 23:45:00 +000076DebugProtoTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000077
78
79#
David Reissdb0ea152008-02-18 01:49:37 +000080# JSONProtoTest
81#
82JSONProtoTest_SOURCES = \
David Reissdb0ea152008-02-18 01:49:37 +000083 JSONProtoTest.cpp
84
David Reiss2a4bfd62008-04-07 23:45:00 +000085JSONProtoTest_LDADD = libtestgencpp.la
David Reissdb0ea152008-02-18 01:49:37 +000086
87#
David Reiss8180c0c2008-02-04 21:14:14 +000088# OptionalRequiredTest
89#
90OptionalRequiredTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000091 OptionalRequiredTest.cpp
92
David Reiss2a4bfd62008-04-07 23:45:00 +000093OptionalRequiredTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000094
95
96#
David Reiss8180c0c2008-02-04 21:14:14 +000097# Common thrift code generation rules
98#
David Reissc6c64982008-06-11 01:16:45 +000099THRIFT = $(top_builddir)/compiler/cpp/thrift
David Reiss8180c0c2008-02-04 21:14:14 +0000100
David Reiss0b7d6fa2009-02-07 02:36:35 +0000101gen-cpp/DebugProtoTest_types.cpp: DebugProtoTest.thrift
102 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000103
104gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000105 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000106
107gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
David Reiss0b7d6fa2009-02-07 02:36:35 +0000108 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000109
David Reiss2a4bfd62008-04-07 23:45:00 +0000110gen-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 +0000111 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000112
113INCLUDES = \
114 -I$(top_srcdir)/lib/cpp/src
115
116AM_CPPFLAGS = $(BOOST_CPPFLAGS)
117
118clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +0000119 $(RM) -r gen-cpp