diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-04-04 02:37:17 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-04-04 02:37:17 +0300 |
commit | 710eb79a922164b6a687edea0c7c9879bc778d0c (patch) | |
tree | c44e425a3426e24ee23dbcd8af5239a0abe83e27 /dependencies.py | |
parent | 88d88f43a704189e7fa45323a60deb23a86e17f3 (diff) | |
download | meson-710eb79a922164b6a687edea0c7c9879bc778d0c.zip meson-710eb79a922164b6a687edea0c7c9879bc778d0c.tar.gz meson-710eb79a922164b6a687edea0c7c9879bc778d0c.tar.bz2 |
Work if framework dep is missing and optional.
Diffstat (limited to 'dependencies.py')
-rw-r--r-- | dependencies.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dependencies.py b/dependencies.py index 71cb0a7..1c5afba 100644 --- a/dependencies.py +++ b/dependencies.py @@ -745,10 +745,14 @@ class ExtraFrameworkDependency(Dependency): return def get_compile_args(self): - return ['-I' + os.path.join(self.path, self.name, 'Headers')] + if self.found(): + return ['-I' + os.path.join(self.path, self.name, 'Headers')] + return [] def get_link_args(self): - return ['-F' + self.path, '-framework', self.name.split('.')[0]] + if self.found(): + return ['-F' + self.path, '-framework', self.name.split('.')[0]] + return [] def found(self): return self.name is not None |