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

Method GenerateImportTargetCode

Source/cmExportInstallAndroidMKGenerator.cxx:99–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void cmExportInstallAndroidMKGenerator::GenerateImportTargetCode(
100 std::ostream& os, cmGeneratorTarget const* target,
101 cmStateEnums::TargetType /*targetType*/)
102{
103 std::string targetName = cmStrCat(this->Namespace, target->GetExportName());
104 os << "include $(CLEAR_VARS)\n";
105 os << "LOCAL_MODULE := ";
106 os << targetName << "\n";
107 os << "LOCAL_SRC_FILES := $(_IMPORT_PREFIX)/";
108 os << target->Target->GetSafeProperty("__dest") << "/";
109 std::string config;
110 if (!this->Configurations.empty()) {
111 config = this->Configurations[0];
112 }
113 os << target->GetFullName(config) << "\n";
114}

Callers 1

GenerateMainFileMethod · 0.95

Calls 4

GetExportNameMethod · 0.80
cmStrCatFunction · 0.70
emptyMethod · 0.45
GetFullNameMethod · 0.45

Tested by

no test coverage detected