| 198 | } |
| 199 | |
| 200 | static Result expandBuildDirectoryVariables(StringView source, const Parameters& parameters, |
| 201 | const Configuration& configuration, String& output) |
| 202 | { |
| 203 | const ProjectWriter::ReplacePair substitutions[] = { |
| 204 | {"$(TARGET_OS)", buildPlatformName(parameters.platform)}, |
| 205 | {"$(TARGET_ARCHITECTURES)", buildArchitectureName(parameters, configuration)}, |
| 206 | {"$(BUILD_SYSTEM)", buildSystemName(parameters.generator)}, |
| 207 | {"$(COMPILER)", compilerName(parameters)}, |
| 208 | {"$(CONFIGURATION)", configuration.name.view()}, |
| 209 | }; |
| 210 | auto builder = StringBuilder::create(output); |
| 211 | SC_TRY(ProjectWriter::appendReplaceMultiple(builder, source, substitutions)); |
| 212 | builder.finalize(); |
| 213 | return Result(true); |
| 214 | } |
| 215 | |
| 216 | static Result computeExecutableDirectory(const Project& project, const Parameters& parameters, |
| 217 | const Configuration& configuration, String& executableDirectory) |
no test coverage detected