From: David Reiss Date: Tue, 17 Feb 2009 20:28:13 +0000 (+0000) Subject: Allow the Thrift compiler to be built without the XSD generator. X-Git-Tag: 0.2.0~295 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=782cb67a3b90c85efeb6d23badab9ddbe18987b6;p=common%2Fthrift.git Allow the Thrift compiler to be built without the XSD generator. - Use AX_THRIFT_GEN to make configure support --disable-gen-xsd - Update the compiler Makefile.am to exclude the generator. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745236 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/Makefile.am b/compiler/cpp/Makefile.am index fe2a2d70..4fc46372 100644 --- a/compiler/cpp/Makefile.am +++ b/compiler/cpp/Makefile.am @@ -11,7 +11,6 @@ thrift_SOURCES = src/thrifty.yy \ src/md5.c \ src/generate/t_generator.cc \ src/generate/t_php_generator.cc \ - src/generate/t_xsd_generator.cc \ src/globals.h \ src/main.h \ src/platform.h \ @@ -71,6 +70,9 @@ endif if THRIFT_GEN_hs thrift_SOURCES += src/generate/t_hs_generator.cc endif +if THRIFT_GEN_xsd +thrift_SOURCES += src/generate/t_xsd_generator.cc +endif if THRIFT_GEN_html thrift_SOURCES += src/generate/t_html_generator.cc endif diff --git a/configure.ac b/configure.ac index 9a748c5a..69e292c5 100644 --- a/configure.ac +++ b/configure.ac @@ -172,6 +172,8 @@ AX_THRIFT_GEN(ocaml, [OCaml], yes) AM_CONDITIONAL([THRIFT_GEN_ocaml], [test "$ax_thrift_gen_ocaml" = "yes"]) AX_THRIFT_GEN(hs, [Haskell], yes) AM_CONDITIONAL([THRIFT_GEN_hs], [test "$ax_thrift_gen_hs" = "yes"]) +AX_THRIFT_GEN(xsd, [XSD], yes) +AM_CONDITIONAL([THRIFT_GEN_xsd], [test "$ax_thrift_gen_xsd" = "yes"]) AX_THRIFT_GEN(html, [HTML], yes) AM_CONDITIONAL([THRIFT_GEN_html], [test "$ax_thrift_gen_html" = "yes"])