keep previous lowercase conversion
@@ -35,7 +35,10 @@ class PkgConfigGenerator(Generator):
def content(self):
ret = {}
for depname, cpp_info in self.deps_build_info.dependencies:
+ if cpp_info.name and cpp_info.get_name("pkg_config") != cpp_info.name:
name = cpp_info.get_name("pkg_config")
+ else:
+ name = cpp_info.name.lower() if cpp_info.name != depname else depname
ret["%s.pc" % name] = self.single_pc_file_contents(name, cpp_info)
return ret
