mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Bug#24732 Executables do not include Vista manifests
- Required manual merge.
This commit is contained in:
parent
e0e85323b0
commit
2b8c90fed5
2 changed files with 35 additions and 7 deletions
|
@ -149,21 +149,47 @@ ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7" OR
|
||||||
ADD_DEFINITIONS("-D_WINDOWS -D__WIN__ -D_CRT_SECURE_NO_DEPRECATE")
|
ADD_DEFINITIONS("-D_WINDOWS -D__WIN__ -D_CRT_SECURE_NO_DEPRECATE")
|
||||||
|
|
||||||
IF(EMBED_MANIFESTS)
|
IF(EMBED_MANIFESTS)
|
||||||
# Search for the Manifest tool. CMake will first search it's defaults
|
# Search for the tools (mt, makecat, signtool) necessary for embedding
|
||||||
# (CMAKE_FRAMEWORK_PATH, CMAKE_APPBUNDLE_PATH, CMAKE_PROGRAM_PATH and
|
# manifests and signing executables with the MySQL AB authenticode cert.
|
||||||
# the system PATH) followed by the listed paths which are the current
|
#
|
||||||
# possible defaults and should be updated when necessary. The custom
|
# CMake will first search it's defaults (CMAKE_FRAMEWORK_PATH,
|
||||||
# manifests are designed to be compatible with all mt versions.
|
# 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.
|
||||||
|
# The MySQL AB Authenticode certificate is available only internally.
|
||||||
|
# Others should store a single signing certificate in a local cryptographic
|
||||||
|
# service provider and alter the signtool command as necessary.
|
||||||
FIND_PROGRAM(HAVE_MANIFEST_TOOL NAMES mt
|
FIND_PROGRAM(HAVE_MANIFEST_TOOL NAMES mt
|
||||||
PATHS
|
PATHS
|
||||||
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/VC/bin"
|
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/VC/bin"
|
||||||
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/Common7/Tools/Bin"
|
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/Common7/Tools/Bin"
|
||||||
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/SDK/v2.0/Bin")
|
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/SDK/v2.0/Bin")
|
||||||
|
FIND_PROGRAM(HAVE_CATALOG_TOOL NAMES makecat
|
||||||
|
PATHS
|
||||||
|
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/Common7/Tools/Bin")
|
||||||
|
FIND_PROGRAM(HAVE_SIGN_TOOL NAMES signtool
|
||||||
|
PATHS
|
||||||
|
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/Common7/Tools/Bin"
|
||||||
|
"$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/SDK/v2.0/Bin")
|
||||||
|
|
||||||
IF(HAVE_MANIFEST_TOOL)
|
IF(HAVE_MANIFEST_TOOL)
|
||||||
MESSAGE(STATUS "Found Mainfest Tool. Embedding custom manifests.")
|
MESSAGE(STATUS "Found Mainfest Tool.")
|
||||||
ELSE(HAVE_MANIFEST_TOOL)
|
ELSE(HAVE_MANIFEST_TOOL)
|
||||||
MESSAGE(FATAL_ERROR "Manifest tool, mt.exe, can't be found.")
|
MESSAGE(FATAL_ERROR "Manifest tool, mt.exe, can't be found.")
|
||||||
ENDIF(HAVE_MANIFEST_TOOL)
|
ENDIF(HAVE_MANIFEST_TOOL)
|
||||||
|
IF(HAVE_CATALOG_TOOL)
|
||||||
|
MESSAGE(STATUS "Found Catalog Tool.")
|
||||||
|
ELSE(HAVE_CATALOG_TOOL)
|
||||||
|
MESSAGE(FATAL_ERROR "Catalog tool, makecat.exe, can't be found.")
|
||||||
|
ENDIF(HAVE_CATALOG_TOOL)
|
||||||
|
IF(HAVE_SIGN_TOOL)
|
||||||
|
MESSAGE(STATUS "Found Sign Tool. Embedding custom manifests and signing executables.")
|
||||||
|
ELSE(HAVE_SIGN_TOOL)
|
||||||
|
MESSAGE(FATAL_ERROR "Sign tool, signtool.exe, can't be found.")
|
||||||
|
ENDIF(HAVE_SIGN_TOOL)
|
||||||
|
|
||||||
# Disable automatic manifest generation.
|
# Disable automatic manifest generation.
|
||||||
STRING(REPLACE "/MANIFEST" "/MANIFEST:NO" CMAKE_EXE_LINKER_FLAGS
|
STRING(REPLACE "/MANIFEST" "/MANIFEST:NO" CMAKE_EXE_LINKER_FLAGS
|
||||||
${CMAKE_EXE_LINKER_FLAGS})
|
${CMAKE_EXE_LINKER_FLAGS})
|
||||||
|
|
|
@ -63,7 +63,9 @@ The options right now are:
|
||||||
MYSQL_TCP_PORT=<port> Server port, default 3306
|
MYSQL_TCP_PORT=<port> Server port, default 3306
|
||||||
CYBOZU Default character set is UTF8
|
CYBOZU Default character set is UTF8
|
||||||
EMBED_MANIFESTS Embed custom manifests into final exes, otherwise VS
|
EMBED_MANIFESTS Embed custom manifests into final exes, otherwise VS
|
||||||
default will be used.
|
default will be used. (Note - This option should only be
|
||||||
|
used by MySQL AB.)
|
||||||
|
|
||||||
|
|
||||||
So the command line could look like:
|
So the command line could look like:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue