blob: 5de2f1b2b6d94d0090e72e3a9d618cc27f8beaef [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 = \
30 DebugProtoTest \
David Reissdb0ea152008-02-18 01:49:37 +000031 JSONProtoTest \
David Reiss8180c0c2008-02-04 21:14:14 +000032 OptionalRequiredTest \
David Reiss2a4bfd62008-04-07 23:45:00 +000033 ReflectionTest \
34 UnitTests
David Reiss8180c0c2008-02-04 21:14:14 +000035
36TESTS = \
37 $(check_PROGRAMS)
38
David Reiss2a4bfd62008-04-07 23:45:00 +000039UnitTests_SOURCES = \
40 UnitTestMain.cpp \
41 TMemoryBufferTest.cpp
42
43UnitTests_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000044
45#
46# DebugProtoTest
47#
48DebugProtoTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000049 DebugProtoTest.cpp
50
David Reiss2a4bfd62008-04-07 23:45:00 +000051DebugProtoTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000052
53
54#
David Reissdb0ea152008-02-18 01:49:37 +000055# JSONProtoTest
56#
57JSONProtoTest_SOURCES = \
David Reissdb0ea152008-02-18 01:49:37 +000058 JSONProtoTest.cpp
59
David Reiss2a4bfd62008-04-07 23:45:00 +000060JSONProtoTest_LDADD = libtestgencpp.la
David Reissdb0ea152008-02-18 01:49:37 +000061
62#
David Reiss8180c0c2008-02-04 21:14:14 +000063# OptionalRequiredTest
64#
65OptionalRequiredTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000066 OptionalRequiredTest.cpp
67
David Reiss2a4bfd62008-04-07 23:45:00 +000068OptionalRequiredTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000069
70
71#
72# ReflectionTest
73#
74ReflectionTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000075 ReflectionTest.cpp
76
David Reiss2a4bfd62008-04-07 23:45:00 +000077ReflectionTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000078
79#
80# Common thrift code generation rules
81#
82THRIFT = $(top_srcdir)/compiler/cpp/thrift
83
84gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +000085 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +000086
87gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +000088 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +000089
90gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +000091 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +000092
David Reiss2a4bfd62008-04-07 23:45:00 +000093gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift
94 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +000095
96INCLUDES = \
97 -I$(top_srcdir)/lib/cpp/src
98
99AM_CPPFLAGS = $(BOOST_CPPFLAGS)
100
101clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +0000102 $(RM) -r gen-cpp