Compile the core_text module using Objective-C

This commit is contained in:
Kovid Goyal
2017-01-10 21:14:20 +05:30
parent f15233b655
commit 54285a0f17
3 changed files with 108 additions and 78 deletions

View File

@@ -169,9 +169,9 @@ def option_parser():
def find_c_files():
ans = []
d = os.path.join(base, 'kitty')
exclude = {'freetype.c'} if isosx else {'core_text.c'}
exclude = {'freetype.c'} if isosx else {'core_text.m'}
for x in os.listdir(d):
if x.endswith('.c') and os.path.basename(x) not in exclude:
if (x.endswith('.c') or x.endswith('.m')) and os.path.basename(x) not in exclude:
ans.append(os.path.join('kitty', x))
ans.sort(key=lambda x: os.path.getmtime(os.path.join(base, x)), reverse=True)
ans.append('kitty/parser_dump.c')