2020-04-23 23:36:46 +00:00
|
|
|
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',
|
2021-06-18 00:23:10 +00:00
|
|
|
'gdkmacosdrop.c',
|
2020-04-23 23:36:46 +00:00
|
|
|
'gdkmacosdragsurface.c',
|
|
|
|
'gdkmacosglcontext.c',
|
|
|
|
'gdkmacoseventsource.c',
|
|
|
|
'gdkmacoskeymap.c',
|
|
|
|
'gdkmacosmonitor.c',
|
|
|
|
'gdkmacospopupsurface.c',
|
|
|
|
'gdkmacosseat.c',
|
|
|
|
'gdkmacossurface.c',
|
|
|
|
'gdkmacostoplevelsurface.c',
|
|
|
|
|
|
|
|
'GdkMacosBaseView.c',
|
|
|
|
'GdkMacosCairoView.c',
|
|
|
|
'GdkMacosCairoSubview.c',
|
2020-10-29 17:33:22 +00:00
|
|
|
'GdkMacosGLView.c',
|
2020-04-23 23:36:46 +00:00
|
|
|
'GdkMacosWindow.c',
|
|
|
|
])
|
|
|
|
|
|
|
|
gdk_macos_public_headers = files([
|
|
|
|
'gdkmacosdevice.h',
|
|
|
|
'gdkmacosdisplay.h',
|
|
|
|
'gdkmacosglcontext.h',
|
|
|
|
'gdkmacoskeymap.h',
|
|
|
|
'gdkmacosmonitor.h',
|
2021-01-07 12:40:12 +00:00
|
|
|
'gdkmacosseat.h',
|
2020-04-23 23:36:46 +00:00
|
|
|
'gdkmacossurface.h',
|
|
|
|
])
|
|
|
|
|
|
|
|
install_headers(gdk_macos_public_headers, 'gdkmacos.h', subdir: 'gtk-4.0/gdk/macos/')
|
|
|
|
|
|
|
|
gdk_macos_frameworks = [
|
|
|
|
'AppKit',
|
|
|
|
'Carbon',
|
|
|
|
'CoreVideo',
|
|
|
|
'CoreServices',
|
2020-10-10 03:02:18 +00:00
|
|
|
'Foundation',
|
2020-04-23 23:36:46 +00:00
|
|
|
'OpenGL',
|
|
|
|
'QuartzCore',
|
|
|
|
]
|
|
|
|
|
|
|
|
gdk_macos_deps = [
|
|
|
|
dependency('appleframeworks', modules: gdk_macos_frameworks)
|
|
|
|
]
|
|
|
|
|
|
|
|
libgdk_c_args += ['-xobjective-c']
|
|
|
|
|
|
|
|
libgdk_macos = static_library('gdk-macos',
|
2020-12-15 12:31:38 +00:00
|
|
|
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, ],
|
|
|
|
)
|