blob: 5490de848fb7811867d2b2b453ca28bb17425067 [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 Reiss8180c0c2008-02-04 21:14:14 +000031 DebugProtoTest \
David Reissdb0ea152008-02-18 01:49:37 +000032 JSONProtoTest \
David Reiss8180c0c2008-02-04 21:14:14 +000033 OptionalRequiredTest \
David Reiss2a4bfd62008-04-07 23:45:00 +000034 ReflectionTest \
35 UnitTests
David Reiss8180c0c2008-02-04 21:14:14 +000036
37TESTS = \
38 $(check_PROGRAMS)
39
David Reiss2a4bfd62008-04-07 23:45:00 +000040UnitTests_SOURCES = \
41 UnitTestMain.cpp \
42 TMemoryBufferTest.cpp
43
44UnitTests_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000045
46#
David Reisse4db03d2008-04-08 05:06:59 +000047# TFDTransportTest
48#
49TFDTransportTest_SOURCES = \
50 TFDTransportTest.cpp
51
52TFDTransportTest_LDADD = \
53 $(top_srcdir)/lib/cpp/libthrift.la
54
55#
David Reiss8180c0c2008-02-04 21:14:14 +000056# DebugProtoTest
57#
58DebugProtoTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000059 DebugProtoTest.cpp
60
David Reiss2a4bfd62008-04-07 23:45:00 +000061DebugProtoTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000062
63
64#
David Reissdb0ea152008-02-18 01:49:37 +000065# JSONProtoTest
66#
67JSONProtoTest_SOURCES = \
David Reissdb0ea152008-02-18 01:49:37 +000068 JSONProtoTest.cpp
69
David Reiss2a4bfd62008-04-07 23:45:00 +000070JSONProtoTest_LDADD = libtestgencpp.la
David Reissdb0ea152008-02-18 01:49:37 +000071
72#
David Reiss8180c0c2008-02-04 21:14:14 +000073# OptionalRequiredTest
74#
75OptionalRequiredTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000076 OptionalRequiredTest.cpp
77
David Reiss2a4bfd62008-04-07 23:45:00 +000078OptionalRequiredTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000079
80
81#
82# ReflectionTest
83#
84ReflectionTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000085 ReflectionTest.cpp
86
David Reiss2a4bfd62008-04-07 23:45:00 +000087ReflectionTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000088
89#
90# Common thrift code generation rules
91#
92THRIFT = $(top_srcdir)/compiler/cpp/thrift
93
94gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +000095 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +000096
97gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +000098 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +000099
100gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000101 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000102
David Reiss2a4bfd62008-04-07 23:45:00 +0000103gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift
104 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000105
106INCLUDES = \
107 -I$(top_srcdir)/lib/cpp/src
108
109AM_CPPFLAGS = $(BOOST_CPPFLAGS)
110
111clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +0000112 $(RM) -r gen-cpp