Thrift-1366: Delphi generator, lirbrary and unit test.
Client: delphi
Patch: Kenjiro Fukumitsu
Adding delphi XE generator, lib and unit tests.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1185688 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/main.cc b/compiler/cpp/src/main.cc
index 175dbbe..c12b31a 100644
--- a/compiler/cpp/src/main.cc
+++ b/compiler/cpp/src/main.cc
@@ -184,6 +184,7 @@
bool gen_hs = false;
bool gen_cocoa = false;
bool gen_csharp = false;
+bool gen_delphi = false;
bool gen_st = false;
bool gen_recurse = false;
@@ -1045,6 +1046,8 @@
gen_st = true;
} else if (strcmp(arg, "-csharp") == 0) {
gen_csharp = true;
+ } else if (strcmp(arg, "-delphi") == 0) {
+ gen_delphi = true;
} else if (strcmp(arg, "-cpp_use_include_prefix") == 0) {
g_cpp_use_include_prefix = true;
} else if (strcmp(arg, "-I") == 0) {
@@ -1124,6 +1127,10 @@
pwarning(1, "-csharp is deprecated. Use --gen csharp");
generator_strings.push_back("csharp");
}
+ if (gen_delphi) {
+ pwarning(1, "-delphi is deprecated. Use --gen delphi");
+ generator_strings.push_back("delphi");
+ }
if (gen_py) {
pwarning(1, "-py is deprecated. Use --gen py");
generator_strings.push_back("py");