blob: 7619fb4cbbb0c4bb8feb3a81507f22254e8cd36f [file] [log] [blame]
Roger Meier213a6642010-10-27 12:30:11 +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 = serial-tests nostdinc
Roger Meier213a6642010-10-27 12:30:11 +000020SUBDIRS = . test
21
22pkgconfigdir = $(libdir)/pkgconfig
23
24lib_LTLIBRARIES = libthrift_c_glib.la
25pkgconfig_DATA = thrift_c_glib.pc
26
Simon South31186c42015-08-01 17:00:50 +000027AM_CPPFLAGS = -Isrc -I src/thrift/c_glib
Simon Southb62093d2015-08-01 17:05:08 +000028AM_CFLAGS = -Wall -Wextra -pedantic
Roger Meier213a6642010-10-27 12:30:11 +000029
30# Define the source files for the module
31
Roger Meiere3da7682013-01-11 11:41:53 +010032libthrift_c_glib_la_SOURCES = src/thrift/c_glib/thrift.c \
33 src/thrift/c_glib/thrift_struct.c \
34 src/thrift/c_glib/thrift_application_exception.c \
zeshuai007c80b8bb2020-07-23 09:43:41 +080035 src/thrift/c_glib/thrift_configuration.c \
Roger Meiere3da7682013-01-11 11:41:53 +010036 src/thrift/c_glib/processor/thrift_processor.c \
Roger Meier63243c62014-09-29 20:29:58 +020037 src/thrift/c_glib/processor/thrift_dispatch_processor.c \
Gonzalo Aguilar Delgado87ad2bc2017-09-15 12:26:02 +020038 src/thrift/c_glib/processor/thrift_multiplexed_processor.c \
Roger Meiere3da7682013-01-11 11:41:53 +010039 src/thrift/c_glib/protocol/thrift_protocol.c \
Gonzalo Aguilar Delgadobc0082e2016-03-04 13:16:22 +010040 src/thrift/c_glib/protocol/thrift_protocol_decorator.c \
Roger Meiere3da7682013-01-11 11:41:53 +010041 src/thrift/c_glib/protocol/thrift_protocol_factory.c \
42 src/thrift/c_glib/protocol/thrift_binary_protocol.c \
Gonzalo Aguilar Delgado87ad2bc2017-09-15 12:26:02 +020043 src/thrift/c_glib/protocol/thrift_stored_message_protocol.c \
Gonzalo Aguilar Delgadobc0082e2016-03-04 13:16:22 +010044 src/thrift/c_glib/protocol/thrift_multiplexed_protocol.c \
Roger Meiere3da7682013-01-11 11:41:53 +010045 src/thrift/c_glib/protocol/thrift_binary_protocol_factory.c \
Chandler May6dde90b2016-01-10 06:01:10 +000046 src/thrift/c_glib/protocol/thrift_compact_protocol.c \
47 src/thrift/c_glib/protocol/thrift_compact_protocol_factory.c \
Roger Meiere3da7682013-01-11 11:41:53 +010048 src/thrift/c_glib/transport/thrift_transport.c \
49 src/thrift/c_glib/transport/thrift_transport_factory.c \
Roger Meier63243c62014-09-29 20:29:58 +020050 src/thrift/c_glib/transport/thrift_buffered_transport_factory.c \
51 src/thrift/c_glib/transport/thrift_framed_transport_factory.c \
Roger Meiere3da7682013-01-11 11:41:53 +010052 src/thrift/c_glib/transport/thrift_socket.c \
James E. King, III36628a22017-02-13 15:25:41 -050053 src/thrift/c_glib/transport/thrift_ssl_socket.c \
Roger Meiere3da7682013-01-11 11:41:53 +010054 src/thrift/c_glib/transport/thrift_server_transport.c \
55 src/thrift/c_glib/transport/thrift_server_socket.c \
56 src/thrift/c_glib/transport/thrift_buffered_transport.c \
Simon Southe71f20c2016-02-11 06:52:37 -050057 src/thrift/c_glib/transport/thrift_fd_transport.c \
Roger Meiere3da7682013-01-11 11:41:53 +010058 src/thrift/c_glib/transport/thrift_framed_transport.c \
59 src/thrift/c_glib/transport/thrift_memory_buffer.c \
60 src/thrift/c_glib/server/thrift_server.c \
61 src/thrift/c_glib/server/thrift_simple_server.c
Roger Meier213a6642010-10-27 12:30:11 +000062
Kevin Wojniaka3925662019-07-01 11:07:45 -070063libthrift_c_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) $(OPENSSL_INCLUDES) -I$(top_builddir)/lib/c_glib/src/thrift
Gonzalo Aguilar Delgadocbd97592017-05-23 17:22:44 +020064libthrift_c_glib_la_LDFLAGS = $(AM_LDFLAGS) $(GLIB_LIBS) $(GOBJECT_LIBS) $(OPENSSL_LDFLAGS) $(OPENSSL_LIBS)
Roger Meier213a6642010-10-27 12:30:11 +000065
Jake Farrell363f6d42012-03-02 02:50:50 +000066include_thriftdir = $(includedir)/thrift/c_glib
Roger Meier213a6642010-10-27 12:30:11 +000067include_thrift_HEADERS = \
68 $(top_builddir)/config.h \
Roger Meiere3da7682013-01-11 11:41:53 +010069 src/thrift/c_glib/thrift.h \
70 src/thrift/c_glib/thrift_application_exception.h \
zeshuai007c80b8bb2020-07-23 09:43:41 +080071 src/thrift/c_glib/thrift_struct.h \
72 src/thrift/c_glib/thrift_configuration.h
Roger Meier213a6642010-10-27 12:30:11 +000073
74include_protocoldir = $(include_thriftdir)/protocol
Roger Meiere3da7682013-01-11 11:41:53 +010075include_protocol_HEADERS = src/thrift/c_glib/protocol/thrift_protocol.h \
Gonzalo Aguilar Delgadobc0082e2016-03-04 13:16:22 +010076 src/thrift/c_glib/protocol/thrift_protocol_decorator.h \
Roger Meiere3da7682013-01-11 11:41:53 +010077 src/thrift/c_glib/protocol/thrift_protocol_factory.h \
78 src/thrift/c_glib/protocol/thrift_binary_protocol.h \
Chandler May6dde90b2016-01-10 06:01:10 +000079 src/thrift/c_glib/protocol/thrift_binary_protocol_factory.h \
80 src/thrift/c_glib/protocol/thrift_compact_protocol.h \
Gonzalo Aguilar Delgadobc0082e2016-03-04 13:16:22 +010081 src/thrift/c_glib/protocol/thrift_compact_protocol_factory.h \
Gonzalo Aguilar Delgado87ad2bc2017-09-15 12:26:02 +020082 src/thrift/c_glib/protocol/thrift_multiplexed_protocol.h \
83 src/thrift/c_glib/protocol/thrift_stored_message_protocol.h
84
Roger Meier213a6642010-10-27 12:30:11 +000085
86include_transportdir = $(include_thriftdir)/transport
Roger Meiere3da7682013-01-11 11:41:53 +010087include_transport_HEADERS = src/thrift/c_glib/transport/thrift_buffered_transport.h \
Simon Southe71f20c2016-02-11 06:52:37 -050088 src/thrift/c_glib/transport/thrift_fd_transport.h \
Roger Meiere3da7682013-01-11 11:41:53 +010089 src/thrift/c_glib/transport/thrift_framed_transport.h \
90 src/thrift/c_glib/transport/thrift_memory_buffer.h \
91 src/thrift/c_glib/transport/thrift_server_socket.h \
92 src/thrift/c_glib/transport/thrift_server_transport.h \
93 src/thrift/c_glib/transport/thrift_socket.h \
James E. King, III36628a22017-02-13 15:25:41 -050094 src/thrift/c_glib/transport/thrift_platform_socket.h \
95 src/thrift/c_glib/transport/thrift_ssl_socket.h \
Roger Meiere3da7682013-01-11 11:41:53 +010096 src/thrift/c_glib/transport/thrift_transport.h \
Roger Meier63243c62014-09-29 20:29:58 +020097 src/thrift/c_glib/transport/thrift_transport_factory.h \
98 src/thrift/c_glib/transport/thrift_buffered_transport_factory.h \
99 src/thrift/c_glib/transport/thrift_framed_transport_factory.h
Roger Meier213a6642010-10-27 12:30:11 +0000100
101include_serverdir = $(include_thriftdir)/server
Roger Meiere3da7682013-01-11 11:41:53 +0100102include_server_HEADERS = src/thrift/c_glib/server/thrift_server.h \
103 src/thrift/c_glib/server/thrift_simple_server.h
Roger Meier213a6642010-10-27 12:30:11 +0000104
105include_processordir = $(include_thriftdir)/processor
Roger Meier63243c62014-09-29 20:29:58 +0200106include_processor_HEADERS = src/thrift/c_glib/processor/thrift_processor.h \
Gonzalo Aguilar Delgado87ad2bc2017-09-15 12:26:02 +0200107 src/thrift/c_glib/processor/thrift_dispatch_processor.h \
108 src/thrift/c_glib/processor/thrift_multiplexed_processor.h
Roger Meier213a6642010-10-27 12:30:11 +0000109
110
111EXTRA_DIST = \
jfarrellf13e4312015-08-25 00:39:29 -0400112 CMakeLists.txt \
113 coding_standards.md \
Roger Meier16fcad02014-03-16 21:12:11 +0100114 README.md \
Jake Farrelle0c53162011-11-16 12:58:36 +0000115 test/glib.suppress \
Roger Meier213a6642010-10-27 12:30:11 +0000116 thrift_c_glib.pc.in
117
118CLEANFILES = \
119 *.gcno \
120 *.gcda