From 8d8693f69ee4d0c2d3fda8c8ed440e4ee318f848 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Wed, 17 Feb 2021 14:29:20 +0000 Subject: [PATCH] Build coretext shaper by default on OS X --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 8a9bab8..25b2a87 100755 --- a/setup.py +++ b/setup.py @@ -20,8 +20,12 @@ define_macros.append(('CYTHON_TRACE_NOGIL', '1')) extra_compile_args = [] +extra_link_args = [] if platform.system() != 'Windows': extra_compile_args.append('-std=c++11') +if platform.system() == 'Darwin': + define_macros.append(('HAVE_CORETEXT', '1')) + extra_link_args.extend(['-framework', 'ApplicationServices']) extension = Extension( 'uharfbuzz._harfbuzz', @@ -30,6 +34,7 @@ sources=['src/uharfbuzz/_harfbuzz.pyx', 'harfbuzz/src/harfbuzz.cc'], language='c++', extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args, ) setup(