libgitg: fix linking on macOS

This commit is contained in:
Tom Schoonjans 2018-10-24 08:28:26 +01:00
parent 6dd8b8e009
commit 67f2d202d5

View file

@ -112,14 +112,9 @@ if gdk_targets.contains('quartz')
sources += files('gitg-platform-support-osx.c') sources += files('gitg-platform-support-osx.c')
deps += [ deps += [
dependency('gio-unix-2.0'), dependency('gio-unix-2.0'),
find_library('objc'), dependency('appleframeworks', modules : ['foundation', 'appkit'])
] ]
cflags += '-xobjective-c' cflags += '-xobjective-c'
ldflags += cc.get_supported_link_arguments([
'-framework Foundation',
'-framework AppKit',
])
elif gdk_targets.contains('win32') elif gdk_targets.contains('win32')
sources += files('gitg-platform-support-win32.c') sources += files('gitg-platform-support-win32.c')
deps += dependency('gio-windows-2.0') deps += dependency('gio-windows-2.0')