Bug #57746: Win directory of source distribution - out-of-date files / support for new files
This commit is contained in:
parent
3a7d79d5a5
commit
b1bd02361d
34
win/README
34
win/README
@ -10,7 +10,7 @@ or ealier.
|
||||
|
||||
The Windows build system uses a tool named CMake to generate build files for
|
||||
a variety of project systems. This tool is combined with a set of jscript
|
||||
files to enable building of MySQL for Windows directly out of a bk clone.
|
||||
files to enable building of MySQL for Windows directly out of a bzr clone.
|
||||
The steps required are below.
|
||||
|
||||
Step 1:
|
||||
@ -41,7 +41,7 @@ before you start the build)
|
||||
|
||||
Step 4
|
||||
------
|
||||
Clone your bk tree to any location you like.
|
||||
Clone your bzr tree to any location you like.
|
||||
|
||||
Step 5
|
||||
------
|
||||
@ -76,17 +76,35 @@ win\configure WITH_INNOBASE_STORAGE_ENGINE WITH_PARTITION_STORAGE_ENGINE MYSQL_S
|
||||
Step 6
|
||||
------
|
||||
|
||||
From the root of your installation directory/bk clone, execute one of
|
||||
the batch files to generate the type of project files you desire.
|
||||
From the root of your installation directory/bzr clone, you can
|
||||
use cmake to compile the sources.Use cmake --help when necessary.
|
||||
Before you run cmake with changed settings (compiler, system
|
||||
libraries, options, ...), make sure you delete the CMakeCache.txt
|
||||
generated by your previous run.
|
||||
|
||||
For Visual Studio 8 (or Visual C++ 2005 express edition), do win\build-vs8.
|
||||
For Visual Studio 7.1, do win\build-vs71.
|
||||
C:\>del CMakeCache.txt
|
||||
C:\>cmake . -G "target name"
|
||||
|
||||
We will support building with nmake in the near future.
|
||||
For Example:
|
||||
To generate the Win64 project files using Visual Studio 9, you would run
|
||||
cmake . -G "Visual Studio 9 2008 Win64"
|
||||
|
||||
Other target names supported using CMake 2.6 patch 4 are:
|
||||
|
||||
Visual Studio 7 "Visual Studio 7 .NET 2003"
|
||||
Visual Studio 8 "Visual Studio 8 2005"
|
||||
Visual Studio 8 (64 bit) "Visual Studio 8 2005 Win64"
|
||||
Visual Studio 9 "Visual Studio 9 2008"
|
||||
Visual Studio 9 (64 bit) "Visual Studio 9 2008 Win64"
|
||||
|
||||
For generating project files using Visual Studio 10, you need CMake 2.8
|
||||
or higher and corresponding target names are
|
||||
Visual Studio 10
|
||||
Visual Studio 10 Win64
|
||||
|
||||
Step 7
|
||||
------
|
||||
From the root of your bk clone, start your build.
|
||||
From the root of your bzr clone, start your build.
|
||||
|
||||
For Visual Studio, execute mysql.sln. This will start the IDE
|
||||
and you can click the build solution menu option.
|
||||
|
@ -1,21 +0,0 @@
|
||||
@echo off
|
||||
|
||||
REM Copyright (C) 2006 MySQL AB
|
||||
REM
|
||||
REM This program is free software; you can redistribute it and/or modify
|
||||
REM it under the terms of the GNU General Public License as published by
|
||||
REM the Free Software Foundation; version 2 of the License.
|
||||
REM
|
||||
REM This program is distributed in the hope that it will be useful,
|
||||
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
REM GNU General Public License for more details.
|
||||
REM
|
||||
REM You should have received a copy of the GNU General Public License
|
||||
REM along with this program; if not, write to the Free Software
|
||||
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
if exist cmakecache.txt del cmakecache.txt
|
||||
copy win\nmake_x64_cache.txt cmakecache.txt
|
||||
cmake -G "NMake Makefiles"
|
||||
copy cmakecache.txt win\nmake_x64_cache.txt
|
@ -1,21 +0,0 @@
|
||||
@echo off
|
||||
|
||||
REM Copyright (C) 2006 MySQL AB
|
||||
REM
|
||||
REM This program is free software; you can redistribute it and/or modify
|
||||
REM it under the terms of the GNU General Public License as published by
|
||||
REM the Free Software Foundation; version 2 of the License.
|
||||
REM
|
||||
REM This program is distributed in the hope that it will be useful,
|
||||
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
REM GNU General Public License for more details.
|
||||
REM
|
||||
REM You should have received a copy of the GNU General Public License
|
||||
REM along with this program; if not, write to the Free Software
|
||||
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
if exist cmakecache.txt del cmakecache.txt
|
||||
copy win\nmake_cache.txt cmakecache.txt
|
||||
cmake -G "NMake Makefiles"
|
||||
copy cmakecache.txt win\nmake_cache.txt
|
@ -1,22 +0,0 @@
|
||||
@echo off
|
||||
|
||||
REM Copyright (C) 2006 MySQL AB
|
||||
REM
|
||||
REM This program is free software; you can redistribute it and/or modify
|
||||
REM it under the terms of the GNU General Public License as published by
|
||||
REM the Free Software Foundation; version 2 of the License.
|
||||
REM
|
||||
REM This program is distributed in the hope that it will be useful,
|
||||
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
REM GNU General Public License for more details.
|
||||
REM
|
||||
REM You should have received a copy of the GNU General Public License
|
||||
REM along with this program; if not, write to the Free Software
|
||||
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
if exist cmakecache.txt del cmakecache.txt
|
||||
copy win\vs71cache.txt cmakecache.txt
|
||||
cmake -G "Visual Studio 7 .NET 2003"
|
||||
copy cmakecache.txt win\vs71cache.txt
|
||||
|
@ -1,21 +0,0 @@
|
||||
@echo off
|
||||
|
||||
REM Copyright (C) 2006 MySQL AB
|
||||
REM
|
||||
REM This program is free software; you can redistribute it and/or modify
|
||||
REM it under the terms of the GNU General Public License as published by
|
||||
REM the Free Software Foundation; version 2 of the License.
|
||||
REM
|
||||
REM This program is distributed in the hope that it will be useful,
|
||||
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
REM GNU General Public License for more details.
|
||||
REM
|
||||
REM You should have received a copy of the GNU General Public License
|
||||
REM along with this program; if not, write to the Free Software
|
||||
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
if exist cmakecache.txt del cmakecache.txt
|
||||
copy win\vs8cache.txt cmakecache.txt
|
||||
cmake -G "Visual Studio 8 2005"
|
||||
copy cmakecache.txt win\vs8cache.txt
|
@ -1,21 +0,0 @@
|
||||
@echo off
|
||||
|
||||
REM Copyright (C) 2006 MySQL AB
|
||||
REM
|
||||
REM This program is free software; you can redistribute it and/or modify
|
||||
REM it under the terms of the GNU General Public License as published by
|
||||
REM the Free Software Foundation; version 2 of the License.
|
||||
REM
|
||||
REM This program is distributed in the hope that it will be useful,
|
||||
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
REM GNU General Public License for more details.
|
||||
REM
|
||||
REM You should have received a copy of the GNU General Public License
|
||||
REM along with this program; if not, write to the Free Software
|
||||
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
if exist cmakecache.txt del cmakecache.txt
|
||||
copy win\vs8cache.txt cmakecache.txt
|
||||
cmake -G "Visual Studio 8 2005 Win64"
|
||||
copy cmakecache.txt win\vs8cache.txt
|
@ -1,18 +0,0 @@
|
||||
@echo off
|
||||
|
||||
REM Copyright (C) 2006 MySQL AB
|
||||
REM
|
||||
REM This program is free software; you can redistribute it and/or modify
|
||||
REM it under the terms of the GNU General Public License as published by
|
||||
REM the Free Software Foundation; version 2 of the License.
|
||||
REM
|
||||
REM This program is distributed in the hope that it will be useful,
|
||||
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
REM GNU General Public License for more details.
|
||||
REM
|
||||
REM You should have received a copy of the GNU General Public License
|
||||
REM along with this program; if not, write to the Free Software
|
||||
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
cmake -G "Visual Studio 9 2008"
|
||||
|
@ -1,18 +0,0 @@
|
||||
@echo off
|
||||
|
||||
REM Copyright (C) 2006 MySQL AB
|
||||
REM
|
||||
REM This program is free software; you can redistribute it and/or modify
|
||||
REM it under the terms of the GNU General Public License as published by
|
||||
REM the Free Software Foundation; version 2 of the License.
|
||||
REM
|
||||
REM This program is distributed in the hope that it will be useful,
|
||||
REM but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
REM GNU General Public License for more details.
|
||||
REM
|
||||
REM You should have received a copy of the GNU General Public License
|
||||
REM along with this program; if not, write to the Free Software
|
||||
REM Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
cmake -G "Visual Studio 9 2008 Win64"
|
||||
|
Loading…
x
Reference in New Issue
Block a user