blob: 6eeece9deda812a27fc386b828ba11829a66c8cf [file] [log] [blame]
Roger Meierc2cc61a2010-11-30 19:53:29 +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#
Kevin Wojniaka3925662019-07-01 11:07:45 -070019AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc
Roger Meier81a1f992014-10-22 14:09:43 +020020
Roger Meier213a6642010-10-27 12:30:11 +000021SUBDIRS =
22
Nobuaki Sukegawaef0a8fa2015-05-10 20:21:17 +090023BUILT_SOURCES = \
Jens Geyer54f392b2015-08-05 21:45:10 +020024 gen-c_glib/t_test_container_test_types.c \
25 gen-c_glib/t_test_container_test_types.h \
Nobuaki Sukegawaef0a8fa2015-05-10 20:21:17 +090026 gen-c_glib/t_test_debug_proto_test_types.h \
27 gen-c_glib/t_test_empty_service.h \
28 gen-c_glib/t_test_inherited.h \
29 gen-c_glib/t_test_optional_required_test_types.h \
30 gen-c_glib/t_test_reverse_order_service.h \
31 gen-c_glib/t_test_second_service.h \
32 gen-c_glib/t_test_service_for_exception_with_a_map.h \
Jens Geyer54f392b2015-08-05 21:45:10 +020033 gen-c_glib/t_test_container_service.c \
34 gen-c_glib/t_test_container_service.h \
Nobuaki Sukegawaef0a8fa2015-05-10 20:21:17 +090035 gen-c_glib/t_test_srv.h \
36 gen-c_glib/t_test_thrift_test.h \
Hasnain Lakhani6ba51d02025-05-17 21:18:46 -070037 gen-c_glib/t_test_thrift_test_types.h \
38 gen-c_glib/t_test_enum_test_types.h
Nobuaki Sukegawaef0a8fa2015-05-10 20:21:17 +090039
Kevin Wojniaka3925662019-07-01 11:07:45 -070040AM_CPPFLAGS = -I../src -I./gen-c_glib -I$(top_builddir)/lib/c_glib/src/thrift
James E. King, III36628a22017-02-13 15:25:41 -050041AM_CFLAGS = -g -Wall -Wextra -pedantic $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) $(OPENSSL_INCLUDES) \
Simon Southdb3646f2015-08-01 12:18:12 +000042 @GCOV_CFLAGS@
43AM_CXXFLAGS = $(AM_CFLAGS)
zeshuai007037753e2020-11-30 11:16:10 +080044AM_LDFLAGS = $(GLIB_LIBS) $(GOBJECT_LIBS) $(OPENSSL_LIBS) $(ZLIB_LIBS) @GCOV_LDFLAGS@
Roger Meier213a6642010-10-27 12:30:11 +000045
Roger Meier213a6642010-10-27 12:30:11 +000046check_PROGRAMS = \
Nobuaki Sukegawa362a5ed2015-12-01 22:17:24 +090047 testserialization \
Roger Meier909f1862014-07-24 23:52:14 +020048 testapplicationexception \
Jens Geyer54f392b2015-08-05 21:45:10 +020049 testcontainertest \
Roger Meier213a6642010-10-27 12:30:11 +000050 testtransportsocket \
James E. King, III36628a22017-02-13 15:25:41 -050051 testtransportsslsocket \
Roger Meierc1010922010-11-26 10:17:48 +000052 testbinaryprotocol \
Chandler May6dde90b2016-01-10 06:01:10 +000053 testcompactprotocol \
Roger Meier213a6642010-10-27 12:30:11 +000054 testbufferedtransport \
55 testframedtransport \
zeshuai007037753e2020-11-30 11:16:10 +080056 testzlibtransport \
Simon Southe71f20c2016-02-11 06:52:37 -050057 testfdtransport \
Roger Meier213a6642010-10-27 12:30:11 +000058 testmemorybuffer \
59 teststruct \
60 testsimpleserver \
61 testdebugproto \
62 testoptionalrequired \
zeshuai007c80b8bb2020-07-23 09:43:41 +080063 testthrifttest \
64 testthriftbinaryreadcheck \
65 testthriftcompactreadcheck \
66 testthriftbufferedreadcheck \
67 testthriftfdreadcheck \
68 testthriftframedreadcheck \
69 testthriftmemorybufferreadcheck
Roger Meier213a6642010-10-27 12:30:11 +000070
71if WITH_CPP
Nobuaki Sukegawaef0a8fa2015-05-10 20:21:17 +090072 BUILT_SOURCES += gen-cpp/ThriftTest_types.cpp
zeshuai007037753e2020-11-30 11:16:10 +080073 check_PROGRAMS += testthrifttestclient \
74 testthrifttestzlibclient
Roger Meier213a6642010-10-27 12:30:11 +000075endif
76
Nobuaki Sukegawa362a5ed2015-12-01 22:17:24 +090077testserialization_SOURCES = testserialization.c
78testserialization_LDADD = \
79 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
80 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +080081 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o \
Nobuaki Sukegawa362a5ed2015-12-01 22:17:24 +090082 libtestgenc.la
83
Roger Meier909f1862014-07-24 23:52:14 +020084testapplicationexception_SOURCES = testapplicationexception.c
85testapplicationexception_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +020086 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_application_exception.o \
87 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
88 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_struct.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +080089 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
90 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
Roger Meier909f1862014-07-24 23:52:14 +020091
Jens Geyer54f392b2015-08-05 21:45:10 +020092testcontainertest_SOURCES = testcontainertest.c
93testcontainertest_LDADD = \
94 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_struct.o \
95 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
96 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
97 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport_factory.o \
98 $(top_builddir)/lib/c_glib/src/thrift/c_glib/processor/libthrift_c_glib_la-thrift_processor.o \
99 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol_factory.o \
100 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol.o \
101 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol_factory.o \
102 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
103 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
104 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
105 $(top_builddir)/lib/c_glib/src/thrift/c_glib/server/libthrift_c_glib_la-thrift_server.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800106 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o \
107 libtestgenc.la
Jens Geyer54f392b2015-08-05 21:45:10 +0200108
Roger Meier213a6642010-10-27 12:30:11 +0000109testtransportsocket_SOURCES = testtransportsocket.c
110testtransportsocket_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200111 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
112 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_buffered_transport.o \
113 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800114 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
115 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
Roger Meier213a6642010-10-27 12:30:11 +0000116
James E. King, III36628a22017-02-13 15:25:41 -0500117
118testtransportsslsocket_SOURCES = testtransportsslsocket.c
119testtransportsslsocket_LDADD = \
120 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
121 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
122 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_buffered_transport.o \
123 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800124 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
125 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
James E. King, III36628a22017-02-13 15:25:41 -0500126
127
Roger Meierc1010922010-11-26 10:17:48 +0000128testbinaryprotocol_SOURCES = testbinaryprotocol.c
129testbinaryprotocol_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200130 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
131 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
Chandler May1ccd81b2016-02-11 08:25:25 -0500132 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_framed_transport.o \
Jens Geyer86777192015-07-25 15:59:46 +0200133 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
134 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800135 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
136 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
Roger Meier213a6642010-10-27 12:30:11 +0000137
Chandler May6dde90b2016-01-10 06:01:10 +0000138testcompactprotocol_SOURCES = testcompactprotocol.c
139testcompactprotocol_LDADD = \
140 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
141 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
Chandler May1ccd81b2016-02-11 08:25:25 -0500142 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_framed_transport.o \
Chandler May6dde90b2016-01-10 06:01:10 +0000143 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
144 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800145 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
146 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
Chandler May6dde90b2016-01-10 06:01:10 +0000147
Roger Meier213a6642010-10-27 12:30:11 +0000148testbufferedtransport_SOURCES = testbufferedtransport.c
149testbufferedtransport_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200150 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
151 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
152 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800153 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
154 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
Roger Meier213a6642010-10-27 12:30:11 +0000155
156testframedtransport_SOURCES = testframedtransport.c
157testframedtransport_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200158 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
159 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
160 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800161 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
162 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
Roger Meier213a6642010-10-27 12:30:11 +0000163
zeshuai007037753e2020-11-30 11:16:10 +0800164testzlibtransport_SOURCES = testzlibtransport.c
165testzlibtransport_LDADD = \
166 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
167 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
168 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
169 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
170 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
171
Simon Southe71f20c2016-02-11 06:52:37 -0500172testfdtransport_SOURCES = testfdtransport.c
173testfdtransport_LDADD = \
174 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800175 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_fd_transport.o \
176 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
Simon Southe71f20c2016-02-11 06:52:37 -0500177
Roger Meier213a6642010-10-27 12:30:11 +0000178testmemorybuffer_SOURCES = testmemorybuffer.c
179testmemorybuffer_LDADD = \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800180 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
181 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
Roger Meier213a6642010-10-27 12:30:11 +0000182
183teststruct_SOURCES = teststruct.c
184teststruct_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200185 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800186 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
187 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
Roger Meier213a6642010-10-27 12:30:11 +0000188
189testsimpleserver_SOURCES = testsimpleserver.c
190testsimpleserver_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200191 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
192 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
193 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport_factory.o \
194 $(top_builddir)/lib/c_glib/src/thrift/c_glib/processor/libthrift_c_glib_la-thrift_processor.o \
195 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol_factory.o \
196 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol.o \
197 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_binary_protocol_factory.o \
198 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
199 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
200 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800201 $(top_builddir)/lib/c_glib/src/thrift/c_glib/server/libthrift_c_glib_la-thrift_server.o \
202 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
Roger Meier213a6642010-10-27 12:30:11 +0000203
204testdebugproto_SOURCES = testdebugproto.c
205testdebugproto_LDADD = libtestgenc.la
206
207testoptionalrequired_SOURCES = testoptionalrequired.c
208testoptionalrequired_LDADD = \
Jens Geyer86777192015-07-25 15:59:46 +0200209 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
210 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
zeshuai007c80b8bb2020-07-23 09:43:41 +0800211 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o \
Roger Meier213a6642010-10-27 12:30:11 +0000212 libtestgenc.la
213
Nobuaki Sukegawa60769702016-01-23 19:25:06 +0900214testthrifttest_SOURCES = testthrifttest.c
215testthrifttest_LDADD = libtestgenc.la \
216 $(top_builddir)/test/c_glib/src/thrift_test_handler.o
Chandler May3fe3df22016-01-18 11:05:40 -0500217testthrifttest_CFLAGS = -I$(top_srcdir)/test/c_glib/src -I./gen-c_glib $(GLIB_CFLAGS)
Roger Meier213a6642010-10-27 12:30:11 +0000218
zeshuai007c80b8bb2020-07-23 09:43:41 +0800219testthriftbinaryreadcheck_SOURCES = testthriftbinaryreadcheck.c
220testthriftbinaryreadcheck_LDADD = \
221 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
222 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
223 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_framed_transport.o \
224 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
225 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
226 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
227 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
228
229testthriftcompactreadcheck_SOURCES = testthriftcompactreadcheck.c
230testthriftcompactreadcheck_LDADD = \
231 $(top_builddir)/lib/c_glib/src/thrift/c_glib/protocol/libthrift_c_glib_la-thrift_protocol.o \
232 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
233 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_framed_transport.o \
234 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
235 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
236 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
237 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
238
239testthriftbufferedreadcheck_SOURCES = testthriftbufferedreadcheck.c
240testthriftbufferedreadcheck_LDADD = \
241 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
242 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
243 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
244 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
245 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
246
247testthriftfdreadcheck_SOURCES = testthriftfdreadcheck.c
248testthriftfdreadcheck_LDADD = \
249 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
250 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_fd_transport.o \
251 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
252
253testthriftframedreadcheck_SOURCES = testthriftframedreadcheck.c
254testthriftframedreadcheck_LDADD = \
255 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
256 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_socket.o \
257 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_transport.o \
258 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_server_socket.o \
259 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
260
261testthriftmemorybufferreadcheck_SOURCES = testthriftmemorybufferreadcheck.c
262testthriftmemorybufferreadcheck_LDADD = \
263 $(top_builddir)/lib/c_glib/src/thrift/c_glib/transport/libthrift_c_glib_la-thrift_transport.o \
264 $(top_builddir)/lib/c_glib/src/thrift/c_glib/libthrift_c_glib_la-thrift_configuration.o
265
266
Roger Meier213a6642010-10-27 12:30:11 +0000267testthrifttestclient_SOURCES = testthrifttestclient.cpp
268testthrifttestclient_CPPFLAGS = -I../../cpp/src $(BOOST_CPPFLAGS) -I./gen-cpp -I../src -I./gen-c_glib $(GLIB_CFLAGS)
269testthrifttestclient_LDADD = ../../cpp/.libs/libthrift.la ../libthrift_c_glib.la libtestgenc.la libtestgencpp.la
270testthrifttestclient_LDFLAGS = -L../.libs -L../../cpp/.libs $(GLIB_LIBS) $(GOBJECT_LIBS)
271
zeshuai007037753e2020-11-30 11:16:10 +0800272testthrifttestzlibclient_SOURCES = testthrifttestzlibclient.cpp
273testthrifttestzlibclient_CPPFLAGS = -I../../cpp/src $(BOOST_CPPFLAGS) -I./gen-cpp -I../src -I./gen-c_glib $(GLIB_CFLAGS)
274testthrifttestzlibclient_LDADD = ../../cpp/.libs/libthrift.la ../../cpp/.libs/libthriftz.la ../libthrift_c_glib.la libtestgenc.la libtestgencpp.la
275testthrifttestzlibclient_LDFLAGS = -L../.libs -L../../cpp/.libs $(GLIB_LIBS) $(GOBJECT_LIBS)
276
Roger Meier213a6642010-10-27 12:30:11 +0000277check_LTLIBRARIES = libtestgenc.la
278
279if WITH_CPP
280 check_LTLIBRARIES += libtestgencpp.la
281endif
282
Bryan Duxbury39fbb9a2011-01-13 18:09:51 +0000283nodist_libtestgenc_la_SOURCES = \
Jens Geyer54f392b2015-08-05 21:45:10 +0200284 gen-c_glib/t_test_container_test_types.c \
Roger Meier213a6642010-10-27 12:30:11 +0000285 gen-c_glib/t_test_debug_proto_test_types.c \
Nobuaki Sukegawaba3fe862015-12-01 22:42:55 +0900286 gen-c_glib/t_test_enum_test_types.c \
287 gen-c_glib/t_test_enum_test_service.c \
Roger Meier213a6642010-10-27 12:30:11 +0000288 gen-c_glib/t_test_empty_service.c \
289 gen-c_glib/t_test_inherited.c \
290 gen-c_glib/t_test_optional_required_test_types.c \
291 gen-c_glib/t_test_reverse_order_service.c \
292 gen-c_glib/t_test_second_service.c \
293 gen-c_glib/t_test_service_for_exception_with_a_map.c \
294 gen-c_glib/t_test_srv.c \
Jens Geyer54f392b2015-08-05 21:45:10 +0200295 gen-c_glib/t_test_container_service.c \
Roger Meier213a6642010-10-27 12:30:11 +0000296 gen-c_glib/t_test_thrift_test.c \
297 gen-c_glib/t_test_thrift_test_types.c \
Jens Geyer54f392b2015-08-05 21:45:10 +0200298 gen-c_glib/t_test_container_test_types.h \
Roger Meier213a6642010-10-27 12:30:11 +0000299 gen-c_glib/t_test_debug_proto_test_types.h \
Nobuaki Sukegawaba3fe862015-12-01 22:42:55 +0900300 gen-c_glib/t_test_enum_test_types.h \
301 gen-c_glib/t_test_enum_test_service.h \
Roger Meier213a6642010-10-27 12:30:11 +0000302 gen-c_glib/t_test_empty_service.h \
303 gen-c_glib/t_test_inherited.h \
304 gen-c_glib/t_test_optional_required_test_types.h \
305 gen-c_glib/t_test_reverse_order_service.h \
306 gen-c_glib/t_test_second_service.h \
307 gen-c_glib/t_test_service_for_exception_with_a_map.h \
308 gen-c_glib/t_test_srv.h \
Jens Geyer54f392b2015-08-05 21:45:10 +0200309 gen-c_glib/t_test_container_service.h \
Roger Meier213a6642010-10-27 12:30:11 +0000310 gen-c_glib/t_test_thrift_test.h \
311 gen-c_glib/t_test_thrift_test_types.h
312libtestgenc_la_LIBADD = $(top_builddir)/lib/c_glib/libthrift_c_glib.la
Jens Geyer1c190272015-07-28 23:15:18 +0200313libtestgenc_la_CPPFLAGS = $(AM_CPPFLAGS) -Wno-unused-function
Roger Meier213a6642010-10-27 12:30:11 +0000314
Bryan Duxbury39fbb9a2011-01-13 18:09:51 +0000315nodist_libtestgencpp_la_SOURCES = \
Roger Meier213a6642010-10-27 12:30:11 +0000316 gen-cpp/ThriftTest.cpp \
317 gen-cpp/ThriftTest_constants.cpp \
318 gen-cpp/ThriftTest_types.cpp \
319 gen-cpp/ThriftTest.h \
320 gen-cpp/ThriftTest_constants.h \
321 gen-cpp/ThriftTest_types.h
322libtestgencpp_la_CPPFLAGS = -I../../cpp/src $(BOOST_CPPFLAGS) -I./gen-cpp
323
Nobuaki Sukegawa60769702016-01-23 19:25:06 +0900324gen-c_glib/t_test_container_test_types.c gen-c_glib/t_test_container_test_types.h gen-c_glib/t_test_container_service.c gen-c_glib/t_test_container_service.h: ContainerTest.thrift $(THRIFT)
Jens Geyer54f392b2015-08-05 21:45:10 +0200325 $(THRIFT) --gen c_glib $<
326
Jens Geyerf066d842022-06-13 23:37:25 +0200327gen-c_glib/t_test_debug_proto_test_types.c gen-c_glib/t_test_debug_proto_test_types.h gen-c_glib/t_test_empty_service.c gen-c_glib/t_test_empty_service.h gen-c_glib/t_test_inherited.c gen-c_glib/t_test_inherited.h gen-c_glib/t_test_reverse_order_service.c gen-c_glib/t_test_reverse_order_service.h gen-c_glib/t_test_service_for_exception_with_a_map.c gen-c_glib/t_test_service_for_exception_with_a_map.h gen-c_glib/t_test_srv.c gen-c_glib/t_test_srv.h: ../../../test/v0.16/DebugProtoTest.thrift $(THRIFT)
Jens Geyer79f988c2014-10-03 20:42:54 +0200328 $(THRIFT) --gen c_glib $<
Roger Meier213a6642010-10-27 12:30:11 +0000329
Nobuaki Sukegawa60769702016-01-23 19:25:06 +0900330gen-c_glib/t_test_enum_test_types.c gen-c_glib/t_test_enum_test_types.h gen-c_glib/t_test_enum_test_service.c gen-c_glib/t_test_enum_test_service.h : ../../../test/EnumTest.thrift $(THRIFT)
Nobuaki Sukegawaba3fe862015-12-01 22:42:55 +0900331 $(THRIFT) --gen c_glib $<
332
Nobuaki Sukegawa60769702016-01-23 19:25:06 +0900333gen-c_glib/t_test_optional_required_test_types.c gen-c_glib/t_test_optional_required_test_types.h: ../../../test/OptionalRequiredTest.thrift $(THRIFT)
Jens Geyer79f988c2014-10-03 20:42:54 +0200334 $(THRIFT) --gen c_glib $<
Roger Meier213a6642010-10-27 12:30:11 +0000335
Jens Geyerf066d842022-06-13 23:37:25 +0200336gen-c_glib/t_test_second_service.c gen-c_glib/t_test_thrift_test.c gen-c_glib/t_test_thrift_test_types.c gen-c_glib/t_test_second_service.h gen-c_glib/t_test_thrift_test.h gen-c_glib/t_test_thrift_test_types.h: ../../../test/v0.16/ThriftTest.thrift $(THRIFT)
Jens Geyer79f988c2014-10-03 20:42:54 +0200337 $(THRIFT) --gen c_glib $<
Roger Meier213a6642010-10-27 12:30:11 +0000338
CJCombrink4b909092024-04-27 19:51:39 +0200339gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest_types.cpp: ../../../test/ThriftTest.thrift $(THRIFT)
Jens Geyer79f988c2014-10-03 20:42:54 +0200340 $(THRIFT) --gen cpp $<
Roger Meier213a6642010-10-27 12:30:11 +0000341
Roger Meier213a6642010-10-27 12:30:11 +0000342TESTS = \
Roger Meier213a6642010-10-27 12:30:11 +0000343 $(check_PROGRAMS) \
344 $(check_SCRIPTS)
345
346# globally added to all instances of valgrind calls
347# VALGRIND_OPTS = --suppressions=glib.suppress
348VALGRIND_OPTS =
349
350# globally added to all memcheck calls
351VALGRIND_MEM_OPTS = --tool=memcheck \
352 --num-callers=10 \
353 ${myextravalgrindmemopts}
354
355# globally added to all leakcheck calls
356VALGRIND_LEAK_OPTS = --tool=memcheck \
357 --num-callers=10 \
358 --leak-check=full \
359 --leak-resolution=high \
360 ${myextravalgrindleakopts}
361
362memcheck: $(check_PROGRAMS)
Jens Geyer79f988c2014-10-03 20:42:54 +0200363 @for x in $(check_PROGRAMS); \
364 do \
365 $(MAKE) memcheck-$$x; \
366 done
Roger Meier213a6642010-10-27 12:30:11 +0000367
368leakcheck: $(check_PROGRAMS)
Jens Geyer79f988c2014-10-03 20:42:54 +0200369 @for x in $(check_PROGRAMS); \
370 do \
371 $(MAKE) leakcheck-$$x; \
372 done
Roger Meier213a6642010-10-27 12:30:11 +0000373
374memcheck-%: %
Jens Geyer79f988c2014-10-03 20:42:54 +0200375 @echo "*****************************************"; \
376 echo "MEMCHECK: $<"; \
377 echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_MEM_OPTS} ${$<_VALGRIND_MEM_OPTS}"; \
378 $(LIBTOOL) --mode=execute \
379 valgrind \
380 ${VALGRIND_OPTS} \
381 ${VALGRIND_MEM_OPTS} \
382 ${$<_VALGRIND_MEM_OPTS} ./$<
Roger Meier213a6642010-10-27 12:30:11 +0000383
384leakcheck-%: %
Jens Geyer79f988c2014-10-03 20:42:54 +0200385 @echo "*****************************************"; \
386 echo "LEAKCHECK: $<"; \
387 echo "ARGS: ${VALGRIND_OPTS} ${VALGRIND_LEAK_OPTS} ${$<_VALGRIND_LEAK_OPTS}"; \
388 G_SLICE=always-malloc $(LIBTOOL) --mode=execute \
389 valgrind \
390 ${VALGRIND_OPTS} \
391 ${VALGRIND_LEAK_OPTS} \
392 ${$<_VALGRIND_LEAK_OPTS} ./$<
Roger Meier213a6642010-10-27 12:30:11 +0000393
Roger Meier213a6642010-10-27 12:30:11 +0000394clean-local:
Jens Geyer8c5fce92015-07-28 22:59:16 +0200395 $(RM) gen-c_glib/* gen-cpp/*
Roger Meier213a6642010-10-27 12:30:11 +0000396
397CLEANFILES = \
Roger Meier213a6642010-10-27 12:30:11 +0000398 *.bb \
399 *.bbg \
400 *.da \
401 *.gcno \
402 *.gcda \
Roger Meierc1010922010-11-26 10:17:48 +0000403 *.gcov
jfarrellf13e4312015-08-25 00:39:29 -0400404
Thomas63f04582024-03-21 22:51:07 +0900405distdir:
406 $(MAKE) $(AM_MAKEFLAGS) distdir-am
407
jfarrellf13e4312015-08-25 00:39:29 -0400408EXTRA_DIST = \
409 CMakeLists.txt \
410 ContainerTest.thrift
411