From: David Reiss Date: Thu, 27 Mar 2008 21:41:31 +0000 (+0000) Subject: Allow the Thrift compiler to be built without the C# generator. X-Git-Tag: 0.2.0~862 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=ce4f4f0cbdeafa355c282b2dd9fa2161c009128f;p=common%2Fthrift.git Allow the Thrift compiler to be built without the C# generator. - Use AX_THRIFT_GEN to make configure support --disable-gen-csharp - Update the compiler Makefile.am to exclude the generator. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665610 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/Makefile.am b/compiler/cpp/Makefile.am index ab703b3c..fbc7dbd0 100644 --- a/compiler/cpp/Makefile.am +++ b/compiler/cpp/Makefile.am @@ -15,7 +15,6 @@ thrift_SOURCES = src/thrifty.yy \ src/generate/t_xsd_generator.cc \ src/generate/t_perl_generator.cc \ src/generate/t_erl_generator.cc \ - src/generate/t_csharp_generator.cc \ src/globals.h \ src/main.h \ src/platform.h \ @@ -53,6 +52,9 @@ endif if THRIFT_GEN_java thrift_SOURCES += src/generate/t_java_generator.cc endif +if THRIFT_GEN_csharp +thrift_SOURCES += src/generate/t_csharp_generator.cc +endif if THRIFT_GEN_cocoa thrift_SOURCES += src/generate/t_cocoa_generator.cc endif diff --git a/configure.ac b/configure.ac index 6d41505c..e03675ce 100644 --- a/configure.ac +++ b/configure.ac @@ -130,6 +130,8 @@ AX_THRIFT_GEN(cpp, [C++], yes) AM_CONDITIONAL([THRIFT_GEN_cpp], [test "$ax_thrift_gen_cpp" = "yes"]) AX_THRIFT_GEN(java, [Java], yes) AM_CONDITIONAL([THRIFT_GEN_java], [test "$ax_thrift_gen_java" = "yes"]) +AX_THRIFT_GEN(csharp, [C#], yes) +AM_CONDITIONAL([THRIFT_GEN_csharp], [test "$ax_thrift_gen_csharp" = "yes"]) AX_THRIFT_GEN(cocoa, [Cocoa], yes) AM_CONDITIONAL([THRIFT_GEN_cocoa], [test "$ax_thrift_gen_cocoa" = "yes"]) AX_THRIFT_GEN(st, [Smalltalk], yes)