blob: c478cceda3775ec9d97857b7003b1ec776d8e63f [file] [log] [blame]
David Reiss351e22b2010-08-31 16:51:19 +00001#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
20noinst_LTLIBRARIES = libtestgencpp.la
21nodist_libtestgencpp_la_SOURCES = \
22 gen-cpp/DebugProtoTest_types.cpp \
23 gen-cpp/OptionalRequiredTest_types.cpp \
24 gen-cpp/DebugProtoTest_types.cpp \
25 gen-cpp/ThriftTest_types.cpp \
26 gen-cpp/DebugProtoTest_types.h \
27 gen-cpp/OptionalRequiredTest_types.h \
28 gen-cpp/ThriftTest_types.h \
29 ThriftTest_extras.cpp \
30 DebugProtoTest_extras.cpp
31
32ThriftTest_extras.o: gen-cpp/ThriftTest_types.h
33DebugProtoTest_extras.o: gen-cpp/DebugProtoTest_types.h
34
35libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la
36
37noinst_PROGRAMS = Benchmark
38
39Benchmark_SOURCES = \
40 Benchmark.cpp
41
42Benchmark_LDADD = libtestgencpp.la
43
44check_PROGRAMS = \
45 TFDTransportTest \
46 TPipedTransportTest \
47 DebugProtoTest \
48 JSONProtoTest \
49 OptionalRequiredTest \
50 AllProtocolsTest \
51 UnitTests
52
53TESTS = \
54 $(check_PROGRAMS)
55
56UnitTests_SOURCES = \
57 UnitTestMain.cpp \
58 TMemoryBufferTest.cpp \
59 TBufferBaseTest.cpp
60
Roger Meier8a441a42010-10-04 21:13:36 +000061UnitTests_LDADD = $(BOOST_LDFLAGS) libtestgencpp.la -lboost_unit_test_framework
David Reiss351e22b2010-08-31 16:51:19 +000062
63#
64# TFDTransportTest
65#
66TFDTransportTest_SOURCES = \
67 TFDTransportTest.cpp
68
69TFDTransportTest_LDADD = \
70 $(top_builddir)/lib/cpp/libthrift.la
71
72
73#
74# TPipedTransportTest
75#
76TPipedTransportTest_SOURCES = \
77 TPipedTransportTest.cpp
78
79TPipedTransportTest_LDADD = \
80 $(top_builddir)/lib/cpp/libthrift.la
81
82#
83# AllProtocolsTest
84#
85AllProtocolsTest_SOURCES = \
86 AllProtocolTests.cpp \
87 AllProtocolTests.tcc \
88 GenericHelpers.h
89
90AllProtocolsTest_LDADD = libtestgencpp.la
91
92#
93# DebugProtoTest
94#
95DebugProtoTest_SOURCES = \
96 DebugProtoTest.cpp
97
98DebugProtoTest_LDADD = libtestgencpp.la
99
100
101#
102# JSONProtoTest
103#
104JSONProtoTest_SOURCES = \
105 JSONProtoTest.cpp
106
107JSONProtoTest_LDADD = libtestgencpp.la
108
109#
110# OptionalRequiredTest
111#
112OptionalRequiredTest_SOURCES = \
113 OptionalRequiredTest.cpp
114
115OptionalRequiredTest_LDADD = libtestgencpp.la
116
117
118#
119# Common thrift code generation rules
120#
121THRIFT = $(top_builddir)/compiler/cpp/thrift
122
123gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h: $(top_srcdir)/test/DebugProtoTest.thrift
124 $(THRIFT) --gen cpp:dense $<
125
126gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: $(top_srcdir)/test/OptionalRequiredTest.thrift
127 $(THRIFT) --gen cpp:dense $<
128
129gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: $(top_srcdir)/test/StressTest.thrift
130 $(THRIFT) --gen cpp:dense $<
131
132gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_types.h: $(top_srcdir)/test/ThriftTest.thrift
133 $(THRIFT) --gen cpp:dense $<
134
135INCLUDES = \
136 -I$(top_srcdir)/lib/cpp/src
137
138AM_CPPFLAGS = $(BOOST_CPPFLAGS)
139
140clean-local:
141 $(RM) -r gen-cpp
142
143EXTRA_DIST = \
144 ZlibTest.cpp \
145 DenseProtoTest.cpp \
146 ThriftTest_extras.cpp \
147 DebugProtoTest_extras.cpp