From: David Reiss Date: Fri, 20 Mar 2009 07:02:52 +0000 (+0000) Subject: Get a few more generated files into release tarballs X-Git-Tag: 0.2.0~247 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=ade070ffdf02ff75c9a083dfb51aa6dd47464344;p=common%2Fthrift.git Get a few more generated files into release tarballs The generated code for the C++ automated tests is all put into one (non-installed) library. This change updates the list of sources for the library to (1) eliminate sources that aren't used and (1) include the relevant header files. The headers aren't acutally built into the library, but listing them causes them to be included in the release tarball. They also had to be added to the code-generating rules so make would know how to build them. Now "make check" works out of the box in release tarballs (after configure). git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@756347 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/Makefile.am b/test/Makefile.am index 288ea378..b1092d55 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -13,12 +13,10 @@ libtestgencpp_la_SOURCES = \ gen-cpp/DebugProtoTest_types.cpp \ gen-cpp/OptionalRequiredTest_types.cpp \ gen-cpp/DebugProtoTest_types.cpp \ - gen-cpp/Service.cpp \ - gen-cpp/StressTest_types.cpp \ - gen-cpp/SecondService.cpp \ - gen-cpp/ThriftTest_constants.cpp \ - gen-cpp/ThriftTest.cpp \ gen-cpp/ThriftTest_types.cpp \ + gen-cpp/DebugProtoTest_types.h \ + gen-cpp/OptionalRequiredTest_types.h \ + gen-cpp/ThriftTest_types.h \ ThriftTest_extras.cpp \ DebugProtoTest_extras.cpp @@ -99,16 +97,16 @@ OptionalRequiredTest_LDADD = libtestgencpp.la # THRIFT = $(top_builddir)/compiler/cpp/thrift -gen-cpp/DebugProtoTest_types.cpp: DebugProtoTest.thrift +gen-cpp/DebugProtoTest_types.cpp gen-cpp/DebugProtoTest_types.h: DebugProtoTest.thrift $(THRIFT) --gen cpp:dense $< -gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift +gen-cpp/OptionalRequiredTest_types.cpp gen-cpp/OptionalRequiredTest_types.h: OptionalRequiredTest.thrift $(THRIFT) --gen cpp:dense $< gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift $(THRIFT) --gen cpp:dense $< -gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp: ThriftTest.thrift +gen-cpp/SecondService.cpp gen-cpp/ThriftTest_constants.cpp gen-cpp/ThriftTest.cpp gen-cpp/ThriftTest_types.cpp gen-cpp/ThriftTest_types.h: ThriftTest.thrift $(THRIFT) --gen cpp:dense $< INCLUDES = \