diff options
author | Pascal Bach <pascal.bach@siemens.com> | 2014-09-15 13:46:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-09-15 14:37:40 (GMT) |
commit | a3298f7790316322c60b7f2e618fb2ae01819a17 (patch) | |
tree | 82ea9e81af4de89e089d34e88f8a2ce23dec94d4 /Source/cmGlobalVisualStudio10Generator.h | |
parent | 0f2defba7d89aced3b667c6afe031abdfd152540 (diff) | |
download | CMake-a3298f7790316322c60b7f2e618fb2ae01819a17.zip CMake-a3298f7790316322c60b7f2e618fb2ae01819a17.tar.gz CMake-a3298f7790316322c60b7f2e618fb2ae01819a17.tar.bz2 |
VS: Teach VS >= 10 generator about Windows CE
When CMAKE_SYSTEM_NAME is 'WindowsCE':
* Set the Subsystem and EntryPointSymbol accordingly.
* When CMAKE_SYSTEM_VERSION is 8.0 (Windows CE 2013),
select the CE800 toolset by default.
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.h')
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.h b/Source/cmGlobalVisualStudio10Generator.h index f1ff9a4..c02d204 100644 --- a/Source/cmGlobalVisualStudio10Generator.h +++ b/Source/cmGlobalVisualStudio10Generator.h @@ -68,6 +68,10 @@ public: /** Return the CMAKE_SYSTEM_VERSION. */ std::string const& GetSystemVersion() const { return this->SystemVersion; } + /** Return true if building for WindowsCE */ + bool TargetsWindowsCE() const + { return this->SystemIsWindowsCE; } + /** Return true if building for WindowsPhone */ bool TargetsWindowsPhone() const { return this->SystemIsWindowsPhone; } @@ -105,8 +109,10 @@ public: protected: virtual void Generate(); virtual bool InitializeSystem(cmMakefile* mf); + virtual bool InitializeWindowsCE(cmMakefile* mf); virtual bool InitializeWindowsPhone(cmMakefile* mf); virtual bool InitializeWindowsStore(cmMakefile* mf); + virtual std::string SelectWindowsCEToolset() const; virtual std::string SelectWindowsPhoneToolset() const { return ""; } virtual std::string SelectWindowsStoreToolset() const { return ""; } @@ -118,6 +124,7 @@ protected: std::string DefaultPlatformToolset; std::string SystemName; std::string SystemVersion; + bool SystemIsWindowsCE; bool SystemIsWindowsPhone; bool SystemIsWindowsStore; bool ExpressEdition; |