diff options
author | iggy@recycle.(none) <> | 2007-04-23 15:41:24 -0400 |
---|---|---|
committer | iggy@recycle.(none) <> | 2007-04-23 15:41:24 -0400 |
commit | 7a358c4b5c4ff9ea26a3ebe355dd99eedc04767e (patch) | |
tree | 20f198c8c6f8c6d19d7e0fae61409ab144e819dd /win/mysql_manifest.cmake | |
parent | 1561c39c5d91370178999584ddd30d7314ce1a8a (diff) | |
download | mariadb-git-7a358c4b5c4ff9ea26a3ebe355dd99eedc04767e.tar.gz |
Bug#24732 Executables do not include Vista manifests
- 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.
Diffstat (limited to 'win/mysql_manifest.cmake')
-rwxr-xr-x | win/mysql_manifest.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/win/mysql_manifest.cmake b/win/mysql_manifest.cmake new file mode 100755 index 00000000000..b5bb6fda8fb --- /dev/null +++ b/win/mysql_manifest.cmake @@ -0,0 +1,20 @@ + +# - 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) |