2016-08-15 08:03:57 +00:00
|
|
|
deprecated_gdk_sources = ['deprecated/gdkcolor.c']
|
2016-08-23 06:21:54 +00:00
|
|
|
gdk_sources = files([
|
2016-08-15 08:03:57 +00:00
|
|
|
'gdk-private.c',
|
|
|
|
'gdk.c',
|
|
|
|
'gdkapplaunchcontext.c',
|
|
|
|
'gdkcairo.c',
|
|
|
|
'gdkcursor.c',
|
|
|
|
'gdkdeprecated.c',
|
|
|
|
'gdkdevice.c',
|
|
|
|
'gdkdevicemanager.c',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gdkdevicepad.c',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gdkdisplay.c',
|
|
|
|
'gdkdisplaymanager.c',
|
|
|
|
'gdkdnd.c',
|
|
|
|
'gdkevents.c',
|
|
|
|
'gdkframetimings.c',
|
|
|
|
'gdkgl.c',
|
|
|
|
'gdkglcontext.c',
|
|
|
|
'gdkglobals.c',
|
|
|
|
'gdkkeys.c',
|
|
|
|
'gdkkeyuni.c',
|
|
|
|
'gdkoffscreenwindow.c',
|
|
|
|
'gdkframeclock.c',
|
|
|
|
'gdkframeclockidle.c',
|
|
|
|
'gdkpango.c',
|
|
|
|
'gdkpixbuf-drawable.c',
|
|
|
|
'gdkproperty.c',
|
|
|
|
'gdkrectangle.c',
|
|
|
|
'gdkrgba.c',
|
|
|
|
'gdkscreen.c',
|
|
|
|
'gdkselection.c',
|
|
|
|
'gdkvisual.c',
|
|
|
|
'gdkwindow.c',
|
|
|
|
'gdkwindowimpl.c',
|
2016-08-21 14:00:37 +00:00
|
|
|
'gdkseat.c',
|
|
|
|
'gdkseatdefault.c',
|
|
|
|
'gdkdevicetool.c',
|
|
|
|
'gdkdrawingcontext.c',
|
|
|
|
'gdkmonitor.c'
|
2016-08-23 06:21:54 +00:00
|
|
|
])
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2016-08-23 06:21:54 +00:00
|
|
|
gdk_public_h_sources = files([
|
2016-08-15 08:03:57 +00:00
|
|
|
'gdk.h',
|
|
|
|
'gdk-autocleanup.h',
|
|
|
|
'gdkapplaunchcontext.h',
|
|
|
|
'gdkcairo.h',
|
|
|
|
'gdkcursor.h',
|
|
|
|
'gdkdevice.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gdkdevicetool.h',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gdkdevicemanager.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gdkdevicepad.h',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gdkdisplay.h',
|
|
|
|
'gdkdisplaymanager.h',
|
|
|
|
'gdkdnd.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gdkdrawingcontext.h',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gdkevents.h',
|
|
|
|
'gdkframetimings.h',
|
|
|
|
'gdkglcontext.h',
|
|
|
|
'gdkkeys.h',
|
|
|
|
'gdkkeysyms.h',
|
|
|
|
'gdkmain.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gdkmonitor.h',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gdkpango.h',
|
|
|
|
'gdkframeclock.h',
|
|
|
|
'gdkpixbuf.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gdkprivate.h',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gdkproperty.h',
|
|
|
|
'gdkrectangle.h',
|
|
|
|
'gdkrgba.h',
|
|
|
|
'gdkscreen.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
'gdkseat.h',
|
2016-08-15 08:03:57 +00:00
|
|
|
'gdkselection.h',
|
|
|
|
'gdktestutils.h',
|
|
|
|
'gdkthreads.h',
|
|
|
|
'gdktypes.h',
|
|
|
|
'gdkvisual.h',
|
2016-08-21 14:00:37 +00:00
|
|
|
'gdkwindow.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
])
|
2016-08-21 14:00:37 +00:00
|
|
|
|
2016-08-23 06:21:54 +00:00
|
|
|
gdk_private_h_sources = files([
|
2016-08-21 14:00:37 +00:00
|
|
|
'gdkseatdefaultprivate.h',
|
|
|
|
'gdkdevicetoolprivate.h',
|
|
|
|
'gdkdrawingcontextprivate.h',
|
|
|
|
'gdkmonitorprivate.h',
|
|
|
|
'gdkprivate.h',
|
2016-08-23 06:21:54 +00:00
|
|
|
])
|
2016-08-15 08:03:57 +00:00
|
|
|
|
|
|
|
gdk_x_sources = [
|
|
|
|
'x11/MwmUtil.h',
|
|
|
|
'x11/gdkapplaunchcontext-x11.c',
|
|
|
|
'x11/gdkasync.c',
|
|
|
|
'x11/gdkasync.h',
|
|
|
|
'x11/gdkcursor-x11.c',
|
|
|
|
'x11/gdkdevice-core-x11.c',
|
|
|
|
'x11/gdkdevice-xi2.c',
|
|
|
|
'x11/gdkdevicemanager-core-x11.c',
|
|
|
|
'x11/gdkdevicemanager-x11.c',
|
|
|
|
'x11/gdkdevicemanager-xi2.c',
|
|
|
|
'x11/gdkdisplaymanager-x11.c',
|
|
|
|
'x11/gdkdisplay-x11.c',
|
|
|
|
'x11/gdkdisplay-x11.h',
|
|
|
|
'x11/gdkdnd-x11.c',
|
|
|
|
'x11/gdkeventsource.c',
|
|
|
|
'x11/gdkeventsource.h',
|
|
|
|
'x11/gdkeventtranslator.c',
|
|
|
|
'x11/gdkeventtranslator.h',
|
|
|
|
'x11/gdkgeometry-x11.c',
|
|
|
|
'x11/gdkglcontext-x11.c',
|
|
|
|
'x11/gdkglcontext-x11.h',
|
|
|
|
'x11/gdkkeys-x11.c',
|
|
|
|
'x11/gdkmain-x11.c',
|
|
|
|
'x11/gdkproperty-x11.c',
|
|
|
|
'x11/gdkscreen-x11.c',
|
|
|
|
'x11/gdkscreen-x11.h',
|
|
|
|
'x11/gdkselection-x11.c',
|
|
|
|
'x11/gdktestutils-x11.c',
|
|
|
|
'x11/gdkvisual-x11.c',
|
|
|
|
'x11/gdkwindow-x11.c',
|
|
|
|
'x11/gdkwindow-x11.h',
|
|
|
|
'x11/gdkxftdefaults.c',
|
|
|
|
'x11/gdkxid.c',
|
|
|
|
'x11/gdkx.h',
|
|
|
|
'x11/xsettings-client.h',
|
|
|
|
'x11/xsettings-client.c',
|
2016-08-21 14:00:37 +00:00
|
|
|
'x11/gdkmonitor-x11.c',
|
|
|
|
'x11/gdkmonitor-x11.h',
|
|
|
|
'x11/gdkx11monitor.h'
|
|
|
|
]
|
|
|
|
|
|
|
|
gdk_x_private_sources = [
|
|
|
|
'x11/gdkprivate-x11.h',
|
|
|
|
'x11/gdkdevicemanagerprivate-core.h',
|
|
|
|
]
|
|
|
|
|
2016-08-23 06:21:54 +00:00
|
|
|
# gdk_wayland_sources = [
|
|
|
|
# 'wayland/gdkapplaunchcontext-wayland.c',
|
|
|
|
# 'wayland/gdkcursor-wayland.c',
|
|
|
|
# 'wayland/gdkdevice-wayland.c',
|
|
|
|
# 'wayland/gdkdisplay-wayland.c',
|
|
|
|
# 'wayland/gdkdisplay-wayland.h',
|
|
|
|
# 'wayland/gdkdnd-wayland.c',
|
|
|
|
# 'wayland/gdkeventsource.c',
|
|
|
|
# 'wayland/gdkglcontext-wayland.c',
|
|
|
|
# 'wayland/gdkglcontext-wayland.h',
|
|
|
|
# 'wayland/gdkkeys-wayland.c',
|
|
|
|
# 'wayland/gdkmonitor-wayland.c',
|
|
|
|
# 'wayland/gdkmonitor-wayland.h',
|
|
|
|
# 'wayland/gdkscreen-wayland.c',
|
|
|
|
# 'wayland/gdkseat-wayland.h',
|
|
|
|
# 'wayland/gdkselection-wayland.c',
|
|
|
|
# 'wayland/gdkwaylanddevice.h',
|
|
|
|
# 'wayland/gdkwaylanddisplay.h',
|
|
|
|
# 'wayland/gdkwaylandglcontext.h',
|
|
|
|
# 'wayland/gdkwayland.h',
|
|
|
|
# 'wayland/gdkwaylandmonitor.h',
|
|
|
|
# 'wayland/gdkwaylandselection.h',
|
|
|
|
# 'wayland/gdkwaylandwindow.h',
|
|
|
|
# 'wayland/gdkwindow-wayland.c',
|
|
|
|
# 'wayland/wm-button-layout-translation.c',
|
|
|
|
# 'wayland/gtk-primary-selection-protocol.c',
|
|
|
|
# 'wayland/gtk-shell-protocol.c',
|
|
|
|
# 'wayland/xdg-shell-unstable-v5-protocol.c',
|
|
|
|
# 'wayland/pointer-gestures-unstable-v1-protocol.c',
|
|
|
|
# 'wayland/tablet-unstable-v2-protocol.c',
|
|
|
|
# ]
|
|
|
|
|
|
|
|
# gdk_wayland_private_sources = [
|
|
|
|
# 'wayland/gdkprivate-wayland.h',
|
|
|
|
# ]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# gdk_broadway_sources = [
|
|
|
|
# 'broadway/gdkdisplay-broadway.c',
|
|
|
|
# 'broadway/gdkdisplay-broadway.h',
|
|
|
|
# 'broadway/gdkscreen-broadway.c',
|
|
|
|
# 'broadway/gdkscreen-broadway.h',
|
|
|
|
# 'broadway/broadway-output.c',
|
|
|
|
# 'broadway/broadway-output.h',
|
|
|
|
# 'broadway/broadway-server.h',
|
|
|
|
# 'broadway/broadway-server.c',
|
|
|
|
# 'broadway/gdkbroadway-server.c',
|
|
|
|
# 'broadway/gdkcursor-broadway.c',
|
|
|
|
# 'broadway/gdkvisual-broadway.c',
|
|
|
|
# 'broadway/gdkselection-broadway.c',
|
|
|
|
# 'broadway/gdkwindow-broadway.c',
|
|
|
|
# 'broadway/gdkwindow-broadway.h',
|
|
|
|
# 'broadway/gdkmonitor-broadway.c',
|
|
|
|
# 'broadway/gdkmonitor-broadway.h',
|
|
|
|
# 'broadway/gdkkeys-broadway.c',
|
|
|
|
# 'broadway/gdkglobals-broadway.c',
|
|
|
|
# 'broadway/gdkeventsource.c',
|
|
|
|
# 'broadway/gdkeventsource.h',
|
|
|
|
# 'broadway/gdkdnd-broadway.c',
|
|
|
|
# 'broadway/broadwayd.c',
|
|
|
|
# 'broadway/gdkdevicemanager-broadway.c',
|
|
|
|
# 'broadway/gdkdevicemanager-broadway.h',
|
|
|
|
# 'broadway/gdkdevice-broadway.c',
|
|
|
|
# 'broadway/gdkdevice-broadway.h',
|
|
|
|
# 'broadway/broadway-buffer.c',
|
|
|
|
# 'broadway/broadway-buffer.h',
|
|
|
|
# 'broadway/gdktestutils-broadway.c',
|
|
|
|
# 'broadway/gdkproperty-broadway.c'
|
|
|
|
# ]
|
|
|
|
|
|
|
|
# gdk_broadway_private_sources = [
|
|
|
|
# 'broadway/gdkprivate-broadway.h'
|
|
|
|
# ]
|
|
|
|
|
|
|
|
# glsl_sources = [
|
|
|
|
# 'gl3-texture-2d.fs.glsl',
|
|
|
|
# 'gl3-texture-2d.vs.glsl',
|
|
|
|
# 'gl3-texture-rect.fs.glsl',
|
|
|
|
# 'gl3-texture-rect.vs.glsl',
|
|
|
|
# 'gl2-texture-2d.fs.glsl',
|
|
|
|
# 'gl2-texture-2d.fs.glsl',
|
|
|
|
# 'gl2-texture-rect.vs.glsl',
|
|
|
|
# 'gl2-texture-rect.vs.glsl',
|
|
|
|
# 'gles2-texture.fs.glsl',
|
|
|
|
# 'gles2-texture.vs.glsl',
|
|
|
|
# ]
|
|
|
|
# resource_xml = ''
|
|
|
|
# foreach glsl_file : glsl_sources
|
|
|
|
# resource_xml += ' <file alias="glsl/@0@">resources/glsl/@0@</file>\n'.format(glsl_file)
|
|
|
|
# endforeach
|
|
|
|
|
|
|
|
|
|
|
|
# cdata = configuration_data()
|
|
|
|
# cdata.set('GDK_GRESOURCE_XML_FILES', resource_xml)
|
|
|
|
# gdkresources_xml = configure_file(
|
|
|
|
# input : 'gdk.gresource.xml.meson',
|
|
|
|
# output : 'gdk.gresource.xml',
|
|
|
|
# configuration : cdata
|
|
|
|
# )
|
2016-08-21 14:00:37 +00:00
|
|
|
|
|
|
|
gdkresources = gnome.compile_resources(
|
|
|
|
'gdkresources',
|
|
|
|
'gdk.gresource.xml',
|
|
|
|
source_dir: '.',
|
|
|
|
c_name: '_gdk',
|
|
|
|
extra_args: '--manual-register'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2016-08-23 06:21:54 +00:00
|
|
|
deprecated_h_sources = files(['deprecated/gdkcolor.h'])
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2016-08-23 06:21:54 +00:00
|
|
|
gdk_headers = gdk_public_h_sources + deprecated_h_sources + gdk_private_h_sources
|
2016-08-22 19:26:38 +00:00
|
|
|
|
2016-08-23 06:21:54 +00:00
|
|
|
gdkenum_h = custom_target(
|
|
|
|
'gdkenum_h',
|
2016-08-22 19:26:38 +00:00
|
|
|
output : 'gdkenumtypes.h',
|
|
|
|
input : gdk_headers,
|
2016-08-23 06:21:54 +00:00
|
|
|
command : [mkenum, perl, glib_mkenums, meson.current_source_dir() + '/gdkenumtypes.h.template', '@OUTPUT@', '@INPUT@'])
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2016-08-23 06:21:54 +00:00
|
|
|
gdkenum_c = custom_target(
|
|
|
|
'gdkenum_c',
|
2016-08-22 19:26:38 +00:00
|
|
|
output : 'gdkenumtypes.c',
|
|
|
|
input : gdk_headers,
|
2016-08-23 06:21:54 +00:00
|
|
|
depends : gdkenum_h,
|
|
|
|
command : [mkenum, perl, glib_mkenums, meson.current_source_dir() + '/gdkenumtypes.c.template', '@OUTPUT@', '@INPUT@'])
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2016-08-23 06:21:54 +00:00
|
|
|
gdkmarshal_h = custom_target(
|
|
|
|
'gdkmarshal_h',
|
|
|
|
output : 'gdkmarshalers.h',
|
2016-08-22 19:26:38 +00:00
|
|
|
input : 'gdkmarshalers.list',
|
2016-08-23 06:21:54 +00:00
|
|
|
command : [mkmarshal, glib_marshal, '_gdk_marshal', '@INPUT@', '@OUTPUT@']
|
|
|
|
)
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2016-08-23 06:21:54 +00:00
|
|
|
gdkmarshal_c = custom_target(
|
|
|
|
'gdkmarshal_c',
|
|
|
|
output : 'gdkmarshalers.c',
|
2016-08-22 19:26:38 +00:00
|
|
|
input : 'gdkmarshalers.list',
|
2016-08-23 06:21:54 +00:00
|
|
|
command : [mkmarshal, glib_marshal, '_gdk_marshal', '@INPUT@', '@OUTPUT@']
|
|
|
|
)
|
2016-08-21 14:00:37 +00:00
|
|
|
|
|
|
|
cdata = configuration_data()
|
2016-08-23 06:21:54 +00:00
|
|
|
cdata.set('GTK_MAJOR_VERSION', gtk_major_version)
|
|
|
|
cdata.set('GTK_MINOR_VERSION', gtk_minor_version)
|
|
|
|
cdata.set('GTK_MICRO_VERSION', gtk_micro_version)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if x11_enabled cdata.set('GDK_WINDOWING_X11', '') endif
|
|
|
|
if wayland_enabled cdata.set('GDK_WINDOWING_WAYLAND', '') endif
|
|
|
|
if broadway_enabled cdata.set('GDK_WINDOWING_BROADWAY', '') endif
|
2016-08-22 19:26:38 +00:00
|
|
|
gdkconfig = configure_file(
|
|
|
|
input : 'gdkconfig.h.meson',
|
2016-08-15 08:03:57 +00:00
|
|
|
output : 'gdkconfig.h',
|
2016-08-21 14:00:37 +00:00
|
|
|
configuration : cdata
|
|
|
|
)
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2016-08-23 06:21:54 +00:00
|
|
|
gdkversionmacros = configure_file(
|
|
|
|
input : 'gdkversionmacros.h.in',
|
|
|
|
output : 'gdkversionmacros.h',
|
|
|
|
configuration: cdata
|
|
|
|
)
|
|
|
|
|
2016-08-15 08:03:57 +00:00
|
|
|
xinc = include_directories('x11')
|
2016-08-21 14:00:37 +00:00
|
|
|
wlinc = include_directories('wayland')
|
|
|
|
|
2016-08-21 15:16:03 +00:00
|
|
|
|
|
|
|
gdk_deps = [
|
|
|
|
mlib,
|
|
|
|
pixbuf_dep,
|
|
|
|
cairo_dep,
|
|
|
|
pango_dep,
|
|
|
|
cairogobj_dep,
|
|
|
|
glib_dep,
|
|
|
|
epoxy_dep,
|
|
|
|
fontconfig_dep,
|
|
|
|
giounix_dep,
|
|
|
|
pangocairo_dep
|
|
|
|
]
|
|
|
|
|
|
|
|
gdk_sources = [
|
|
|
|
gdkconfig,
|
|
|
|
gdk_sources,
|
|
|
|
deprecated_gdk_sources,
|
|
|
|
gdkenum_c, gdkenum_h,
|
|
|
|
gdkmarshal_c, gdkmarshal_h,
|
2016-08-23 06:21:54 +00:00
|
|
|
gdkresources,
|
|
|
|
gdkversionmacros,
|
|
|
|
gdk_headers
|
2016-08-21 15:16:03 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if x11_enabled
|
|
|
|
gdk_deps += [
|
2016-08-21 14:00:37 +00:00
|
|
|
xrender_dep,
|
|
|
|
xi_dep,
|
|
|
|
xext_dep,
|
|
|
|
x11_dep,
|
2016-08-23 06:21:54 +00:00
|
|
|
xcursor_dep,
|
|
|
|
xdamage_dep,
|
|
|
|
xfixes_dep,
|
2016-09-09 20:02:21 +00:00
|
|
|
xcomposite_dep,
|
|
|
|
xrandr_dep
|
2016-08-21 15:16:03 +00:00
|
|
|
]
|
|
|
|
gdk_sources += [
|
|
|
|
gdk_x_sources,
|
|
|
|
gdk_x_private_sources
|
|
|
|
]
|
|
|
|
endif
|
|
|
|
|
|
|
|
if wayland_enabled
|
|
|
|
gdk_deps += [
|
|
|
|
shmlib,
|
2016-08-21 14:00:37 +00:00
|
|
|
xkbdep,
|
|
|
|
wlclientdep,
|
|
|
|
wlprotocolsdep,
|
|
|
|
wlcursordep,
|
|
|
|
wlegldep
|
|
|
|
]
|
2016-08-21 15:16:03 +00:00
|
|
|
gdk_sources += [
|
|
|
|
gdk_wayland_sources,
|
|
|
|
gdk_wayland_private_sources
|
|
|
|
]
|
|
|
|
endif
|
|
|
|
|
2016-08-23 06:21:54 +00:00
|
|
|
if broadway_enabled
|
|
|
|
gdk_deps += [
|
|
|
|
shmlib,
|
|
|
|
]
|
|
|
|
gdk_sources += [
|
|
|
|
gdk_broadway_sources,
|
|
|
|
gdk_broadway_private_sources
|
|
|
|
]
|
|
|
|
endif
|
|
|
|
|
2016-08-21 15:16:03 +00:00
|
|
|
|
2016-08-22 19:26:38 +00:00
|
|
|
libgdk = shared_library('gdk',
|
|
|
|
gdk_sources,
|
|
|
|
c_args: ['-DHAVE_CONFIG_H', '-DGDK_COMPILATION'],
|
2016-08-23 06:21:54 +00:00
|
|
|
include_directories: [confinc, xinc],
|
2016-08-21 15:16:03 +00:00
|
|
|
dependencies: gdk_deps,
|
2016-08-21 14:00:37 +00:00
|
|
|
)
|
2016-08-15 08:03:57 +00:00
|
|
|
|
2016-08-22 19:26:38 +00:00
|
|
|
|
|
|
|
libgdk_dep = declare_dependency(
|
2016-08-23 06:21:54 +00:00
|
|
|
sources: ['gdk.h', gdkconfig, gdkenum_h],
|
2016-08-22 19:26:38 +00:00
|
|
|
depends: gdk_sources,
|
2016-08-23 06:21:54 +00:00
|
|
|
include_directories: [confinc, xinc],
|
2016-08-21 15:16:03 +00:00
|
|
|
dependencies: gdk_deps,
|
2016-08-22 19:26:38 +00:00
|
|
|
link_with: libgdk
|
2016-08-21 14:00:37 +00:00
|
|
|
)
|