gio: fix compiling on macOS by moving all Objective-C file into libgio-objc-2.0

Previously, only gnextstepsettingsbackend.c was taken into account.

https://bugzilla.gnome.org/show_bug.cgi?id=793565
This commit is contained in:
Dr. Michael Lauer 2018-02-26 13:08:27 +01:00 committed by Philip Withnall
parent 6cea0c68fb
commit 170466db26

View File

@ -289,12 +289,6 @@ unix_sources = \
$(portal_sources) \
$(NULL)
if OS_COCOA
if MAC_OS_X_9
unix_sources += gcocoanotificationbackend.c
endif
endif
giounixincludedir=$(includedir)/gio-unix-2.0/gio
giounixinclude_HEADERS = \
gfiledescriptorbased.h \
@ -401,11 +395,6 @@ portal_sources = \
$(xdp_dbus_built_sources) \
$(NULL)
if OS_COCOA
contenttype_sources += gosxcontenttype.c
appinfo_sources += gosxappinfo.c gosxappinfo.h
endif
if OS_UNIX
if !OS_COCOA
contenttype_sources += gcontenttype.c
@ -619,7 +608,12 @@ if OS_COCOA
libgio_objc_2_0_la_CFLAGS = $(libgio_2_0_la_CFLAGS) -xobjective-c
libgio_objc_2_0_la_CPPFLAGS = $(libgio_2_0_la_CPPFLAGS)
libgio_objc_2_0_la_LDFLAGS = $(libgio_2_0_la_LDFLAGS) -Wl,-framework,Foundation -Wl,-framework,AppKit
libgio_objc_2_0_la_SOURCES = gnextstepsettingsbackend.c
libgio_objc_2_0_la_SOURCES = \
gnextstepsettingsbackend.c \
gosxcontenttype.c \
gosxappinfo.c \
gosxappinfo.h \
gcocoanotificationbackend.c
noinst_LTLIBRARIES += libgio-objc-2.0.la
libgio_2_0_la_LIBADD += libgio-objc-2.0.la