diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-05-08 06:11:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-16 18:41:05 (GMT) |
commit | b6412e3e38ba22bf816445f19394e7c8027c186f (patch) | |
tree | 7227811201094f5ffd37ce57def6a6ef95449422 /Source/cmRulePlaceholderExpander.cxx | |
parent | 7d7f31161d65d8b1f460eaf23e1b092bdaf7c238 (diff) | |
download | CMake-b6412e3e38ba22bf816445f19394e7c8027c186f.zip CMake-b6412e3e38ba22bf816445f19394e7c8027c186f.tar.gz CMake-b6412e3e38ba22bf816445f19394e7c8027c186f.tar.bz2 |
Ninja: add placeholders to support Swift build
Add the placeholders needed to support compiling Swift code.
Diffstat (limited to 'Source/cmRulePlaceholderExpander.cxx')
-rw-r--r-- | Source/cmRulePlaceholderExpander.cxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Source/cmRulePlaceholderExpander.cxx b/Source/cmRulePlaceholderExpander.cxx index 8751a11..33389ca 100644 --- a/Source/cmRulePlaceholderExpander.cxx +++ b/Source/cmRulePlaceholderExpander.cxx @@ -91,6 +91,31 @@ std::string cmRulePlaceholderExpander::ExpandRuleVariable( if (replaceValues.Includes && variable == "INCLUDES") { return replaceValues.Includes; } + if (replaceValues.SwiftLibraryName) { + if (variable == "SWIFT_LIBRARY_NAME") { + return replaceValues.SwiftLibraryName; + } + } + if (replaceValues.SwiftModule) { + if (variable == "SWIFT_MODULE") { + return replaceValues.SwiftModule; + } + } + if (replaceValues.SwiftModuleName) { + if (variable == "SWIFT_MODULE_NAME") { + return replaceValues.SwiftModuleName; + } + } + if (replaceValues.SwiftOutputFileMap) { + if (variable == "SWIFT_OUTPUT_FILE_MAP") { + return replaceValues.SwiftOutputFileMap; + } + } + if (replaceValues.SwiftSources) { + if (variable == "SWIFT_SOURCES") { + return replaceValues.SwiftSources; + } + } if (replaceValues.TargetPDB) { if (variable == "TARGET_PDB") { return replaceValues.TargetPDB; |