|
|
@ -353,14 +353,14 @@ class InternalDependency(Dependency): |
|
|
|
new_dep.libraries = [] |
|
|
|
new_dep.libraries = [] |
|
|
|
return new_dep |
|
|
|
return new_dep |
|
|
|
|
|
|
|
|
|
|
|
def get_as_static(self, recursive: bool) -> Dependency: |
|
|
|
def get_as_static(self, recursive: bool) -> InternalDependency: |
|
|
|
new_dep = copy.copy(self) |
|
|
|
new_dep = copy.copy(self) |
|
|
|
new_dep.libraries = [lib.get('static') for lib in self.libraries] |
|
|
|
new_dep.libraries = [lib.get('static') for lib in self.libraries] |
|
|
|
if recursive: |
|
|
|
if recursive: |
|
|
|
new_dep.ext_deps = [dep.get_as_static(True) for dep in self.ext_deps] |
|
|
|
new_dep.ext_deps = [dep.get_as_static(True) for dep in self.ext_deps] |
|
|
|
return new_dep |
|
|
|
return new_dep |
|
|
|
|
|
|
|
|
|
|
|
def get_as_shared(self, recursive: bool) -> Dependency: |
|
|
|
def get_as_shared(self, recursive: bool) -> InternalDependency: |
|
|
|
new_dep = copy.copy(self) |
|
|
|
new_dep = copy.copy(self) |
|
|
|
new_dep.libraries = [lib.get('shared') for lib in self.libraries] |
|
|
|
new_dep.libraries = [lib.get('shared') for lib in self.libraries] |
|
|
|
if recursive: |
|
|
|
if recursive: |
|
|
|