|
|
@ -766,8 +766,9 @@ def find_external_dependency(name, kwargs): |
|
|
|
required = kwargs.get('required', True) |
|
|
|
required = kwargs.get('required', True) |
|
|
|
if not isinstance(required, bool): |
|
|
|
if not isinstance(required, bool): |
|
|
|
raise DependencyException('Keyword "required" must be a boolean.') |
|
|
|
raise DependencyException('Keyword "required" must be a boolean.') |
|
|
|
if name in packages: |
|
|
|
lname = name.lower() |
|
|
|
dep = packages[name](kwargs) |
|
|
|
if lname in packages: |
|
|
|
|
|
|
|
dep = packages[lname](kwargs) |
|
|
|
if required and not dep.found(): |
|
|
|
if required and not dep.found(): |
|
|
|
raise DependencyException('Dependency "%s" not found' % name) |
|
|
|
raise DependencyException('Dependency "%s" not found' % name) |
|
|
|
return dep |
|
|
|
return dep |
|
|
@ -791,7 +792,6 @@ packages = {'boost': BoostDependency, |
|
|
|
'gtest': GTestDependency, |
|
|
|
'gtest': GTestDependency, |
|
|
|
'gmock': GMockDependency, |
|
|
|
'gmock': GMockDependency, |
|
|
|
'qt5': Qt5Dependency, |
|
|
|
'qt5': Qt5Dependency, |
|
|
|
'Qt5': Qt5Dependency, # Qt people sure do love their upper case. |
|
|
|
|
|
|
|
'gnustep': GnuStepDependency, |
|
|
|
'gnustep': GnuStepDependency, |
|
|
|
'appleframeworks': AppleFrameworks, |
|
|
|
'appleframeworks': AppleFrameworks, |
|
|
|
'wxwidgets' : WxDependency, |
|
|
|
'wxwidgets' : WxDependency, |
|
|
|