blob: dab0f4e9c88fd9fe2395213be5f400e20ecf4952 [file] [log] [blame]
David Reiss1a140912008-06-11 01:16:37 +00001SUBDIRS =
David Reiss9ff3b9d2008-02-15 01:10:23 +00002
David Reiss82c1bab2008-06-11 01:16:53 +00003if WITH_JAVA
David Reissff50f282008-02-23 22:07:46 +00004SUBDIRS += java
5endif
6
David Reiss82c1bab2008-06-11 01:16:53 +00007if WITH_PYTHON
David Reiss1a140912008-06-11 01:16:37 +00008SUBDIRS += py
9endif
10
David Reiss8d07e1d2008-07-11 08:04:12 +000011if WITH_RUBY
Kevin Clark4bd89162008-07-08 00:47:49 +000012SUBDIRS += rb
13endif
14
David Reiss2a4bfd62008-04-07 23:45:00 +000015noinst_LTLIBRARIES = libtestgencpp.la
16libtestgencpp_la_SOURCES = \
17 gen-cpp/DebugProtoTest_types.cpp \
18 gen-cpp/OptionalRequiredTest_types.cpp \
19 gen-cpp/DebugProtoTest_types.cpp \
20 gen-cpp/PartiallyReflectable.cpp \
21 gen-cpp/Service.cpp \
22 gen-cpp/StressTest_types.cpp \
23 gen-cpp/SecondService.cpp \
24 gen-cpp/ThriftTest_constants.cpp \
25 gen-cpp/ThriftTest.cpp \
26 gen-cpp/ThriftTest_types.cpp
27
David Reissc6c64982008-06-11 01:16:45 +000028libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
David Reiss2a4bfd62008-04-07 23:45:00 +000029
30noinst_PROGRAMS = Benchmark
31
32Benchmark_SOURCES = \
33 Benchmark.cpp
34
35Benchmark_LDADD = libtestgencpp.la
36
David Reiss8180c0c2008-02-04 21:14:14 +000037check_PROGRAMS = \
David Reisse4db03d2008-04-08 05:06:59 +000038 TFDTransportTest \
David Reiss1ffb61b2008-04-08 05:07:26 +000039 TPipedTransportTest \
David Reiss8180c0c2008-02-04 21:14:14 +000040 DebugProtoTest \
David Reissdb0ea152008-02-18 01:49:37 +000041 JSONProtoTest \
David Reiss8180c0c2008-02-04 21:14:14 +000042 OptionalRequiredTest \
David Reiss2a4bfd62008-04-07 23:45:00 +000043 ReflectionTest \
44 UnitTests
David Reiss8180c0c2008-02-04 21:14:14 +000045
46TESTS = \
47 $(check_PROGRAMS)
48
David Reiss2a4bfd62008-04-07 23:45:00 +000049UnitTests_SOURCES = \
50 UnitTestMain.cpp \
David Reiss28f298d2008-05-01 06:17:36 +000051 TMemoryBufferTest.cpp \
52 TBufferBaseTest.cpp
David Reiss2a4bfd62008-04-07 23:45:00 +000053
54UnitTests_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000055
56#
David Reisse4db03d2008-04-08 05:06:59 +000057# TFDTransportTest
58#
59TFDTransportTest_SOURCES = \
60 TFDTransportTest.cpp
61
62TFDTransportTest_LDADD = \
David Reissc6c64982008-06-11 01:16:45 +000063 $(top_builddir)/lib/cpp/libthrift.la
David Reisse4db03d2008-04-08 05:06:59 +000064
David Reiss1ffb61b2008-04-08 05:07:26 +000065
66#
67# TPipedTransportTest
68#
69TPipedTransportTest_SOURCES = \
70 TPipedTransportTest.cpp
71
72TPipedTransportTest_LDADD = \
David Reissc6c64982008-06-11 01:16:45 +000073 $(top_builddir)/lib/cpp/libthrift.la
David Reiss1ffb61b2008-04-08 05:07:26 +000074
David Reisse4db03d2008-04-08 05:06:59 +000075#
David Reiss8180c0c2008-02-04 21:14:14 +000076# DebugProtoTest
77#
78DebugProtoTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000079 DebugProtoTest.cpp
80
David Reiss2a4bfd62008-04-07 23:45:00 +000081DebugProtoTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000082
83
84#
David Reissdb0ea152008-02-18 01:49:37 +000085# JSONProtoTest
86#
87JSONProtoTest_SOURCES = \
David Reissdb0ea152008-02-18 01:49:37 +000088 JSONProtoTest.cpp
89
David Reiss2a4bfd62008-04-07 23:45:00 +000090JSONProtoTest_LDADD = libtestgencpp.la
David Reissdb0ea152008-02-18 01:49:37 +000091
92#
David Reiss8180c0c2008-02-04 21:14:14 +000093# OptionalRequiredTest
94#
95OptionalRequiredTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +000096 OptionalRequiredTest.cpp
97
David Reiss2a4bfd62008-04-07 23:45:00 +000098OptionalRequiredTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +000099
100
101#
102# ReflectionTest
103#
104ReflectionTest_SOURCES = \
David Reiss8180c0c2008-02-04 21:14:14 +0000105 ReflectionTest.cpp
106
David Reiss2a4bfd62008-04-07 23:45:00 +0000107ReflectionTest_LDADD = libtestgencpp.la
David Reiss8180c0c2008-02-04 21:14:14 +0000108
109#
110# Common thrift code generation rules
111#
David Reissc6c64982008-06-11 01:16:45 +0000112THRIFT = $(top_builddir)/compiler/cpp/thrift
David Reiss8180c0c2008-02-04 21:14:14 +0000113
114gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000115 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000116
117gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000118 $(THRIFT) --gen cpp:dense $<
David Reiss8180c0c2008-02-04 21:14:14 +0000119
120gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
David Reiss4ce28742008-02-27 07:45:05 +0000121 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000122
David Reiss2a4bfd62008-04-07 23:45:00 +0000123gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift
124 $(THRIFT) --gen cpp:dense,reflection_limited $<
David Reiss8180c0c2008-02-04 21:14:14 +0000125
126INCLUDES = \
127 -I$(top_srcdir)/lib/cpp/src
128
129AM_CPPFLAGS = $(BOOST_CPPFLAGS)
130
131clean-local:
David Reiss2ca456a2008-02-24 16:42:18 +0000132 $(RM) -r gen-cpp