summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorunknown <knielsen@mysql.com>2006-03-28 10:07:03 +0200
committerunknown <knielsen@mysql.com>2006-03-28 10:07:03 +0200
commitfa780d44c64df04bb78d097e984b40fdf11edc84 (patch)
tree6724cacb8e05bc9947fee00d5a2dd6c47605ce66 /win
parent73970addd82584a9ec6ad4c95ba5d54dfe0f640c (diff)
parent421ae80b0ccbfa33856fe1f079bc3cd6acf44175 (diff)
downloadmariadb-git-fa780d44c64df04bb78d097e984b40fdf11edc84.tar.gz
Manual merge.
configure.in: Auto merged mysql-test/mysql-test-run.pl: Auto merged sql/mysqld.cc: Auto merged sql/sql_insert.cc: Auto merged
Diffstat (limited to 'win')
-rw-r--r--win/Makefile.am21
-rw-r--r--win/README35
-rw-r--r--win/config-handlerton.js29
-rw-r--r--win/config-version.js89
4 files changed, 154 insertions, 20 deletions
diff --git a/win/Makefile.am b/win/Makefile.am
new file mode 100644
index 00000000000..8442214bb97
--- /dev/null
+++ b/win/Makefile.am
@@ -0,0 +1,21 @@
+# Copyright (C) 2006 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+## Process this file with automake to create Makefile.in
+EXTRA_DIST = build-vs71.bat build-vs8.bat config-handlerton.js configure.js config-version.js README
+
+# Don't update the files from bitkeeper
+%::SCCS/s.%
diff --git a/win/README b/win/README
index 27c7e5c5762..dcd65516abe 100644
--- a/win/README
+++ b/win/README
@@ -34,12 +34,25 @@ Clone your bk tree to any location you like.
Step 4
------
From the root of your bk clone, execute the command: win\configure <options>.
-The options right now are WITH_INNODB and WITH_PARTITION. So the command line
-would look like:
-
-win\configure WITH_INNODB WITH_PARTITION
-
-These are the only two flags supported right now. Others will come later.
+The options right now are
+
+ WITH_INNOBASE_STORAGE_ENGINE Enable particular storage engines
+ WITH_PARTITION_STORAGE_ENGINE
+ WITH_ARCHIVE_STORAGE_ENGINE
+ WITH_BERKELEY_STORAGE_ENGINE
+ WITH_BLACKHOLE_STORAGE_ENGINE
+ WITH_EXAMPLE_STORAGE_ENGINE
+ WITH_FEDERATED_STORAGE_ENGINE
+ WITH_INNOBASE_STORAGE_ENGINE
+ __NT__ Enable named pipe support
+ MYSQL_SERVER_SUFFIX=<suffix> Server suffix, default none
+ COMPILATION_COMMENT=<comment> Server comment, default "Source distribution"
+ MYSQL_TCP_PORT=<port> Server port, default 3306
+ CYBOZU
+
+So the command line could look like:
+
+win\configure WITH_INNOBASE_STORAGE_ENGINE WITH_PARTITION_STORAGE_ENGINE MYSQL_SERVER_SUFFIX=-pro
Step 5
------
@@ -60,11 +73,5 @@ click the build solution menu option.
Current issues
--------------
-1. Not all configurations are currently available. i.e. Classic, Pro, Max.
-Currently, only debug and release are available. This will change in the near
-future.
-
-2. The definitions set for features (partitioning, blackhole, etc) are not
-changed based on the options given with configure. This will soon be fixed
-as well.
-
+1. After changing configuration (eg. adding or removing a storage engine), it
+may be necessary to clean the build tree to remove any stale objects.
diff --git a/win/config-handlerton.js b/win/config-handlerton.js
index fd668fa3ec0..1c20767695a 100644
--- a/win/config-handlerton.js
+++ b/win/config-handlerton.js
@@ -17,16 +17,41 @@ try
while (! datafile.AtEndOfStream)
{
var line = datafile.ReadLine();
- if (line == "WITH_INNODB")
+ if (line == "WITH_INNOBASE_STORAGE_ENGINE")
{
extern_line += ",innobase_hton";
address_line += ",&innobase_hton";
}
- else if (line == "WITH_PARTITION")
+ else if (line == "WITH_PARTITION_STORAGE_ENGINE")
{
extern_line += ",partition_hton";
address_line += ",&partition_hton";
}
+ else if (line == "WITH_ARCHIVE_STORAGE_ENGINE")
+ {
+ extern_line += ",archive_hton";
+ address_line += ",&archive_hton";
+ }
+ else if (line == "WITH_BERKELEY_STORAGE_ENGINE")
+ {
+ extern_line += ",berkeley_hton";
+ address_line += ",&berkeley_hton";
+ }
+ else if (line == "WITH_BLACKHOLE_STORAGE_ENGINE")
+ {
+ extern_line += ",blackhole_hton";
+ address_line += ",&blackhole_hton";
+ }
+ else if (line == "WITH_EXAMPLE_STORAGE_ENGINE")
+ {
+ extern_line += ",example_hton";
+ address_line += ",&example_hton";
+ }
+ else if (line == "WITH_FEDERATED_STORAGE_ENGINE")
+ {
+ extern_line += ",federated_hton";
+ address_line += ",&federated_hton";
+ }
}
datafile.Close();
diff --git a/win/config-version.js b/win/config-version.js
index 4c895bcf515..689069c3030 100644
--- a/win/config-version.js
+++ b/win/config-version.js
@@ -9,11 +9,91 @@ try
// first we attempt to open the main configure.in file
var fso = new ActiveXObject("Scripting.FileSystemObject");
+ var args = WScript.Arguments
+
+ // Find any configured MYSQL_SERVER_SUFFIX.
+ // Find any extra preprocessor definitions.
+ var datafile = fso.OpenTextFile(args.Item(0), ForReading);
+ var server_suffix = '';
+ var server_comment = 'Source distribution';
+ var server_port = '';
+ var defs = '';
+ var htons = '';
+ var subdirs = '';
+ var depends = '';
+ while (! datafile.AtEndOfStream)
+ {
+ var line = datafile.ReadLine();
+ if (line.indexOf("MYSQL_SERVER_SUFFIX=") == 0)
+ {
+ server_suffix = line.substring(20, line.length);
+ }
+ else if (line.indexOf("COMPILATION_COMMENT=") == 0)
+ {
+ server_comment = line.substring(20, line.length);
+ }
+ else if (line.indexOf("MYSQL_TCP_PORT=") == 0)
+ {
+ server_port = line.substring(15, line.length);
+ }
+ else if (line == "WITH_ARCHIVE_STORAGE_ENGINE")
+ {
+ defs += " -D" + line;
+ htons += " ha_archive.cc";
+ subdirs += " storage/archive";
+ depends += " archive";
+ }
+ else if (line == "WITH_BERKELEY_STORAGE_ENGINE")
+ {
+ defs += " -D" + line;
+ htons += " ha_berkeley.cc";
+ subdirs += " storage/bdb";
+ depends += " bdb";
+ }
+ else if (line == "WITH_BLACKHOLE_STORAGE_ENGINE")
+ {
+ defs += " -D" + line;
+ htons += " ha_blackhole.cc";
+ }
+ else if (line == "WITH_EXAMPLE_STORAGE_ENGINE")
+ {
+ defs += " -D" + line;
+ subdirs += " storage/example";
+ depends += " example";
+ }
+ else if (line == "WITH_FEDERATED_STORAGE_ENGINE")
+ {
+ defs += " -D" + line;
+ htons += " ha_federated.cc";
+ }
+ else if (line == "WITH_INNOBASE_STORAGE_ENGINE")
+ {
+ defs += " -D" + line;
+ htons += " ha_innodb.cc";
+ subdirs += " storage/innobase";
+ depends += " innobase";
+ }
+ else if (line == "WITH_PARTITION_STORAGE_ENGINE")
+ {
+ defs += " -D" + line;
+ htons += " ha_partition.cc";
+ }
+ else if (line == "__NT__" ||
+ line == "CYBOZU" ||
+ line.indexOf("LICENSE=") == 0) {
+ defs += " -D" + line;
+ }
+ }
+ datafile.Close();
+
ConfigureMySqlVersion();
//ConfigureBDB();
fso = null;
- WScript.Echo("done!");
+ WScript.Echo("DEFINITIONS@" + defs + "@");
+ WScript.Echo("HANDLERTONS@" + htons + "@");
+ WScript.Echo("DEPENDS@" + depends + "@");
+ WScript.Echo("SUBDIRS@" + subdirs + "@");
}
catch (e)
{
@@ -63,10 +143,11 @@ function ConfigureMySqlVersion()
mysqlin = mysqlin.replace("@PROTOCOL_VERSION@", GetValue(configureIn, "PROTOCOL_VERSION"));
mysqlin = mysqlin.replace("@DOT_FRM_VERSION@", GetValue(configureIn, "DOT_FRM_VERSION"));
- mysqlin = mysqlin.replace("@MYSQL_TCP_PORT@", GetValue(configureIn, "MYSQL_TCP_PORT_DEFAULT"));
+ if (server_port == '') { server_port = GetValue(configureIn, "MYSQL_TCP_PORT_DEFAULT"); }
+ mysqlin = mysqlin.replace("@MYSQL_TCP_PORT@", server_port);
mysqlin = mysqlin.replace("@MYSQL_UNIX_ADDR@", GetValue(configureIn, "MYSQL_UNIX_ADDR_DEFAULT"));
- mysqlin = mysqlin.replace("@MYSQL_SERVER_SUFFIX@", '');
- mysqlin = mysqlin.replace("@COMPILATION_COMMENT@", 'Source distribution');
+ mysqlin = mysqlin.replace("@MYSQL_SERVER_SUFFIX@", server_suffix);
+ mysqlin = mysqlin.replace("@COMPILATION_COMMENT@", server_comment);
var version = GetVersion(configureIn);