Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 1 | # |
| 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 Wojniak | a392566 | 2019-07-01 11:07:45 -0700 | [diff] [blame] | 19 | AUTOMAKE_OPTIONS = subdir-objects serial-tests nostdinc |
Roger Meier | 81a1f99 | 2014-10-22 14:09:43 +0200 | [diff] [blame] | 20 | |
Nobuaki Sukegawa | a0c5ab7 | 2015-02-01 00:27:12 +0900 | [diff] [blame] | 21 | BUILT_SOURCES = gen-cpp/ThriftTest.cpp \ |
| 22 | gen-cpp/ThriftTest_types.cpp \ |
| 23 | gen-cpp/ThriftTest_constants.cpp \ |
James E. King, III | 58402ff | 2017-11-17 14:41:46 -0500 | [diff] [blame] | 24 | gen-cpp/SecondService.cpp \ |
Nobuaki Sukegawa | a0c5ab7 | 2015-02-01 00:27:12 +0900 | [diff] [blame] | 25 | gen-cpp/Service.cpp |
| 26 | |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 27 | noinst_LTLIBRARIES = libtestgencpp.la libstresstestgencpp.la |
| 28 | nodist_libtestgencpp_la_SOURCES = \ |
James E. King, III | 58402ff | 2017-11-17 14:41:46 -0500 | [diff] [blame] | 29 | gen-cpp/SecondService.cpp \ |
| 30 | gen-cpp/SecondService.h \ |
| 31 | gen-cpp/SecondService.tcc \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 32 | gen-cpp/ThriftTest_constants.cpp \ |
| 33 | gen-cpp/ThriftTest_constants.h \ |
| 34 | gen-cpp/ThriftTest_types.cpp \ |
| 35 | gen-cpp/ThriftTest_types.h \ |
| 36 | gen-cpp/ThriftTest_types.tcc \ |
| 37 | gen-cpp/ThriftTest.cpp \ |
| 38 | gen-cpp/ThriftTest.h \ |
| 39 | gen-cpp/ThriftTest.tcc \ |
| 40 | src/ThriftTest_extras.cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 41 | |
| 42 | libtestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la |
| 43 | |
| 44 | nodist_libstresstestgencpp_la_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 45 | gen-cpp/StressTest_types.h \ |
| 46 | gen-cpp/Service.cpp \ |
| 47 | gen-cpp/Service.h |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 48 | |
| 49 | libstresstestgencpp_la_LIBADD = $(top_builddir)/lib/cpp/libthrift.la |
| 50 | |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 51 | precross: TestServer TestClient |
| 52 | |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 53 | check_PROGRAMS = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 54 | TestServer \ |
| 55 | TestClient \ |
| 56 | StressTest \ |
| 57 | StressTestNonBlocking |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 58 | |
| 59 | # we currently do not run the testsuite, stop c++ server issue |
| 60 | # TESTS = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 61 | # $(check_PROGRAMS) |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 62 | |
| 63 | TestServer_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 64 | src/TestServer.cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 65 | |
| 66 | TestServer_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 67 | libtestgencpp.la \ |
| 68 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 69 | $(top_builddir)/lib/cpp/libthriftz.la \ |
| 70 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
Dave Watson | 792db4e | 2015-01-16 11:22:01 -0800 | [diff] [blame] | 71 | -levent -lboost_program_options -lboost_system -lboost_filesystem $(ZLIB_LIBS) |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 72 | |
| 73 | TestClient_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 74 | src/TestClient.cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 75 | |
| 76 | TestClient_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 77 | libtestgencpp.la \ |
| 78 | $(top_builddir)/lib/cpp/libthrift.la \ |
| 79 | $(top_builddir)/lib/cpp/libthriftz.la \ |
| 80 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
Dave Watson | 792db4e | 2015-01-16 11:22:01 -0800 | [diff] [blame] | 81 | -levent -lboost_program_options -lboost_system -lboost_filesystem $(ZLIB_LIBS) |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 82 | |
| 83 | StressTest_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 84 | src/StressTest.cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 85 | |
| 86 | StressTest_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 87 | libstresstestgencpp.la \ |
| 88 | $(top_builddir)/lib/cpp/libthrift.la |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 89 | |
| 90 | StressTestNonBlocking_SOURCES = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 91 | src/StressTestNonBlocking.cpp |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 92 | |
| 93 | StressTestNonBlocking_LDADD = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 94 | libstresstestgencpp.la \ |
| 95 | $(top_builddir)/lib/cpp/libthriftnb.la \ |
| 96 | -levent |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 97 | # |
| 98 | # Common thrift code generation rules |
| 99 | # |
James E. King, III | 58402ff | 2017-11-17 14:41:46 -0500 | [diff] [blame] | 100 | gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/SecondService.cpp gen-cpp/SecondService.h gen-cpp/SecondService.tcc: $(top_srcdir)/test/ThriftTest.thrift $(THRIFT) |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 101 | $(THRIFT) --gen cpp:templates,cob_style -r $< |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 102 | |
zeshuai007 | 57c2507 | 2020-04-09 11:17:05 +0800 | [diff] [blame] | 103 | gen-cpp/Service.cpp: $(top_srcdir)/test/StressTest.thrift $(THRIFT) |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 104 | $(THRIFT) --gen cpp $< |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 105 | |
Zezeng Wang | 371d92f | 2020-04-28 14:23:15 +0800 | [diff] [blame] | 106 | gen-cpp/SpecificNameTest_types.cpp gen-cpp/EchoService.cpp: $(top_srcdir)/test/SpecificName.thrift $(THRIFT) |
| 107 | $(THRIFT) --gen cpp $< |
| 108 | |
Kevin Wojniak | a392566 | 2019-07-01 11:07:45 -0700 | [diff] [blame] | 109 | AM_CPPFLAGS = $(BOOST_CPPFLAGS) $(LIBEVENT_CPPFLAGS) -I$(top_srcdir)/lib/cpp/src -Igen-cpp -I. |
James E. King, III | d7142b7 | 2017-09-01 13:00:36 -0700 | [diff] [blame] | 110 | AM_CXXFLAGS = -Wall -Wextra -pedantic -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS |
Roger Meier | 051ea1c | 2014-12-20 22:43:24 +0100 | [diff] [blame] | 111 | AM_LDFLAGS = $(BOOST_LDFLAGS) $(LIBEVENT_LDFLAGS) $(ZLIB_LIBS) |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 112 | |
| 113 | clean-local: |
James E. King III | b96c438 | 2019-01-24 17:45:07 -0500 | [diff] [blame] | 114 | $(RM) -r gen-cpp/ |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 115 | |
Konrad Grochowski | 16a23a6 | 2014-11-13 15:33:38 +0100 | [diff] [blame] | 116 | style-local: |
| 117 | $(CPPSTYLE_CMD) |
| 118 | |
Roger Meier | d3b9dca | 2011-06-24 14:01:10 +0000 | [diff] [blame] | 119 | EXTRA_DIST = \ |
Jens Geyer | 79f988c | 2014-10-03 20:42:54 +0200 | [diff] [blame] | 120 | src/TestClient.cpp \ |
| 121 | src/TestServer.cpp \ |
| 122 | src/StressTest.cpp \ |
James E. King, III | ab8ff1a | 2017-02-15 14:12:37 -0500 | [diff] [blame] | 123 | src/StressTestNonBlocking.cpp |