mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
1ce0d7c63b
- Added script to generate application specific manifest. - Added new CMake MACRO to add customer build events which will first generate a manifest and then embeds that manifest into an executable. BitKeeper/etc/ignore: Bug#24732 Executables do not include Vista manifests - Revise ignore rules to disallow auto-generated cmake files but to allow custom macros defined in a .cmake file. CMakeLists.txt: Bug#24732 Executables do not include Vista manifests - Added logic for EMBED_MANIFESTS configuration option. client/CMakeLists.txt: Bug#24732 Executables do not include Vista manifests - Embed manifest with custom CMake MACRO for client executables. extra/CMakeLists.txt: Bug#24732 Executables do not include Vista manifests - Embed manifest with custom CMake MACRO for my_print_default executable. libmysql/CMakeLists.txt: Bug#24732 Executables do not include Vista manifests - Embed manifest with custom CMake MACRO for myTest executable. myisam/CMakeLists.txt: Bug#24732 Executables do not include Vista manifests - Embed manifest with custom CMake MACRO for myisam executables. server-tools/instance-manager/CMakeLists.txt: Bug#24732 Executables do not include Vista manifests - Embed manifest with custom CMake MACRO for mysqlmanager executable. sql/CMakeLists.txt: Bug#24732 Executables do not include Vista manifests - Embed manifest with custom CMake MACRO for mysqld executable. win/README: Bug#24732 Executables do not include Vista manifests - Added new configuration option documentation. win/configure.js: Bug#24732 Executables do not include Vista manifests - Added new EMBED_MANIFESTS configuration option. win/create_manifest.js: Bug#24732 Executables do not include Vista manifests - Manifest generator. This script generates a basic manifest. win/mysql_manifest.cmake: Bug#24732 Executables do not include Vista manifests - Define new CMake MACRO for adding Windows manifests to executables.
20 lines
908 B
CMake
Executable file
20 lines
908 B
CMake
Executable file
|
|
# - MYSQL_EMBED_MANIFEST(target_name required_privs)
|
|
# Create a manifest for target_name. Set the execution level to require_privs
|
|
#
|
|
# NOTE. PROCESSOR_ARCH must be defined before this MACRO is called.
|
|
|
|
MACRO(MYSQL_EMBED_MANIFEST _target_name _required_privs)
|
|
ADD_CUSTOM_COMMAND(
|
|
TARGET ${_target_name}
|
|
PRE_LINK
|
|
COMMAND cscript.exe
|
|
ARGS "${PROJECT_SOURCE_DIR}/win/create_manifest.js" name=$(ProjectName) version=${VERSION} arch=${PROCESSOR_ARCH} type=$(PlatformName) exe_level=${_required_privs} outfile=$(IntDir)\\$(TargetFileName).intermediate.manifest
|
|
COMMENT "Generates the contents of the manifest contents.")
|
|
ADD_CUSTOM_COMMAND(
|
|
TARGET ${_target_name}
|
|
POST_BUILD
|
|
COMMAND mt.exe
|
|
ARGS -nologo -manifest $(IntDir)\\$(TargetFileName).intermediate.manifest -outputresource:$(TargetPath)
|
|
COMMENT "Embeds the manifest contents.")
|
|
ENDMACRO(MYSQL_EMBED_MANIFEST)
|