summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2017-03-11 10:24:04 -0800
committerEric Anholt <eric@anholt.net>2017-04-26 15:25:27 -0700
commit1549e30372756cfdb85379fd8d93c769297ab6e6 (patch)
tree6160835c9dbe15e39ce799f8b1f6a6fdedd89825 /Xext
parentc7be7a688a78a34f61b90c0d95914e14b90b0cdc (diff)
Add a Meson build system alongside autotools.
This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest, and Xdmx so far. The outline of Xquartz/Xwin support is in tree, but hasn't been built yet. The unit tests are also not done. The intent is to build this as a complete replacement for the autotools system, then eventually replace autotools. meson is faster to generate the build, faster to run the bulid, shorter to write the build files in, and less error-prone than autotools. v2: Fix indentation nits, move version declaration to project(), use existing meson_options for version-config.h's vendor name/web. Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Keith Packard <keithp@keithp.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xext')
-rw-r--r--Xext/meson.build61
1 files changed, 61 insertions, 0 deletions
diff --git a/Xext/meson.build b/Xext/meson.build
new file mode 100644
index 000000000..9968f2a9e
--- /dev/null
+++ b/Xext/meson.build
@@ -0,0 +1,61 @@
+srcs_xext = [
+ 'bigreq.c',
+ 'geext.c',
+ 'shape.c',
+ 'sleepuntil.c',
+ 'sync.c',
+ 'xcmisc.c',
+ 'xtest.c',
+]
+
+if build_dpms
+ srcs_xext += 'dpms.c'
+endif
+
+if build_mitshm
+ srcs_xext += 'shm.c'
+endif
+
+if build_res
+ srcs_xext += ['hashtable.c', 'xres.c']
+endif
+
+if build_screensaver
+ srcs_xext += 'saver.c'
+endif
+
+if build_xace
+ srcs_xext += 'xace.c'
+endif
+
+if build_xf86bigfont
+ srcs_xext += 'xf86bigfont.c'
+endif
+
+if build_xinerama
+ srcs_xext += ['panoramiX.c', 'panoramiXprocs.c', 'panoramiXSwap.c']
+endif
+
+if build_xsecurity
+ srcs_xext += ['security.c']
+endif
+
+if build_xselinux
+ srcs_xext += ['xselinux_ext.c', 'xselinux_hooks.c', 'xselinux_label.c']
+endif
+
+if build_xv
+ srcs_xext += ['xvmain.c', 'xvdisp.c', 'xvmc.c']
+endif
+
+libxserver_xext = static_library('libxserver_xext',
+ srcs_xext,
+ include_directories: inc,
+ dependencies: common_dep,
+)
+
+libxserver_xext_vidmode = static_library('libxserver_xext_vidmode',
+ 'vidmode.c',
+ include_directories: inc,
+ dependencies: common_dep,
+)