blob: b7fc91d359f70bb8fbb8952783a66bbee9be4860 [file] [log] [blame]
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +09001#
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#
20# Contains some contributions under the Thrift Software License.
21# Please see doc/old-thrift-license.txt in the Thrift distribution for
22# details.
23
24AUTOMAKE_OPTIONS = subdir-objects serial-tests
25
26AM_CPPFLAGS = $(BOOST_CPPFLAGS) -I$(top_srcdir)/compiler/cpp/src
27AM_LDFLAGS = $(BOOST_LDFLAGS)
28AM_CXXFLAGS = -Wall -Wextra -pedantic
29
30if WITH_PLUGIN
31check_PROGRAMS = plugintest
32
33noinst_PROGRAMS = thrift-gen-mycpp
34
Chet Murthy6ae40232017-11-26 21:42:26 -080035all-local: thrift-gen-bincat
36
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090037AM_CPPFLAGS += -I$(top_srcdir)/lib/cpp/src -I$(top_builddir)/lib/cpp/src
38
39plugintest_SOURCES = plugin/conversion_test.cc
40plugintest_LDADD = $(top_builddir)/compiler/cpp/libthriftc.la
41
42thrift_gen_mycpp_SOURCES = plugin/cpp_plugin.cc \
43 plugin/t_cpp_generator.cc
44thrift_gen_mycpp_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/compiler/cpp -I$(top_srcdir)/compiler/cpp/src/generate
45thrift_gen_mycpp_LDADD = $(top_builddir)/compiler/cpp/libthriftc.la
46
47cpp_plugin_test.sh: thrift-gen-mycpp
Chet Murthy6ae40232017-11-26 21:42:26 -080048
49thrift-gen-bincat:
50 cp bincat.sh $@
51 chmod 755 $@
52
53plugin_stability_test.sh: thrift-gen-bincat
54
55TESTS = $(check_PROGRAMS) cpp_plugin_test.sh plugin_stability_test.sh
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090056
57clean-local:
Chet Murthy6ae40232017-11-26 21:42:26 -080058 $(RM) -rf gen-cpp gen-mycpp gen-bincat thrift-gen-bincat
Nobuaki Sukegawa11da87e2016-09-10 14:02:19 +090059
60endif