blob: bf5a0d7d305ad9d4da771b5f065d00ea2a274f1b [file] [log] [blame]
David Reiss9ff3b9d2008-02-15 01:10:23 +00001SUBDIRS = py
2
David Reissff50f282008-02-23 22:07:46 +00003if ENABLE_JAVA
4SUBDIRS += java
5endif
6
David Reiss2a4bfd62008-04-07 23:45:00 +00007noinst_LTLIBRARIES = libtestgencpp.la
8libtestgencpp_la_SOURCES = \
9 gen-cpp/DebugProtoTest_types.cpp \
10 gen-cpp/OptionalRequiredTest_types.cpp \
11 gen-cpp/DebugProtoTest_types.cpp \
12 gen-cpp/PartiallyReflectable.cpp \
13 gen-cpp/Service.cpp \
14 gen-cpp/StressTest_types.cpp \
15 gen-cpp/SecondService.cpp \
16 gen-cpp/ThriftTest_constants.cpp \
17 gen-cpp/ThriftTest.cpp \
18 gen-cpp/ThriftTest_types.cpp
19
20libtestgencpp_la_LIBADD = $(top_srcdir)/lib/cpp/libthrift.la
21
22noinst_PROGRAMS = Benchmark
23
24Benchmark_SOURCES = \
25 Benchmark.cpp
26
27Benchmark_LDADD = libtestgencpp.la
28
David Reiss8180c0c2008-02-04 21:14:14 +000029check_PROGRAMS = \
David Reisse4db03d2008-04-08 05:06:59 +000030 TFDTransportTest \
David Reiss1ffb61b2008-04-08 05:07:26 +000031 TPipedTransportTest \
David Reiss8180c0c2008-02-04 21:14:14 +000032 DebugProtoTest \
David Reissdb0ea152008-02-18 01:49:37 +000033 JSONProtoTest \
David Reiss8180c0c2008-02-04 21:14:14 +000034 OptionalRequiredTest \
David Reiss2a4bfd62008-04-07 23:45:00 +000035 ReflectionTest \
36 UnitTests
David Reiss8180c0c2008-02-04 21:14:14 +000037
38TESTS = \
39 $(check_PROGRAMS)
40
David Reiss2a4bfd62008-04-07 23:45:00 +000041UnitTests_SOURCES = \
42 UnitTestMain.cpp \
David Reiss28f298d2008-05-01 06:17:36 +000043 TMemoryBufferTest.cpp \
44 TBufferBaseTest.cpp
David Reiss2a4bfd62008-04-07 23:45:00 +000045
46UnitTests_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000047
48#
David Reisse4db03d2008-04-08 05:06:59 +000049# TFDTransportTest
50#
51TFDTransportTest_SOURCES = \
52 TFDTransportTest.cpp
53
54TFDTransportTest_LDADD = \
55 $(top_srcdir)/lib/cpp/libthrift.la
56
David Reiss1ffb61b2008-04-08 05:07:26 +000057
58#
59# TPipedTransportTest
60#
61TPipedTransportTest_SOURCES = \
62 TPipedTransportTest.cpp
63
64TPipedTransportTest_LDADD = \
65 $(top_srcdir)/lib/cpp/libthrift.la
66
David Reisse4db03d2008-04-08 05:06:59 +000067#
David Reiss8180c0c2008-02-04 21:14:14 +000068# DebugProtoTest
69#
70DebugProtoTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000071 DebugProtoTest.cpp
72
David Reiss2a4bfd62008-04-07 23:45:00 +000073DebugProtoTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000074
75
76#
David Reissdb0ea152008-02-18 01:49:37 +000077# JSONProtoTest
78#
79JSONProtoTest_SOURCES = \
David Reissdb0ea152008-02-18 01:49:37 +000080 JSONProtoTest.cpp
81
David Reiss2a4bfd62008-04-07 23:45:00 +000082JSONProtoTest_LDADD = libtestgencpp.la
David Reissdb0ea152008-02-18 01:49:37 +000083
84#
David Reiss8180c0c2008-02-04 21:14:14 +000085# OptionalRequiredTest
86#
87OptionalRequiredTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000088 OptionalRequiredTest.cpp
89
David Reiss2a4bfd62008-04-07 23:45:00 +000090OptionalRequiredTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000091
92
93#
94# ReflectionTest
95#
96ReflectionTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000097 ReflectionTest.cpp
98
David Reiss2a4bfd62008-04-07 23:45:00 +000099ReflectionTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +0000100
101#
102# Common thrift code generation rules
103#
104THRIFT = $(top_srcdir)/compiler/cpp/thrift
105
106gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000107 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000108
109gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000110 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000111
112gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000113 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000114
David Reiss2a4bfd62008-04-07 23:45:00 +0000115gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift
116 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000117
118INCLUDES = \
119 -I$(top_srcdir)/lib/cpp/src
120
121AM_CPPFLAGS = $(BOOST_CPPFLAGS)
122
123clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +0000124 $(RM) -r gen-cpp