From 33f5f06f38fce742816101924441f85e95f15375 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Tue, 12 Feb 2019 19:30:46 +0100 Subject: Added Mac support --- mesonbuild/dependencies/base.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 8bee2ce..80ef4c6 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -1186,6 +1186,13 @@ class CMakeDependency(ExternalDependency): if search_lib_dirs(os.path.join(i, k)): return True + # Mac framework support + for j in ['{}.framework', '{}.app']: + j = j.format(lname) + if j in content: + if find_module(os.path.join(i, j, 'Resources')): + return True + # Check the environment path env_path = os.environ.get('{}_DIR'.format(name)) if env_path and find_module(env_path): -- cgit v1.1