blob: e34e033da606540d63727dbd7d40c0e9db9dcd80 [file] [log] [blame]
David Reiss1a140912008-06-11 01:16:37 +00001SUBDIRS =
David Reiss9ff3b9d2008-02-15 01:10:23 +00002
David Reissff50f282008-02-23 22:07:46 +00003if ENABLE_JAVA
4SUBDIRS += java
5endif
6
David Reiss1a140912008-06-11 01:16:37 +00007if ENABLE_PYTHON
8SUBDIRS += py
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 \
22 gen-cpp/ThriftTest_types.cpp
23
24libtestgencpp_la_LIBADD = $(top_srcdir)/lib/cpp/libthrift.la
25
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 ReflectionTest \
40 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 = \
59 $(top_srcdir)/lib/cpp/libthrift.la
60
David Reiss1ffb61b2008-04-08 05:07:26 +000061
62#
63# TPipedTransportTest
64#
65TPipedTransportTest_SOURCES = \
66 TPipedTransportTest.cpp
67
68TPipedTransportTest_LDADD = \
69 $(top_srcdir)/lib/cpp/libthrift.la
70
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#
98# ReflectionTest
99#
100ReflectionTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +0000101 ReflectionTest.cpp
102
David Reiss2a4bfd62008-04-07 23:45:00 +0000103ReflectionTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +0000104
105#
106# Common thrift code generation rules
107#
108THRIFT = $(top_srcdir)/compiler/cpp/thrift
109
110gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000111 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000112
113gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000114 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000115
116gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000117 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000118
David Reiss2a4bfd62008-04-07 23:45:00 +0000119gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift
120 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000121
122INCLUDES = \
123 -I$(top_srcdir)/lib/cpp/src
124
125AM_CPPFLAGS = $(BOOST_CPPFLAGS)
126
127clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +0000128 $(RM) -r gen-cpp