MCPcopy Create free account
hub / github.com/Kitware/CMake / SetupWriteRccInfo

Method SetupWriteRccInfo

Source/cmQtAutoGenInitializer.cxx:2091–2138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2089}
2090
2091bool cmQtAutoGenInitializer::SetupWriteRccInfo()
2092{
2093 for (Qrc const& qrc : this->Rcc.Qrcs) {
2094 // Utility lambdas
2095 auto MfDef = [this](std::string const& key) {
2096 return this->Makefile->GetSafeDefinition(key);
2097 };
2098
2099 InfoWriter info;
2100
2101 // General
2102 info.SetBool("MULTI_CONFIG", this->MultiConfig);
2103 info.SetBool("CROSS_CONFIG", this->CrossConfig);
2104 info.SetBool("USE_BETTER_GRAPH", this->UseBetterGraph);
2105 info.SetUInt("VERBOSITY", this->Verbosity);
2106 info.Set("GENERATOR", this->GlobalGen->GetName());
2107
2108 // Files
2109 info.Set("LOCK_FILE", qrc.LockFile);
2110 info.SetConfig("SETTINGS_FILE", qrc.SettingsFile);
2111
2112 // Directories
2113 info.Set("CMAKE_SOURCE_DIR", MfDef("CMAKE_SOURCE_DIR"));
2114 info.Set("CMAKE_BINARY_DIR", MfDef("CMAKE_BINARY_DIR"));
2115 info.Set("CMAKE_CURRENT_SOURCE_DIR", MfDef("CMAKE_CURRENT_SOURCE_DIR"));
2116 info.Set("CMAKE_CURRENT_BINARY_DIR", MfDef("CMAKE_CURRENT_BINARY_DIR"));
2117 info.Set("BUILD_DIR", this->Dir.Build);
2118 info.SetConfig("INCLUDE_DIR", this->Dir.Include);
2119
2120 // rcc executable
2121 info.SetConfig("RCC_EXECUTABLE", this->Rcc.Executable);
2122 info.SetConfigArray(
2123 "RCC_LIST_OPTIONS",
2124 generateListOptions(this->Rcc.ExecutableFeatures, this->MultiConfig));
2125
2126 // qrc file
2127 info.Set("SOURCE", qrc.QrcFile);
2128 info.Set("OUTPUT_CHECKSUM", qrc.QrcPathChecksum);
2129 info.Set("OUTPUT_NAME",
2130 cmSystemTools::GetFilenameName(qrc.OutputFileGenex));
2131 info.SetArray("OPTIONS", qrc.Options);
2132 info.SetConfigArray("INPUTS", qrc.Resources);
2133
2134 info.Save(qrc.InfoFile);
2135 }
2136
2137 return true;
2138}
2139
2140cmSourceFile* cmQtAutoGenInitializer::RegisterGeneratedSource(
2141 std::string const& filename)

Callers 1

SetupCustomTargetsMethod · 0.95

Calls 9

generateListOptionsFunction · 0.85
SetBoolMethod · 0.80
SetUIntMethod · 0.80
SetConfigArrayMethod · 0.80
SetArrayMethod · 0.80
SaveMethod · 0.80
SetMethod · 0.45
GetNameMethod · 0.45
SetConfigMethod · 0.45

Tested by

no test coverage detected