llvmbuild/CMake: Update CMake output fragment to include explicit library

dependency information.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar
2011-11-29 00:06:50 +00:00
parent 7ca7b53804
commit 5086de6f87
2 changed files with 66 additions and 0 deletions

View File

@@ -138,6 +138,23 @@ class LibraryComponentInfo(ComponentInfo):
def get_library_name(self):
return self.library_name or self.name
def get_prefixed_library_name(self):
"""
get_prefixed_library_name() -> str
Return the library name prefixed by the project name. This is generally
what the library name will be on disk.
"""
basename = self.get_library_name()
# FIXME: We need to get the prefix information from an explicit project
# object, or something.
if basename in ('gtest', 'gtest_main'):
return basename
return 'LLVM%s' % basename
def get_llvmconfig_component_name(self):
return self.get_library_name().lower()