blob: 29ef1bd94ca1d126d561772b9932bdc1d82883a1 [file] [log] [blame]
David Reissea2cba82009-03-30 21:35:00 +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#
Todd Lipcon53ae9f32009-12-07 00:42:38 +000019#
20# Contains some contributions under the Thrift Software License.
21# Please see doc/old-thrift-license.txt in the Thrift distribution for
22# details.
David Reissea2cba82009-03-30 21:35:00 +000023
Kevin Wojniaka3925662019-07-01 11:07:45 -070024AUTOMAKE_OPTIONS = subdir-objects nostdinc
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090025
James E. King III29f7f8f2019-01-26 09:15:19 -050026SUBDIRS = src .
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090027if WITH_TESTS
28SUBDIRS += test
29endif
Mark Sleeeb0d0242007-01-25 07:58:55 +000030
31bin_PROGRAMS = thrift
32
33thrift_OBJDIR = obj
34
James E. King III29f7f8f2019-01-26 09:15:19 -050035thrift_SOURCES = src/thrift/audit/t_audit.cpp \
36 src/thrift/audit/t_audit.h \
dtmuller052abc32016-07-26 11:58:28 +020037 src/thrift/common.cc \
James E. King III29f7f8f2019-01-26 09:15:19 -050038 src/thrift/common.h \
dtmuller052abc32016-07-26 11:58:28 +020039 src/thrift/generate/t_generator.cc \
James E. King III29f7f8f2019-01-26 09:15:19 -050040 src/thrift/generate/t_generator.h \
dtmuller052abc32016-07-26 11:58:28 +020041 src/thrift/generate/t_generator_registry.h \
James E. King III29f7f8f2019-01-26 09:15:19 -050042 src/thrift/generate/t_html_generator.h \
43 src/thrift/generate/t_oop_generator.h \
dtmuller052abc32016-07-26 11:58:28 +020044 src/thrift/globals.h \
dtmuller052abc32016-07-26 11:58:28 +020045 src/thrift/logging.h \
James E. King III29f7f8f2019-01-26 09:15:19 -050046 src/thrift/main.cc \
47 src/thrift/main.h \
Jens Geyer71997412019-10-19 21:22:59 +020048 src/thrift/version.h \
James E. King III29f7f8f2019-01-26 09:15:19 -050049 src/thrift/parse/parse.cc \
dtmuller052abc32016-07-26 11:58:28 +020050 src/thrift/parse/t_base_type.h \
dtmuller052abc32016-07-26 11:58:28 +020051 src/thrift/parse/t_const.h \
52 src/thrift/parse/t_const_value.h \
James E. King III29f7f8f2019-01-26 09:15:19 -050053 src/thrift/parse/t_container.h \
54 src/thrift/parse/t_doc.h \
55 src/thrift/parse/t_enum.h \
56 src/thrift/parse/t_enum_value.h \
57 src/thrift/parse/t_field.h \
58 src/thrift/parse/t_function.h \
59 src/thrift/parse/t_list.h \
60 src/thrift/parse/t_map.h \
61 src/thrift/parse/t_program.h \
62 src/thrift/parse/t_scope.h \
63 src/thrift/parse/t_service.h \
64 src/thrift/parse/t_set.h \
65 src/thrift/parse/t_struct.h \
66 src/thrift/parse/t_type.h \
67 src/thrift/parse/t_typedef.cc \
68 src/thrift/parse/t_typedef.h \
Mustafa Senol Cosar3f0d4442019-03-01 18:57:09 +030069 src/thrift/platform.h
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090070
Jake Farrelldec8c542011-09-21 00:15:27 +000071# Specific client generator source
Jens Geyercb094b82021-02-13 15:05:40 +010072thrift_SOURCES += src/thrift/generate/t_c_glib_generator.cc \
Max-Gerd Retzlaff04057ac2022-08-23 17:38:34 +020073 src/thrift/generate/t_cl_generator.cc \
dtmuller052abc32016-07-26 11:58:28 +020074 src/thrift/generate/t_cpp_generator.cc \
James E. King III234fb472019-01-13 23:19:18 -050075 src/thrift/generate/t_d_generator.cc \
76 src/thrift/generate/t_dart_generator.cc \
dtmuller052abc32016-07-26 11:58:28 +020077 src/thrift/generate/t_delphi_generator.cc \
James E. King III234fb472019-01-13 23:19:18 -050078 src/thrift/generate/t_erl_generator.cc \
dtmuller052abc32016-07-26 11:58:28 +020079 src/thrift/generate/t_go_generator.cc \
Simon Wangd5927a92021-09-13 19:50:45 +080080 src/thrift/generate/t_go_generator.h \
dtmuller052abc32016-07-26 11:58:28 +020081 src/thrift/generate/t_gv_generator.cc \
James E. King III234fb472019-01-13 23:19:18 -050082 src/thrift/generate/t_haxe_generator.cc \
James E. King III234fb472019-01-13 23:19:18 -050083 src/thrift/generate/t_html_generator.cc \
Kashirin Alex330482b2020-09-22 05:38:52 +020084 src/thrift/generate/t_markdown_generator.cc \
James E. King III234fb472019-01-13 23:19:18 -050085 src/thrift/generate/t_java_generator.cc \
86 src/thrift/generate/t_javame_generator.cc \
87 src/thrift/generate/t_js_generator.cc \
88 src/thrift/generate/t_json_generator.cc \
Jiayu Liu49b2d6b2022-04-06 16:49:09 +080089 src/thrift/generate/t_kotlin_generator.cc \
Allen George8b96bfb2016-11-02 08:01:08 -040090 src/thrift/generate/t_lua_generator.cc \
Jens Geyeraa0c8b32019-01-28 23:27:45 +010091 src/thrift/generate/t_netstd_generator.cc \
92 src/thrift/generate/t_netstd_generator.h \
James E. King III234fb472019-01-13 23:19:18 -050093 src/thrift/generate/t_ocaml_generator.cc \
94 src/thrift/generate/t_perl_generator.cc \
95 src/thrift/generate/t_php_generator.cc \
96 src/thrift/generate/t_py_generator.cc \
97 src/thrift/generate/t_rb_generator.cc \
Tomek Kurcze93a9012017-09-19 09:16:43 +020098 src/thrift/generate/t_rs_generator.cc \
James E. King III234fb472019-01-13 23:19:18 -050099 src/thrift/generate/t_st_generator.cc \
100 src/thrift/generate/t_swift_generator.cc \
101 src/thrift/generate/t_xml_generator.cc \
Simon Wangd5927a92021-09-13 19:50:45 +0800102 src/thrift/generate/t_xsd_generator.cc \
103 src/thrift/generate/validator_parser.cc \
104 src/thrift/generate/validator_parser.h \
105 src/thrift/generate/go_validator_generator.cc \
106 src/thrift/generate/go_validator_generator.h
David Reiss22585732008-02-27 01:55:33 +0000107
Christian Lavoieaf65f1b2010-11-24 21:58:05 +0000108thrift_CPPFLAGS = -I$(srcdir)/src
James E. King, III0ad20bd2017-09-30 15:44:16 -0700109thrift_CXXFLAGS = -Wall -Wextra -pedantic -Werror
dtmuller052abc32016-07-26 11:58:28 +0200110thrift_LDADD = @LEXLIB@ src/thrift/libparse.a
Mark Sleeeb0d0242007-01-25 07:58:55 +0000111
Jake Farrelle0c53162011-11-16 12:58:36 +0000112WINDOWS_DIST = \
113 compiler.sln \
114 compiler.vcxproj \
Roger Meierdb372ac2014-06-16 07:32:12 +0200115 compiler.vcxproj.filters
Jake Farrelle0c53162011-11-16 12:58:36 +0000116
Thomas63f04582024-03-21 22:51:07 +0900117distdir:
118 $(MAKE) $(AM_MAKEFLAGS) distdir-am
119
Jake Farrelle0c53162011-11-16 12:58:36 +0000120EXTRA_DIST = \
jfarrellf13e4312015-08-25 00:39:29 -0400121 coding_standards.md \
Roger Meierdb372ac2014-06-16 07:32:12 +0200122 README.md \
jfarrell8fd8c632014-07-10 09:14:51 -0400123 CMakeLists.txt \
Nobuaki Sukegawa59cb6662016-10-19 12:02:39 +0900124 test \
Jens Geyer2ef01132021-02-04 22:41:50 +0100125 tests \
Jake Farrelle0c53162011-11-16 12:58:36 +0000126 $(WINDOWS_DIST)
David Reissb72d19f2007-09-18 19:46:00 +0000127
Jens Geyer71997412019-10-19 21:22:59 +0200128#clean-local:
129# $(RM) version.h -- do not delete, we need it
David Reissdd08f6d2008-06-30 20:24:24 +0000130
dtmuller052abc32016-07-26 11:58:28 +0200131src/thrift/main.cc: src/thrift/version.h
Konrad Grochowski16a23a62014-11-13 15:33:38 +0100132
133style-local:
James E. King III29f7f8f2019-01-26 09:15:19 -0500134 $(CPPSTYLE_CMD)