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>
This commit is contained in:
Eric Anholt 2017-03-11 10:24:04 -08:00
commit 1549e30372
61 changed files with 2859 additions and 0 deletions

47
dix/meson.build Normal file
View file

@ -0,0 +1,47 @@
srcs_dix = [
'atom.c',
'colormap.c',
'cursor.c',
'devices.c',
'dispatch.c',
'dixfonts.c',
'main.c',
'dixutils.c',
'enterleave.c',
'events.c',
'eventconvert.c',
'extension.c',
'ffs.c',
'gc.c',
'getevents.c',
'globals.c',
'glyphcurs.c',
'grabs.c',
'initatoms.c',
'inpututils.c',
'pixmap.c',
'privates.c',
'property.c',
'ptrveloc.c',
'region.c',
'registry.c',
'resource.c',
'selection.c',
'swaprep.c',
'swapreq.c',
'tables.c',
'touch.c',
'window.c',
]
libxserver_dix = static_library('libxserver_dix',
srcs_dix,
include_directories: inc,
dependencies: common_dep,
)
libxserver_main = static_library('libxserver_main',
'stubmain.c',
include_directories: inc,
dependencies: common_dep,
)