Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
7035bdeb
Commit
7035bdeb
authored
Jun 19, 2019
by
Wil Stark
Browse files
VS10Generator: add project properties to enable WindowsCE deployment.
Fixes:
#19408
parent
90bd7d0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/cmVisualStudio10TargetGenerator.cxx
View file @
7035bdeb
...
...
@@ -505,6 +505,11 @@ void cmVisualStudio10TargetGenerator::Generate()
if
(
targetFrameworkVersion
)
{
e1
.
Element
(
"TargetFrameworkVersion"
,
targetFrameworkVersion
);
}
if
(
this
->
ProjectType
==
vcxproj
&&
this
->
GlobalGenerator
->
TargetsWindowsCE
())
{
e1
.
Element
(
"EnableRedirectPlatform"
,
"true"
);
e1
.
Element
(
"RedirectPlatformValue"
,
this
->
Platform
);
}
if
(
this
->
ProjectType
==
csproj
&&
this
->
GlobalGenerator
->
TargetsWindowsCE
())
{
const
char
*
targetFrameworkId
=
this
->
GeneratorTarget
->
GetProperty
(
...
...
Tests/RunCMake/VS10ProjectWinCE/VsCEDebuggerDeploy-check.cmake
View file @
7035bdeb
...
...
@@ -14,6 +14,9 @@ endif()
set
(
FoundCEAdditionalFiles FALSE
)
set
(
FoundRemoteDirectory FALSE
)
set
(
FoundToolsVersion4 FALSE
)
set
(
FoundEnableRedirectPlatform FALSE
)
set
(
FoundRedirectPlatformValue FALSE
)
file
(
STRINGS
"
${
vcProjectFile
}
"
lines
)
foreach
(
line IN LISTS lines
)
...
...
@@ -23,6 +26,10 @@ foreach(line IN LISTS lines)
set
(
FoundRemoteDirectory TRUE
)
elseif
(
line MATCHES
" *<Project +.*ToolsVersion=
\"
4.0
\"
.*> *$"
)
set
(
FoundToolsVersion4 TRUE
)
elseif
(
line MATCHES
"^ *<EnableRedirectPlatform>true</EnableRedirectPlatform> *$"
)
set
(
FoundEnableRedirectPlatform TRUE
)
elseif
(
line MATCHES
"^ *<RedirectPlatformValue>.+</RedirectPlatformValue> *$"
)
set
(
FoundRedirectPlatformValue TRUE
)
endif
()
endforeach
()
...
...
@@ -41,6 +48,16 @@ if(NOT FoundToolsVersion4)
return
()
endif
()
if
(
NOT FoundEnableRedirectPlatform
)
set
(
RunCMake_TEST_FAILED
"Failed to find EnableRedirectPlatform true property."
)
return
()
endif
()
if
(
NOT FoundRedirectPlatformValue
)
set
(
RunCMake_TEST_FAILED
"Failed to find RedirectPlatformValue property."
)
return
()
endif
()
#
# Test solution file deployment items.
#
...
...
Brad King
@brad.king
mentioned in commit
1ba0cd29
·
Jun 24, 2019
mentioned in commit
1ba0cd29
mentioned in commit 1ba0cd29677ad077a646f55d705c8f45433cd21d
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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