From be16a11fbbf3af859ad1bbc2e0096087f8c2f30a Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 30 Apr 2007 11:41:19 +0200 Subject: backport vista manifest patch --- win/Makefile.am | 3 ++- win/README | 2 ++ win/configure.js | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'win') diff --git a/win/Makefile.am b/win/Makefile.am index b087675793b..c6632737d7b 100755 --- a/win/Makefile.am +++ b/win/Makefile.am @@ -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.% diff --git a/win/README b/win/README index 871ae4efee7..118d619226a 100644 --- a/win/README +++ b/win/README @@ -50,6 +50,8 @@ The options right now are MYSQL_TCP_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: diff --git a/win/configure.js b/win/configure.js index 3488efacba3..a2502d96b80 100755 --- a/win/configure.js +++ b/win/configure.js @@ -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": -- cgit v1.2.1 From 7d4f14cbace270e9803870cb45249fbcba3cf1a0 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 30 Apr 2007 13:30:58 +0200 Subject: Makefile.am: fix typo win/Makefile.am: fix typo --- win/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win') diff --git a/win/Makefile.am b/win/Makefile.am index c6632737d7b..89f0d65b528 100755 --- a/win/Makefile.am +++ b/win/Makefile.am @@ -14,7 +14,7 @@ # 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 -- cgit v1.2.1 From 297bb5d8b6e155757de53796eb6cecec995cbf97 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 30 Apr 2007 14:22:38 +0200 Subject: create_manifest.js, mysql_manifest.cmake: add files for patch win/create_manifest.js: add files for patch win/mysql_manifest.cmake: add files for patch --- win/create_manifest.js | 85 ++++++++++++++++++++++++++++++++++++++++++++++++ win/mysql_manifest.cmake | 20 ++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 win/create_manifest.js create mode 100644 win/mysql_manifest.cmake (limited to 'win') diff --git a/win/create_manifest.js b/win/create_manifest.js new file mode 100644 index 00000000000..5605f57ef74 --- /dev/null +++ b/win/create_manifest.js @@ -0,0 +1,85 @@ +/* + manifest.js - Writes a custom XML manifest for each executable/library + 6 command line options must be supplied: + name - Name of the executable/library into which the mainfest will be + embedded. + version - Version of the executable + arch - Architecture intended. + type - Application type. + exe_level - Application execution level. + [asInvoker|highestAvailable|requireAdministrator] + outfile - Final destination where mainfest will be written. + + Example: + cscript manifest.js name=mysql version=5.0.32 arch=X86 type=win32 + exe_level=asInvoker outfile=out.xml +*/ + +try +{ + var args = WScript.Arguments + for (i=0; i < args.Count(); i++) + { + var parts = args.Item(i).split('='); + switch (parts[0]) + { + case "name": + var app_name= parts[1]; + break; + case "version": + var app_version= parts[1]; + break; + case "arch": + var app_arch= parts[1]; + break; + case "type": + var app_type= parts[1]; + break; + case "exe_level": + var app_exe_level= parts[1]; + break; + case "outfile": + var manifest_file= parts[1]; + break; + default: + WScript.echo("Invalid argument supplied."); + } + } + if (i != 6) + throw new Error(1, "Incorrect number of arguments."); + + var manifest_xml= "\r\n"; + manifest_xml+= "\r\n"; + // Identify the application security requirements. + manifest_xml+= "\t\r\n"; + manifest_xml+= "\t\t\r\n\t\t\t\r\n\t\t\t\t"; + manifest_xml+= "