mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-04 06:59:25 +00:00
libgitg: fix linking on macOS
This commit is contained in:
parent
6dd8b8e009
commit
67f2d202d5
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue