mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
3fd931d392
This gets the basic mechanics of the drop portion of DnD working on the macOS backend. You can drag, for example, from TextEdit into GNOME Text Editor when using the macOS backend. Other content formats are supported, and match what is currently supported by the clipboard backend as the implementation to read from the pasteboard is shared. Currently, we look up the GdkDrag for the new GdkDrop. However, nothing is stashing the drag away for further lookup. More work is needed on GdkMacosDrag for that to be doable.
66 lines
1.4 KiB
Meson
66 lines
1.4 KiB
Meson
gdk_macos_sources = files([
|
|
'edgesnapping.c',
|
|
|
|
'gdkdisplaylinksource.c',
|
|
'gdkmacoscairocontext.c',
|
|
'gdkmacosclipboard.c',
|
|
'gdkmacoscursor.c',
|
|
'gdkmacosdevice.c',
|
|
'gdkmacosdisplay.c',
|
|
'gdkmacosdisplay-settings.c',
|
|
'gdkmacosdisplay-translate.c',
|
|
'gdkmacosdrag.c',
|
|
'gdkmacosdrop.c',
|
|
'gdkmacosdragsurface.c',
|
|
'gdkmacosglcontext.c',
|
|
'gdkmacoseventsource.c',
|
|
'gdkmacoskeymap.c',
|
|
'gdkmacosmonitor.c',
|
|
'gdkmacospopupsurface.c',
|
|
'gdkmacosseat.c',
|
|
'gdkmacossurface.c',
|
|
'gdkmacostoplevelsurface.c',
|
|
|
|
'GdkMacosBaseView.c',
|
|
'GdkMacosCairoView.c',
|
|
'GdkMacosCairoSubview.c',
|
|
'GdkMacosGLView.c',
|
|
'GdkMacosWindow.c',
|
|
])
|
|
|
|
gdk_macos_public_headers = files([
|
|
'gdkmacosdevice.h',
|
|
'gdkmacosdisplay.h',
|
|
'gdkmacosglcontext.h',
|
|
'gdkmacoskeymap.h',
|
|
'gdkmacosmonitor.h',
|
|
'gdkmacosseat.h',
|
|
'gdkmacossurface.h',
|
|
])
|
|
|
|
install_headers(gdk_macos_public_headers, 'gdkmacos.h', subdir: 'gtk-4.0/gdk/macos/')
|
|
|
|
gdk_macos_frameworks = [
|
|
'AppKit',
|
|
'Carbon',
|
|
'CoreVideo',
|
|
'CoreServices',
|
|
'Foundation',
|
|
'OpenGL',
|
|
'QuartzCore',
|
|
]
|
|
|
|
gdk_macos_deps = [
|
|
dependency('appleframeworks', modules: gdk_macos_frameworks)
|
|
]
|
|
|
|
libgdk_c_args += ['-xobjective-c']
|
|
|
|
libgdk_macos = static_library('gdk-macos',
|
|
gdk_macos_sources, gdkconfig, gdkenum_h,
|
|
include_directories: [ confinc, gdkinc, ],
|
|
c_args: [ libgdk_c_args, common_cflags, ],
|
|
link_with: [],
|
|
dependencies: [ gdk_deps, gdk_macos_deps, ],
|
|
)
|