diff options
author | Jeremiah van Oosten <jpvanoosten@hotmail.com> | 2018-04-23 13:04:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-24 15:29:16 (GMT) |
commit | 8d1ccbc693398b3ac67aa6f0cf222c6ed78fc9b8 (patch) | |
tree | d197ca00ffe3fb7d10a6d3690b35db190c9e52f8 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 1f372ac4e52ac7de65d3fc855b280388b70203f3 (diff) | |
download | CMake-8d1ccbc693398b3ac67aa6f0cf222c6ed78fc9b8.zip CMake-8d1ccbc693398b3ac67aa6f0cf222c6ed78fc9b8.tar.gz CMake-8d1ccbc693398b3ac67aa6f0cf222c6ed78fc9b8.tar.bz2 |
VS: Add VS_SHADER_OBJECT_FILE_NAME source file property
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index b56104e..1a618a0 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1590,6 +1590,7 @@ void cmVisualStudio10TargetGenerator::WriteExtraSource(cmSourceFile const* sf) std::string shaderAdditionalFlags; std::string shaderDisableOptimizations; std::string shaderEnableDebug; + std::string shaderObjectFileName; std::string outputHeaderFile; std::string variableName; std::string settingsGenerator; @@ -1666,6 +1667,10 @@ void cmVisualStudio10TargetGenerator::WriteExtraSource(cmSourceFile const* sf) shaderDisableOptimizations = cmSystemTools::IsOn(sdo) ? "true" : "false"; toolHasSettings = true; } + if (const char* sofn = sf->GetProperty("VS_SHADER_OBJECT_FILE_NAME")) { + shaderObjectFileName = sofn; + toolHasSettings = true; + } } else if (ext == "jpg" || ext == "png") { tool = "Image"; } else if (ext == "resw") { @@ -1808,6 +1813,9 @@ void cmVisualStudio10TargetGenerator::WriteExtraSource(cmSourceFile const* sf) this->WriteElemEscapeXML("DisableOptimizations", shaderDisableOptimizations, 3); } + if (!shaderObjectFileName.empty()) { + this->WriteElemEscapeXML("ObjectFileOutput", shaderObjectFileName, 3); + } if (!shaderAdditionalFlags.empty()) { this->WriteElemEscapeXML("AdditionalOptions", shaderAdditionalFlags, 3); } |