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>
63 lines
1.2 KiB
Meson
63 lines
1.2 KiB
Meson
srcs = [
|
|
'ephyr.c',
|
|
'ephyrinit.c',
|
|
'ephyrcursor.c',
|
|
'ephyr_draw.c',
|
|
'hostx.c',
|
|
'os.c',
|
|
]
|
|
|
|
xephyr_dep = [
|
|
common_dep,
|
|
dependency('xcb'),
|
|
dependency('xcb-shape'),
|
|
dependency('xcb-render'),
|
|
dependency('xcb-renderutil'),
|
|
dependency('xcb-aux'),
|
|
dependency('xcb-image'),
|
|
dependency('xcb-icccm'),
|
|
dependency('xcb-shm'),
|
|
dependency('xcb-keysyms'),
|
|
dependency('xcb-randr'),
|
|
dependency('xcb-xkb'),
|
|
]
|
|
|
|
xephyr_glamor = []
|
|
if build_glamor
|
|
srcs += 'ephyr_glamor_glx.c'
|
|
if build_xv
|
|
srcs += 'ephyr_glamor_xv.c'
|
|
endif
|
|
xephyr_glamor += glamor
|
|
xephyr_glamor += glamor_egl_stubs
|
|
xephyr_dep += dependency('x11-xcb')
|
|
endif
|
|
|
|
if build_xv
|
|
srcs += 'ephyrvideo.c'
|
|
xephyr_dep += dependency('xcb-xv')
|
|
endif
|
|
|
|
executable(
|
|
'Xephyr',
|
|
srcs,
|
|
include_directories: [
|
|
inc,
|
|
include_directories('../src')
|
|
],
|
|
dependencies: xephyr_dep,
|
|
link_with: [
|
|
libxserver_main,
|
|
libxserver_exa,
|
|
xephyr_glamor,
|
|
kdrive,
|
|
libxserver_fb,
|
|
libxserver,
|
|
libxserver_config,
|
|
libxserver_xkb_stubs,
|
|
libxserver_xi_stubs,
|
|
libxserver_glx,
|
|
],
|
|
install: true,
|
|
)
|