mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
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:
parent
6cea0c68fb
commit
170466db26
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user