[gtk+/wip/meson: 64/73] meson: gdk: win32: add skeleton bits for win32 backend
- From: Tim-Philipp Müller <tpm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/meson: 64/73] meson: gdk: win32: add skeleton bits for win32 backend
- Date: Wed, 22 Mar 2017 09:37:27 +0000 (UTC)
commit 97e8201ebd79e42732267391e8e539c1d397164e
Author: Tim-Philipp Müller <tim centricular com>
Date: Mon Mar 20 12:03:45 2017 +0000
meson: gdk: win32: add skeleton bits for win32 backend
Won't even build, configure bits still missing.
gdk/meson.build | 2 +-
gdk/win32/meson.build | 50 +++++++++++++++++++++++++++++++++++++++++++++++++
meson.build | 1 +
3 files changed, 52 insertions(+), 1 deletions(-)
---
diff --git a/gdk/meson.build b/gdk/meson.build
index 8f32f38..6cb76a5 100644
--- a/gdk/meson.build
+++ b/gdk/meson.build
@@ -181,7 +181,7 @@ endif
gdk_backends = []
gdk_backends_gen_headers = [] # non-public generated headers
-foreach backend : ['broadway', 'wayland', 'x11', 'mir']
+foreach backend : ['broadway', 'wayland', 'x11', 'mir', 'win32']
if get_variable('@0@_enabled'.format(backend))
subdir(backend)
gdk_deps += get_variable('gdk_@0@_deps'.format(backend))
diff --git a/gdk/win32/meson.build b/gdk/win32/meson.build
new file mode 100644
index 0000000..452983a
--- /dev/null
+++ b/gdk/win32/meson.build
@@ -0,0 +1,50 @@
+gdk_win32_sources = files([
+ 'gdkcursor-win32.c',
+ 'gdkdevicemanager-win32.c',
+ 'gdkdevice-virtual.c',
+ 'gdkdevice-win32.c',
+ 'gdkdevice-wintab.c',
+ 'gdkdisplay-win32.c',
+ 'gdkdisplaymanager-win32.c',
+ 'gdkdnd-win32.c',
+ 'gdkevents-win32.c',
+ 'gdkgeometry-win32.c',
+ 'gdkglcontext-win32.c',
+ 'gdkglobals-win32.c',
+ 'gdkkeys-win32.c',
+ 'gdkmain-win32.c',
+ 'gdkmonitor-win32.c',
+ 'gdkproperty-win32.c',
+ 'gdkscreen-win32.c',
+ 'gdkselection-win32.c',
+ 'gdkvulkancontext-win32.c',
+ 'gdkwin32cursor.h',
+ 'gdkwin32display.h',
+ 'gdkwin32id.c',
+ 'gdkwindow-win32.c',
+])
+
+gdk_win32_public_headers = files([
+ 'gdkwin32cursor.h',
+ 'gdkwin32display.h',
+ 'gdkwin32displaymanager.h',
+ 'gdkwin32dnd.h',
+ 'gdkwin32glcontext.h',
+ 'gdkwin32keys.h',
+ 'gdkwin32misc.h',
+ 'gdkwin32monitor.h',
+ 'gdkwin32screen.h',
+ 'gdkwin32window.h',
+])
+
+install_headers(gdk_win32_public_headers, subdir: 'gtk-4.0/gdk/win32/')
+install_headers('gdkwin32.h', subdir: 'gtk-4.0/gdk/')
+
+gdk_win32_deps = [ # FIXME
+]
+
+libgdk_win32 = static_library('libgdk-win32',
+ gdk_win32_sources, gdkconfig, gdkenum_h,
+ include_directories: [confinc, gdkinc],
+ c_args: ['-DGDK_COMPILATION', '-DG_LOG_DOMAIN="Gdk"', '-DINSIDE_GDK_WIN32'],
+ dependencies: [gdk_deps, gdk_win32_deps])
diff --git a/meson.build b/meson.build
index 2cea034..f1fa142 100644
--- a/meson.build
+++ b/meson.build
@@ -37,6 +37,7 @@ x11_enabled = get_option('enable-x11-backend')
wayland_enabled = get_option('enable-wayland-backend')
broadway_enabled = get_option('enable-broadway-backend')
mir_enabled = get_option('enable-mir-backend')
+win32_enabled = false # FIXME
mkmarshal = find_program('build_marshal.py')
glib_marshal = find_program('glib-genmarshal')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]