blob: c6907909403bef354542f69fa53d6db31fd59000 [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 Reiss8180c0c2008-02-04 21:14:14 +00007check_PROGRAMS = \
8 DebugProtoTest \
David Reissdb0ea152008-02-18 01:49:37 +00009 JSONProtoTest \
David Reiss8180c0c2008-02-04 21:14:14 +000010 OptionalRequiredTest \
11 ReflectionTest
12
13TESTS = \
14 $(check_PROGRAMS)
15
16
17#
18# DebugProtoTest
19#
20DebugProtoTest_SOURCES = \
21 gen-cpp/DebugProtoTest_types.cpp \
22 DebugProtoTest.cpp
23
24DebugProtoTest_LDADD = \
25 $(top_srcdir)/lib/cpp/libthrift.la
26
27
28#
David Reissdb0ea152008-02-18 01:49:37 +000029# JSONProtoTest
30#
31JSONProtoTest_SOURCES = \
32 gen-cpp/DebugProtoTest_types.cpp \
33 JSONProtoTest.cpp
34
35JSONProtoTest_LDADD = \
36 $(top_srcdir)/lib/cpp/libthrift.la
37
38#
David Reiss8180c0c2008-02-04 21:14:14 +000039# OptionalRequiredTest
40#
41OptionalRequiredTest_SOURCES = \
42 gen-cpp/OptionalRequiredTest_types.cpp \
43 OptionalRequiredTest.cpp
44
45OptionalRequiredTest_LDADD = \
46 $(top_srcdir)/lib/cpp/libthrift.la
47
48
49#
50# ReflectionTest
51#
52ReflectionTest_SOURCES = \
53 gen-cpp/DebugProtoTest_types.cpp \
54 gen-cpp/PartiallyReflectable.cpp \
55 gen-cpp/Service.cpp \
56 gen-cpp/StressTest_types.cpp \
57 ReflectionTest.cpp
58
59ReflectionTest_LDADD = \
60 $(top_srcdir)/lib/cpp/libthrift.la
61
62
63#
64# Common thrift code generation rules
65#
66THRIFT = $(top_srcdir)/compiler/cpp/thrift
67
68gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +000069 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +000070
71gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +000072 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +000073
74gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +000075 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +000076
77
78INCLUDES = \
79 -I$(top_srcdir)/lib/cpp/src
80
81AM_CPPFLAGS = $(BOOST_CPPFLAGS)
82
83clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +000084 $(RM) -r gen-cpp