forked from AuroraMiddleware/gtk
meson: Build fixes for macOS
This commit is contained in:
parent
cde5a3f4b4
commit
89d5c543ac
@ -249,6 +249,9 @@ foreach backend : ['broadway', 'quartz', 'wayland', 'win32', 'x11']
|
|||||||
if backend == 'wayland'
|
if backend == 'wayland'
|
||||||
gdk_backends_gen_headers += get_variable('gdk_@0@_gen_headers'.format(backend))
|
gdk_backends_gen_headers += get_variable('gdk_@0@_gen_headers'.format(backend))
|
||||||
endif
|
endif
|
||||||
|
if backend == 'quartz'
|
||||||
|
common_cflags += ['-DGDK_WINDOWING_QUARTZ', '-xobjective-c']
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
# FIXME: do we need to do an add_language() for objective-c here?
|
|
||||||
|
add_languages(['objc'])
|
||||||
|
|
||||||
gdk_quartz_sources = files(
|
gdk_quartz_sources = files(
|
||||||
'GdkQuartzView.c',
|
'GdkQuartzView.c',
|
||||||
'GdkQuartzNSWindow.c',
|
'GdkQuartzNSWindow.c',
|
||||||
@ -41,8 +43,12 @@ gdk_quartz_public_headers = files(
|
|||||||
install_headers(gdk_quartz_public_headers, subdir: 'gtk-3.0/gdk/quartz')
|
install_headers(gdk_quartz_public_headers, subdir: 'gtk-3.0/gdk/quartz')
|
||||||
install_headers('gdkquartz.h', subdir: 'gtk-3.0/gdk')
|
install_headers('gdkquartz.h', subdir: 'gtk-3.0/gdk')
|
||||||
|
|
||||||
gdk_quartz_deps = [ # FIXME
|
core_graphics_dep = dependency('appleframeworks', modules : 'CoreGraphics', required : true)
|
||||||
]
|
appkit_dep = dependency('appleframeworks', modules : 'AppKit', required : true)
|
||||||
|
cocoa_dep = dependency('appleframeworks', modules : 'Cocoa', required : true)
|
||||||
|
carbon_dep = dependency('appleframeworks', modules : 'Carbon', required : true)
|
||||||
|
|
||||||
|
gdk_quartz_deps = [ core_graphics_dep, appkit_dep, cocoa_dep, carbon_dep ]
|
||||||
|
|
||||||
libgdk_quartz = static_library('gdk-quartz',
|
libgdk_quartz = static_library('gdk-quartz',
|
||||||
gdk_quartz_sources, gdkconfig, gdkenum_h,
|
gdk_quartz_sources, gdkconfig, gdkenum_h,
|
||||||
|
@ -846,7 +846,7 @@ endif
|
|||||||
|
|
||||||
if quartz_enabled
|
if quartz_enabled
|
||||||
gtk_sources += gtk_use_quartz_sources
|
gtk_sources += gtk_use_quartz_sources
|
||||||
gtk_cargs += ['-xobjective-c'] # FIXME? maybe add_languages() instead?
|
gtk_cargs += ['-DGDK_WINDOWING_QUARTZ', '-xobjective-c'] # FIXME? maybe add_languages() instead?
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# So we don't add these twice
|
# So we don't add these twice
|
||||||
|
@ -505,7 +505,7 @@ if broadway_enabled
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if quartz_enabled
|
if quartz_enabled
|
||||||
pc_gdk_extra_libs += ['-framework Cocoa', '-framework Carbon']
|
pc_gdk_extra_libs += ['-framework Cocoa', '-framework Carbon', '-framework CoreGraphics']
|
||||||
backend_immodules += ['quartz']
|
backend_immodules += ['quartz']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user