mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
Allow the Thrift compiler to be built without the C++ generator.
- Use AX_THRIFT_GEN to make configure support --disable-gen-cpp - Update the compiler Makefile.am to exclude the generator. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665516 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
add584d8f9
commit
22585733e1
@ -9,7 +9,6 @@ thrift_SOURCES = src/thrifty.yy \
|
||||
src/main.cc \
|
||||
src/md5c.c \
|
||||
src/generate/t_generator.cc \
|
||||
src/generate/t_cpp_generator.cc \
|
||||
src/generate/t_java_generator.cc \
|
||||
src/generate/t_php_generator.cc \
|
||||
src/generate/t_py_generator.cc \
|
||||
@ -58,6 +57,10 @@ thrift_SOURCES = src/thrifty.yy \
|
||||
src/generate/t_st_generator.h \
|
||||
src/generate/t_csharp_generator.h
|
||||
|
||||
if THRIFT_GEN_cpp
|
||||
thrift_SOURCES += src/generate/t_cpp_generator.cc
|
||||
endif
|
||||
|
||||
thrift_CXXFLAGS = -Wall -I$(srcdir)/src $(BOOST_CPPFLAGS)
|
||||
thrift_LDFLAGS = -Wall $(BOOST_LDFLAGS)
|
||||
|
||||
|
@ -113,6 +113,9 @@ AC_CHECK_FUNCS([strstr])
|
||||
AC_CHECK_FUNCS([strtol])
|
||||
AC_CHECK_FUNCS([sqrt])
|
||||
|
||||
AX_THRIFT_GEN(cpp, [C++], yes)
|
||||
AM_CONDITIONAL([THRIFT_GEN_cpp], [test "$ax_thrift_gen_cpp" = "yes"])
|
||||
|
||||
AC_CONFIG_HEADERS(config.h:config.hin)
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
|
Loading…
Reference in New Issue
Block a user