summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorreggie@big_geek. <>2006-03-27 15:19:56 -0600
committerreggie@big_geek. <>2006-03-27 15:19:56 -0600
commit7f674749b8e29f4914d3809f49d19d439fc3159f (patch)
tree148837db9e4d998afbe71c07ee36b5f6608f8191 /win
parent2d14a5e5606c55fd0b87947b5886847aa413be5c (diff)
downloadmariadb-git-7f674749b8e29f4914d3809f49d19d439fc3159f.tar.gz
removed handlerton-win.cc
now using CONFIGURE_FILE and INCLUDE to generate handlerton.cc and to set the definitions based on the storage engines given on the command line
Diffstat (limited to 'win')
-rw-r--r--win/configure.js22
1 files changed, 21 insertions, 1 deletions
diff --git a/win/configure.js b/win/configure.js
index b1c269d4eed..263b4fe7da0 100644
--- a/win/configure.js
+++ b/win/configure.js
@@ -14,7 +14,27 @@ try
var configfile = fso.CreateTextFile("win\\configure.data", true);
for (i=0; i < args.Count(); i++)
{
- configfile.WriteLine(args.Item(i));
+ var parts = args.Item(i).split('=');
+ switch (parts[0])
+ {
+ case "WITH_ARCHIVE_STORAGE_ENGINE":
+ case "WITH_BERKELEY_STORAGE_ENGINE":
+ case "WITH_BLACKHOLE_STORAGE_ENGINE":
+ case "WITH_EXAMPLE_STORAGE_ENGINE":
+ case "WITH_FEDERATED_STORAGE_ENGINE":
+ case "WITH_INNOBASE_STORAGE_ENGINE":
+ case "WITH_PARTITION_STORAGE_ENGINE":
+ case "__NT__":
+ line = "SET (" + args.Item(i) + " TRUE)";
+ break;
+ case "MYSQL_SERVER_SUFFIX":
+ case "COMPILATION_COMMENT":
+ case "MYSQL_TCP_PORT":
+ line = "SET (" + parts[0] + " " + parts[1] + ")";
+ break;
+ }
+
+ configfile.WriteLine(line);
}
configfile.Close();