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
0068a372
Commit
0068a372
authored
Jun 26, 2007
by
iggy@amd64.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into amd64.(none):/src/bug24732/my50-bug24732
parents
25af844f
b1827ecb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
CMakeLists.txt
CMakeLists.txt
+1
-1
win/create_manifest.js
win/create_manifest.js
+3
-7
win/mysql_manifest.cmake
win/mysql_manifest.cmake
+1
-1
No files found.
CMakeLists.txt
View file @
0068a372
...
@@ -161,7 +161,7 @@ IF(EMBED_MANIFESTS)
...
@@ -161,7 +161,7 @@ IF(EMBED_MANIFESTS)
ENDIF
(
NOT tmp_manifest
)
ENDIF
(
NOT tmp_manifest
)
# Set the processor architecture.
# Set the processor architecture.
IF
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
IF
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
SET
(
PROCESSOR_ARCH
"
X
64"
)
SET
(
PROCESSOR_ARCH
"
amd
64"
)
ELSE
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
ELSE
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
SET
(
PROCESSOR_ARCH
"X86"
)
SET
(
PROCESSOR_ARCH
"X86"
)
ENDIF
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
ENDIF
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
...
...
win/create_manifest.js
View file @
0068a372
/*
/*
manifest.js - Writes a custom XML manifest for each executable/library
manifest.js - Writes a custom XML manifest for each executable/library
6
command line options must be supplied:
5
command line options must be supplied:
name - Name of the executable/library into which the mainfest will be
name - Name of the executable/library into which the mainfest will be
embedded.
embedded.
version - Version of the executable
version - Version of the executable
arch - Architecture intended.
arch - Architecture intended.
type - Application type.
exe_level - Application execution level.
exe_level - Application execution level.
[asInvoker|highestAvailable|requireAdministrator]
[asInvoker|highestAvailable|requireAdministrator]
outfile - Final destination where mainfest will be written.
outfile - Final destination where mainfest will be written.
...
@@ -37,9 +36,6 @@ try
...
@@ -37,9 +36,6 @@ try
case
"
arch
"
:
case
"
arch
"
:
var
app_arch
=
parts
[
1
];
var
app_arch
=
parts
[
1
];
break
;
break
;
case
"
type
"
:
var
app_type
=
parts
[
1
];
break
;
case
"
exe_level
"
:
case
"
exe_level
"
:
var
app_exe_level
=
parts
[
1
];
var
app_exe_level
=
parts
[
1
];
break
;
break
;
...
@@ -50,7 +46,7 @@ try
...
@@ -50,7 +46,7 @@ try
WScript
.
echo
(
"
Invalid argument supplied.
"
);
WScript
.
echo
(
"
Invalid argument supplied.
"
);
}
}
}
}
if
(
i
!=
6
)
if
(
i
!=
5
)
throw
new
Error
(
1
,
"
Incorrect number of arguments.
"
);
throw
new
Error
(
1
,
"
Incorrect number of arguments.
"
);
var
manifest_xml
=
"
<?xml version=
\
'1.0
\
' encoding=
\
'UTF-8
\
' standalone=
\
'yes
\
'?>
\r\n
"
;
var
manifest_xml
=
"
<?xml version=
\
'1.0
\
' encoding=
\
'UTF-8
\
' standalone=
\
'yes
\
'?>
\r\n
"
;
...
@@ -61,7 +57,7 @@ try
...
@@ -61,7 +57,7 @@ try
manifest_xml
+=
"
version=
\
'
"
+
app_version
+
"
\
'
"
;
manifest_xml
+=
"
version=
\
'
"
+
app_version
+
"
\
'
"
;
manifest_xml
+=
"
processorArchitecture=
\
'
"
+
app_arch
+
"
\
'
"
;
manifest_xml
+=
"
processorArchitecture=
\
'
"
+
app_arch
+
"
\
'
"
;
// TOADD - Add publicKeyToken attribute once we have Authenticode key.
// TOADD - Add publicKeyToken attribute once we have Authenticode key.
manifest_xml
+=
"
type=
\
'
"
+
app_type
+
"
\
' />
\r\n
"
;
manifest_xml
+=
"
type=
\
'
win32
\
' />
\r\n
"
;
// Identify the application security requirements.
// Identify the application security requirements.
manifest_xml
+=
"
\t
<trustInfo xmlns=
\
'urn:schemas-microsoft-com:asm.v2
\
'>
\r\n
"
;
manifest_xml
+=
"
\t
<trustInfo xmlns=
\
'urn:schemas-microsoft-com:asm.v2
\
'>
\r\n
"
;
manifest_xml
+=
"
\t\t
<security>
\r\n\t\t\t
<requestedPrivileges>
\r\n\t\t\t\t
"
;
manifest_xml
+=
"
\t\t
<security>
\r\n\t\t\t
<requestedPrivileges>
\r\n\t\t\t\t
"
;
...
...
win/mysql_manifest.cmake
View file @
0068a372
...
@@ -9,7 +9,7 @@ MACRO(MYSQL_EMBED_MANIFEST _target_name _required_privs)
...
@@ -9,7 +9,7 @@ MACRO(MYSQL_EMBED_MANIFEST _target_name _required_privs)
TARGET
${
_target_name
}
TARGET
${
_target_name
}
PRE_LINK
PRE_LINK
COMMAND cscript.exe
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
ARGS
"
${
PROJECT_SOURCE_DIR
}
/win/create_manifest.js"
name=$
(
ProjectName
)
version=
${
VERSION
}
arch=
${
PROCESSOR_ARCH
}
exe_level=
${
_required_privs
}
outfile=$
(
IntDir
)
\\$
(
TargetFileName
)
.intermediate.manifest
COMMENT
"Generates the contents of the manifest contents."
)
COMMENT
"Generates the contents of the manifest contents."
)
ADD_CUSTOM_COMMAND
(
ADD_CUSTOM_COMMAND
(
TARGET
${
_target_name
}
TARGET
${
_target_name
}
...
...
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