From 3d2009d96042705243926b149215f24f67f708d5 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 26 Jul 2018 17:00:28 +0100 Subject: [PATCH] uharfbuzz/CMakeLists.txt: link module with ApplicationServices framework on macOS Fixes #6 --- src/uharfbuzz/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/uharfbuzz/CMakeLists.txt b/src/uharfbuzz/CMakeLists.txt index b69e031..04b91dd 100644 --- a/src/uharfbuzz/CMakeLists.txt +++ b/src/uharfbuzz/CMakeLists.txt @@ -16,6 +16,16 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR} add_cython_target(_harfbuzz) add_library(_harfbuzz MODULE ${_harfbuzz}) + +if (APPLE) + find_library(APPLICATION_SERVICES_FRAMEWORK ApplicationServices) + if (NOT APPLICATION_SERVICES_FRAMEWORK) + message(FATAL_ERROR "HB_HAVE_CORETEXT was set, but we failed to find ApplicationServices, which is required") + else () + target_link_libraries(_harfbuzz ${APPLICATION_SERVICES_FRAMEWORK}) + endif () +endif () + target_link_libraries(_harfbuzz ${HARFBUZZ_LIBRARY}) python_extension_module(_harfbuzz)