Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
be16a11f
Commit
be16a11f
authored
Apr 30, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport vista manifest patch
parent
4993d64e
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
76 additions
and
1 deletion
+76
-1
CMakeLists.txt
CMakeLists.txt
+27
-0
client/CMakeLists.txt
client/CMakeLists.txt
+14
-0
extra/CMakeLists.txt
extra/CMakeLists.txt
+7
-0
libmysql/CMakeLists.txt
libmysql/CMakeLists.txt
+5
-0
myisam/CMakeLists.txt
myisam/CMakeLists.txt
+8
-0
server-tools/instance-manager/CMakeLists.txt
server-tools/instance-manager/CMakeLists.txt
+5
-0
sql/CMakeLists.txt
sql/CMakeLists.txt
+5
-0
win/Makefile.am
win/Makefile.am
+2
-1
win/README
win/README
+2
-0
win/configure.js
win/configure.js
+1
-0
No files found.
CMakeLists.txt
View file @
be16a11f
...
...
@@ -128,6 +128,33 @@ ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7" OR
ADD_DEFINITIONS
(
"-D_WINDOWS -D__WIN__ -D _CRT_SECURE_NO_DEPRECATE"
)
IF
(
EMBED_MANIFESTS
)
# Search for the Manifest tool. CMake will first search it's defaults
# (CMAKE_FRAMEWORK_PATH, CMAKE_APPBUNDLE_PATH, CMAKE_PROGRAM_PATH and
# the system PATH) followed by the listed paths which are the current
# possible defaults and should be updated when necessary. The custom
# manifests are designed to be compatible with all mt versions.
FIND_PROGRAM
(
HAVE_MANIFEST_TOOL NAMES mt
PATHS
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/VC/bin"
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/Common7/Tools/Bin"
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/SDK/v2.0/Bin"
)
IF
(
HAVE_MANIFEST_TOOL
)
MESSAGE
(
STATUS
"Found Mainfest Tool. Embedding custom manifests."
)
ELSE
(
HAVE_MANIFEST_TOOL
)
MESSAGE
(
FATAL_ERROR
"Manifest tool, mt.exe, can't be found."
)
ENDIF
(
HAVE_MANIFEST_TOOL
)
# Disable automatic manifest generation.
STRING
(
REPLACE
"/MANIFEST"
"/MANIFEST:NO"
CMAKE_EXE_LINKER_FLAGS
${
CMAKE_EXE_LINKER_FLAGS
}
)
# Set the processor architecture.
IF
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
SET
(
PROCESSOR_ARCH
"X64"
)
ELSE
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
SET
(
PROCESSOR_ARCH
"X86"
)
ENDIF
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
ENDIF
(
EMBED_MANIFESTS
)
ADD_SUBDIRECTORY
(
vio
)
ADD_SUBDIRECTORY
(
dbug
)
ADD_SUBDIRECTORY
(
strings
)
...
...
client/CMakeLists.txt
View file @
be16a11f
...
...
@@ -12,6 +12,7 @@
# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
INCLUDE
(
"
${
PROJECT_SOURCE_DIR
}
/win/mysql_manifest.cmake"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
...
...
@@ -97,3 +98,16 @@ TARGET_LINK_LIBRARIES(mysqladmin mysqlclient mysys dbug yassl taocrypt zlib wsoc
ADD_EXECUTABLE
(
echo echo.c
)
IF
(
EMBED_MANIFESTS
)
MYSQL_EMBED_MANIFEST
(
"mysql"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"mysqltest"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"mysqlcheck"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"mysqldump"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"mysqlimport"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"mysql_upgrade"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"mysqlshow"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"mysqlbinlog"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"mysqladmin"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"echo"
"asInvoker"
)
ENDIF
(
EMBED_MANIFESTS
)
extra/CMakeLists.txt
View file @
be16a11f
...
...
@@ -12,6 +12,7 @@
# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
INCLUDE
(
"
${
PROJECT_SOURCE_DIR
}
/win/mysql_manifest.cmake"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
...
...
@@ -45,3 +46,9 @@ TARGET_LINK_LIBRARIES(perror strings mysys dbug wsock32)
ADD_EXECUTABLE
(
replace replace.c
)
TARGET_LINK_LIBRARIES
(
replace strings mysys dbug wsock32
)
IF
(
EMBED_MANIFESTS
)
MYSQL_EMBED_MANIFEST
(
"my_print_defaults"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"perror"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"replace"
"asInvoker"
)
ENDIF
(
EMBED_MANIFESTS
)
libmysql/CMakeLists.txt
View file @
be16a11f
...
...
@@ -12,6 +12,7 @@
# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
INCLUDE
(
"
${
PROJECT_SOURCE_DIR
}
/win/mysql_manifest.cmake"
)
# Need to set USE_TLS, since __declspec(thread) approach to thread local
# storage does not work properly in DLLs.
...
...
@@ -67,3 +68,7 @@ TARGET_LINK_LIBRARIES(libmysql mysys strings wsock32)
ADD_EXECUTABLE
(
myTest mytest.c
)
TARGET_LINK_LIBRARIES
(
myTest libmysql
)
IF
(
EMBED_MANIFESTS
)
MYSQL_EMBED_MANIFEST
(
"myTest"
"asInvoker"
)
ENDIF
(
EMBED_MANIFESTS
)
myisam/CMakeLists.txt
View file @
be16a11f
...
...
@@ -12,6 +12,7 @@
# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
INCLUDE
(
"
${
PROJECT_SOURCE_DIR
}
/win/mysql_manifest.cmake"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
...
...
@@ -39,3 +40,10 @@ TARGET_LINK_LIBRARIES(myisamlog myisam mysys dbug strings zlib wsock32)
ADD_EXECUTABLE
(
myisampack myisampack.c
)
TARGET_LINK_LIBRARIES
(
myisampack myisam mysys dbug strings zlib wsock32
)
IF
(
EMBED_MANIFESTS
)
MYSQL_EMBED_MANIFEST
(
"myisam_ftdump"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"myisamchk"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"myisamlog"
"asInvoker"
)
MYSQL_EMBED_MANIFEST
(
"myisampack"
"asInvoker"
)
ENDIF
(
EMBED_MANIFESTS
)
server-tools/instance-manager/CMakeLists.txt
View file @
be16a11f
...
...
@@ -12,6 +12,7 @@
# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
INCLUDE
(
"
${
PROJECT_SOURCE_DIR
}
/win/mysql_manifest.cmake"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
SET
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX"
)
...
...
@@ -30,3 +31,7 @@ ADD_EXECUTABLE(mysqlmanager buffer.cc command.cc commands.cc guardian.cc instanc
ADD_DEPENDENCIES
(
mysqlmanager GenError
)
TARGET_LINK_LIBRARIES
(
mysqlmanager dbug mysys strings taocrypt vio yassl zlib wsock32
)
IF
(
EMBED_MANIFESTS
)
MYSQL_EMBED_MANIFEST
(
"mysqlmanager"
"asInvoker"
)
ENDIF
(
EMBED_MANIFESTS
)
sql/CMakeLists.txt
View file @
be16a11f
...
...
@@ -12,6 +12,7 @@
# 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
INCLUDE
(
"
${
PROJECT_SOURCE_DIR
}
/win/mysql_manifest.cmake"
)
SET
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-DSAFEMALLOC -DSAFE_MUTEX -DUSE_SYMDIR /Zi"
)
...
...
@@ -85,6 +86,10 @@ ADD_EXECUTABLE(mysqld ../sql-common/client.c derror.cc des_key_file.cc
TARGET_LINK_LIBRARIES
(
mysqld heap myisam myisammrg mysys yassl zlib dbug yassl
taocrypt strings vio regex wsock32
)
IF
(
EMBED_MANIFESTS
)
MYSQL_EMBED_MANIFEST
(
"mysqld"
"requireAdministrator"
)
ENDIF
(
EMBED_MANIFESTS
)
IF
(
WITH_EXAMPLE_STORAGE_ENGINE
)
TARGET_LINK_LIBRARIES
(
mysqld example
)
ENDIF
(
WITH_EXAMPLE_STORAGE_ENGINE
)
...
...
win/Makefile.am
View file @
be16a11f
...
...
@@ -14,7 +14,8 @@
# 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 build-vs8_x64.bat configure.js README
EXTRA_DIST
=
build-vs71.bat build-vs8.bat build-vs8_x64.bat configure.js README
\
mysql_manifest.cmake
create_manifest.js
# Don't update the files from bitkeeper
%
::
SCCS/s.%
win/README
View file @
be16a11f
...
...
@@ -50,6 +50,8 @@ The options right now are
MYSQL_TCP_PORT=<port> Server port, default 3306
DISABLE_GRANT_OPTIONS Disables the use of --init-file and --skip-grant-tables
options of mysqld.exe
EMBED_MANIFESTS Embed custom manifests into final exes, otherwise VS
default will be used.
So the command line could look like:
...
...
win/configure.js
View file @
be16a11f
...
...
@@ -47,6 +47,7 @@ try
case
"
WITH_PARTITION_STORAGE_ENGINE
"
:
case
"
__NT__
"
:
case
"
DISABLE_GRANT_OPTIONS
"
:
case
"
EMBED_MANIFESTS
"
:
configfile
.
WriteLine
(
"
SET (
"
+
args
.
Item
(
i
)
+
"
TRUE)
"
);
break
;
case
"
MYSQL_SERVER_SUFFIX
"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment