summaryrefslogtreecommitdiff
path: root/gdk/x11/meson.build
blob: 3912031c185ba6ef101477651ff99e8bcf9de632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Note: gdksettings.c gets included from xsettings-client.c, do not add here
gdk_x11_sources = files([
  'gdkapplaunchcontext-x11.c',
  'gdkasync.c',
  'gdkclipboard-x11.c',
  'gdkcursor-x11.c',
  'gdkdevice-core-x11.c',
  'gdkdevice-xi2.c',
  'gdkdevicemanager-core-x11.c',
  'gdkdevicemanager-x11.c',
  'gdkdevicemanager-xi2.c',
  'gdkdisplay-x11.c',
  'gdkdnd-x11.c',
  'gdkeventsource.c',
  'gdkeventtranslator.c',
  'gdkgeometry-x11.c',
  'gdkglcontext-x11.c',
  'gdkkeys-x11.c',
  'gdkmain-x11.c',
  'gdkmonitor-x11.c',
  'gdkproperty-x11.c',
  'gdkscreen-x11.c',
  'gdkselection-x11.c',
  'gdkselectioninputstream-x11.c',
  'gdkselectionoutputstream-x11.c',
  'gdktextlistconverter-x11.c',
  'gdkvisual-x11.c',
  'gdkvulkancontext-x11.c',
  'gdksurface-x11.c',
  'gdkxftdefaults.c',
  'gdkxid.c',
  'xsettings-client.c',
])

gdk_x11_public_headers = files([
  'gdkx-autocleanups.h',
  'gdkx11applaunchcontext.h',
  'gdkx11device-core.h',
  'gdkx11device-xi2.h',
  'gdkx11device.h',
  'gdkx11devicemanager-core.h',
  'gdkx11devicemanager-xi2.h',
  'gdkx11devicemanager.h',
  'gdkx11display.h',
  'gdkx11dnd.h',
  'gdkx11glcontext.h',
  'gdkx11keys.h',
  'gdkx11monitor.h',
  'gdkx11property.h',
  'gdkx11screen.h',
  'gdkx11selection.h',
  'gdkx11utils.h',
  'gdkx11surface.h',
])

install_headers(gdk_x11_public_headers, subdir: 'gtk-4.0/gdk/x11/')
install_headers('gdkx.h', subdir: 'gtk-4.0/gdk/')

gdk_x11_deps = [
  xrender_dep,
  xi_dep,
  xext_dep,
  x11_dep,
  xcursor_dep,
  xdamage_dep,
  xfixes_dep,
  xcomposite_dep,
  xrandr_dep,
  xinerama_dep,
]

libgdk_x11 = static_library('gdk-x11',
                            gdk_x11_sources, gdkconfig, gdkenum_h,
                            include_directories: [ confinc, gdkinc, ],
                            c_args: [
                              '-DGDK_COMPILATION',
                              '-DG_LOG_DOMAIN="Gdk"',
                            ] + common_cflags,
                            link_args: common_ldflags,
                            dependencies: [ gdk_deps, gdk_x11_deps, ])