mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
4ce2874fd5
Limited reflection is deprecated, and it is slowing down compilation. This change will disable generation of static reflection by default, but it adds a command line argument to re-enable it. Tested by running make check and building the C++ test client and server. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665520 13f79535-47bb-0310-9956-ffa450edef68
85 lines
1.5 KiB
Makefile
85 lines
1.5 KiB
Makefile
SUBDIRS = py
|
|
|
|
if ENABLE_JAVA
|
|
SUBDIRS += java
|
|
endif
|
|
|
|
check_PROGRAMS = \
|
|
DebugProtoTest \
|
|
JSONProtoTest \
|
|
OptionalRequiredTest \
|
|
ReflectionTest
|
|
|
|
TESTS = \
|
|
$(check_PROGRAMS)
|
|
|
|
|
|
#
|
|
# DebugProtoTest
|
|
#
|
|
DebugProtoTest_SOURCES = \
|
|
gen-cpp/DebugProtoTest_types.cpp \
|
|
DebugProtoTest.cpp
|
|
|
|
DebugProtoTest_LDADD = \
|
|
$(top_srcdir)/lib/cpp/libthrift.la
|
|
|
|
|
|
#
|
|
# JSONProtoTest
|
|
#
|
|
JSONProtoTest_SOURCES = \
|
|
gen-cpp/DebugProtoTest_types.cpp \
|
|
JSONProtoTest.cpp
|
|
|
|
JSONProtoTest_LDADD = \
|
|
$(top_srcdir)/lib/cpp/libthrift.la
|
|
|
|
#
|
|
# OptionalRequiredTest
|
|
#
|
|
OptionalRequiredTest_SOURCES = \
|
|
gen-cpp/OptionalRequiredTest_types.cpp \
|
|
OptionalRequiredTest.cpp
|
|
|
|
OptionalRequiredTest_LDADD = \
|
|
$(top_srcdir)/lib/cpp/libthrift.la
|
|
|
|
|
|
#
|
|
# ReflectionTest
|
|
#
|
|
ReflectionTest_SOURCES = \
|
|
gen-cpp/DebugProtoTest_types.cpp \
|
|
gen-cpp/PartiallyReflectable.cpp \
|
|
gen-cpp/Service.cpp \
|
|
gen-cpp/StressTest_types.cpp \
|
|
ReflectionTest.cpp
|
|
|
|
ReflectionTest_LDADD = \
|
|
$(top_srcdir)/lib/cpp/libthrift.la
|
|
|
|
|
|
#
|
|
# Common thrift code generation rules
|
|
#
|
|
THRIFT = $(top_srcdir)/compiler/cpp/thrift
|
|
|
|
gen-cpp/DebugProtoTest_types.cpp gen-cpp/PartiallyReflectable.cpp: DebugProtoTest.thrift
|
|
$(THRIFT) --gen cpp:dense,reflection_limited $<
|
|
|
|
gen-cpp/OptionalRequiredTest_types.cpp: OptionalRequiredTest.thrift
|
|
$(THRIFT) --gen cpp:dense $<
|
|
|
|
gen-cpp/Service.cpp gen-cpp/StressTest_types.cpp: StressTest.thrift
|
|
$(THRIFT) --gen cpp:dense,reflection_limited $<
|
|
|
|
|
|
INCLUDES = \
|
|
-I$(top_srcdir)/lib/cpp/src
|
|
|
|
AM_CPPFLAGS = $(BOOST_CPPFLAGS)
|
|
|
|
clean-local:
|
|
$(RM) -r gen-cpp
|