summaryrefslogtreecommitdiff
path: root/win/configure.js
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-10-04 15:41:52 +0200
committerSergei Golubchik <sergii@pisem.net>2011-10-04 15:41:52 +0200
commit630b0b877937cfd564251a66d2e0166182bff4ff (patch)
tree53e64734919a809c95f246504ea337ae215ff88c /win/configure.js
parentf3523559aaa5d6523d907d69de544ee24c9e6915 (diff)
downloadmariadb-git-630b0b877937cfd564251a66d2e0166182bff4ff.tar.gz
support for plugins on windows
CMakeLists.txt: 1. add -DSAFEMALLOC -DSAFE_MUTEX in the top-level CMakeLists.txt don't force plugins to copy-paste these lines in their CMakeLists.txt 2.1 search plugin/* for plugins (not only storage/*), 2.2 recognize MYSQL_PLUGIN (not only MYSQL_STORAGE_ENGINE), 2.3 extract library names from the plug.in (don't force library names to be ha_<engine>.dll and <engine>.lib) include/mysql/plugin.h: define MYSQL_PLUGIN_EXPORT appropriately (backport from 5.5) libmysqld/CMakeLists.txt: remove unnecessary workaround plugin/fulltext/CMakeLists.txt: build fulltext example plugin on windows storage/maria/CMakeLists.txt: The library is called libmaria_s.lib, not maria.lib storage/maria/unittest/CMakeLists.txt: The library is called libmaria_s.lib, not maria.lib storage/myisam/CMakeLists.txt: The library is called libmyisam_s.lib, not myisam.lib storage/mysql_storage_engine.cmake: introduce MYSQL_PLUGIN macro. don't force library names to be ha_<engine>.dll and <engine>.lib storage/xtradb/CMakeLists.txt: remove a condition from include win/README: don't use deprecated syntax win/configure-mariadb.sh: don't use deprecated syntax win/configure.js: 1. support MYSQL_PLUGIN in addition to MYSQL_STORAGE_ENGINE. 2. support plugin/* in addition to storage/*
Diffstat (limited to 'win/configure.js')
-rw-r--r--win/configure.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/configure.js b/win/configure.js
index 0b3157a7d2a..04659ef633a 100644
--- a/win/configure.js
+++ b/win/configure.js
@@ -126,7 +126,7 @@ try
var engineOptions = ParsePlugins();
for (option in engineOptions)
{
- configfile.WriteLine("SET(" + engineOptions[option] + " TRUE)");
+ configfile.WriteLine("SET (" + engineOptions[option] + " TRUE)");
}
configfile.Close();
@@ -302,7 +302,7 @@ function ParsePlugins()
{
var content = fso.OpenTextFile(filename, ForReading).ReadAll();
var match =
- /MYSQL_STORAGE_ENGINE([ ]*)[\(]([^\)]+)[\)]/.exec(content);
+ /MYSQL_(PLUGIN|STORAGE_ENGINE)([ ]*)[\(]([^\)]+)[\)]/.exec(content);
if (match== null)
continue;
match = /\[[\w,\-_]+\][\s]?\)/.exec(match[0]);
@@ -329,9 +329,9 @@ function ParsePlugins()
for(key in config)
{
var eng = config[key];
- if(eng.isGroup != undefined && !eng.isGroup && eng.include != undefined)
+ if(eng.isGroup != undefined && !eng.isGroup && eng.include != undefined)
{
- if (fso.FolderExists("storage\\"+key) || key=="PARTITION")
+ if (fso.FolderExists("storage\\"+key) || fso.FolderExists("plugin\\"+key) || key=="PARTITION")
{
arr[arr.length] = eng.include?
"WITH_"+key+"_STORAGE_ENGINE":"WITHOUT_"+key+"_STORAGE_ENGINE";