summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorDmitry Polyanitsa <dpolyanitsa@nvidia.com>2014-12-17 14:11:51 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-17 16:17:28 (GMT)
commiteeaa25e52144626dc76717dea37af3b8d20cb171 (patch)
tree8489421493f714470a3b94bf9f94335e309f00ac /Source/cmVisualStudio10TargetGenerator.cxx
parent1b3ab3318dcdabe074da3c95b54f9483d47f95be (diff)
downloadCMake-eeaa25e52144626dc76717dea37af3b8d20cb171.zip
CMake-eeaa25e52144626dc76717dea37af3b8d20cb171.tar.gz
CMake-eeaa25e52144626dc76717dea37af3b8d20cb171.tar.bz2
Add 'ANDROID_API_MIN' target property to set Android Target MIN API
Also add a 'CMAKE_ANDROID_API_MIN' variable to set the property default. Teach the VS generator to write the MIN API value into Nsight Tegra project files.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index f903bdb..b265c0e 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -748,6 +748,12 @@ void cmVisualStudio10TargetGenerator
ntv += toolset? toolset : "Default";
ntv += "</NdkToolchainVersion>\n";
this->WriteString(ntv.c_str(), 2);
+ if(const char* minApi = this->Target->GetProperty("ANDROID_API_MIN"))
+ {
+ this->WriteString("<AndroidMinAPI>", 2);
+ (*this->BuildFileStream ) <<
+ "android-" << cmVS10EscapeXML(minApi) << "</AndroidMinAPI>\n";
+ }
if(const char* api = this->Target->GetProperty("ANDROID_API"))
{
this->WriteString("<AndroidTargetAPI>", 2);