Skip to content

Commit

Permalink
Merge pull request #72 from harfbuzz/build-coretext
Browse files Browse the repository at this point in the history
Build coretext shaper by default on OS X
  • Loading branch information
justvanrossum committed Mar 17, 2021
2 parents 4f3affa + 8d8693f commit da2e6d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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(
Expand Down

0 comments on commit da2e6d5

Please sign in to comment.