1bin_PROGRAMS = Xwayland 2 3Xwayland_CFLAGS = \ 4 -I$(top_srcdir)/glamor \ 5 -I$(top_srcdir)/dri3 \ 6 -DHAVE_DIX_CONFIG_H \ 7 $(XWAYLANDMODULES_CFLAGS) \ 8 $(DIX_CFLAGS) \ 9 $(GLAMOR_CFLAGS) \ 10 $(GBM_CFLAGS) 11 12Xwayland_SOURCES = \ 13 xwayland.c \ 14 xwayland-input.c \ 15 xwayland-cursor.c \ 16 xwayland-shm.c \ 17 xwayland-output.c \ 18 xwayland-cvt.c \ 19 xwayland-vidmode.c \ 20 xwayland.h \ 21 $(top_srcdir)/Xi/stubs.c \ 22 $(top_srcdir)/mi/miinitext.c 23 24Xwayland_LDADD = \ 25 $(glamor_lib) \ 26 $(XWAYLAND_LIBS) \ 27 $(top_builddir)/glx/libglxvnd.la \ 28 $(XWAYLAND_SYS_LIBS) \ 29 $(top_builddir)/Xext/libXvidmode.la \ 30 $(XSERVER_SYS_LIBS) 31Xwayland_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG) 32 33Xwayland_built_sources = 34 35if GLAMOR_EGL 36Xwayland_SOURCES += \ 37 xwayland-glamor.c \ 38 xwayland-glamor-gbm.c \ 39 xwayland-present.c 40if XV 41Xwayland_SOURCES += \ 42 xwayland-glamor-xv.c 43endif 44 45if XWAYLAND_EGLSTREAM 46Xwayland_SOURCES += \ 47 xwayland-glamor-eglstream.c 48endif 49 50glamor_built_sources = \ 51 drm-client-protocol.h \ 52 drm-protocol.c 53 54Xwayland_built_sources += $(glamor_built_sources) 55 56glamor_lib = $(top_builddir)/glamor/libglamor.la 57 58Xwayland_LDADD += $(GLAMOR_LIBS) $(GBM_LIBS) -lEGL -lGL 59Xwayland_DEPENDENCIES = $(glamor_lib) $(XWAYLAND_LIBS) 60endif 61 62Xwayland_built_sources += \ 63 relative-pointer-unstable-v1-client-protocol.h \ 64 relative-pointer-unstable-v1-protocol.c \ 65 pointer-constraints-unstable-v1-client-protocol.h \ 66 pointer-constraints-unstable-v1-protocol.c \ 67 tablet-unstable-v2-client-protocol.h \ 68 tablet-unstable-v2-protocol.c \ 69 xwayland-keyboard-grab-unstable-v1-protocol.c \ 70 xwayland-keyboard-grab-unstable-v1-client-protocol.h \ 71 xdg-output-unstable-v1-protocol.c \ 72 xdg-output-unstable-v1-client-protocol.h \ 73 linux-dmabuf-unstable-v1-client-protocol.h \ 74 linux-dmabuf-unstable-v1-protocol.c 75 76if XWAYLAND_EGLSTREAM 77Xwayland_built_sources += \ 78 wayland-eglstream-client-protocol.h \ 79 wayland-eglstream-protocol.c \ 80 wayland-eglstream-controller-client-protocol.h \ 81 wayland-eglstream-controller-protocol.c 82endif 83 84nodist_Xwayland_SOURCES = $(Xwayland_built_sources) 85CLEANFILES = $(Xwayland_built_sources) 86 87EXTRA_DIST = drm.xml 88 89$(Xwayland_SOURCES): $(Xwayland_built_sources) 90 91relink: 92 $(AM_V_at)rm -f Xwayland$(EXEEXT) && $(MAKE) Xwayland$(EXEEXT) 93 94relative-pointer-unstable-v1-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/relative-pointer/relative-pointer-unstable-v1.xml 95 $(AM_V_GEN)$(WAYLAND_SCANNER) @SCANNER_ARG@ < $< > $@ 96relative-pointer-unstable-v1-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/relative-pointer/relative-pointer-unstable-v1.xml 97 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ 98 99pointer-constraints-unstable-v1-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml 100 $(AM_V_GEN)$(WAYLAND_SCANNER) @SCANNER_ARG@ < $< > $@ 101pointer-constraints-unstable-v1-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml 102 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ 103 104tablet-unstable-v2-protocol.c: $(WAYLAND_PROTOCOLS_DATADIR)/unstable/tablet/tablet-unstable-v2.xml 105 $(AM_V_GEN)$(WAYLAND_SCANNER) @SCANNER_ARG@ < $< > $@ 106tablet-unstable-v2-client-protocol.h: $(WAYLAND_PROTOCOLS_DATADIR)/unstable/tablet/tablet-unstable-v2.xml 107 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ 108 109xwayland-keyboard-grab-unstable-v1-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/xwayland-keyboard-grab/xwayland-keyboard-grab-unstable-v1.xml 110 $(AM_V_GEN)$(WAYLAND_SCANNER) @SCANNER_ARG@ < $< > $@ 111xwayland-keyboard-grab-unstable-v1-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/xwayland-keyboard-grab/xwayland-keyboard-grab-unstable-v1.xml 112 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ 113xdg-output-unstable-v1-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/xdg-output/xdg-output-unstable-v1.xml 114 $(AM_V_GEN)$(WAYLAND_SCANNER) @SCANNER_ARG@ < $< > $@ 115xdg-output-unstable-v1-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/xdg-output/xdg-output-unstable-v1.xml 116 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ 117 118linux-dmabuf-unstable-v1-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml 119 $(AM_V_GEN)$(WAYLAND_SCANNER) @SCANNER_ARG@ < $< > $@ 120linux-dmabuf-unstable-v1-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml 121 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ 122 123wayland-eglstream-client-protocol.h : $(WAYLAND_EGLSTREAM_DATADIR)/wayland-eglstream.xml 124 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ 125wayland-eglstream-controller-client-protocol.h : $(WAYLAND_EGLSTREAM_DATADIR)/wayland-eglstream-controller.xml 126 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ 127 128wayland-eglstream-protocol.c : $(WAYLAND_EGLSTREAM_DATADIR)/wayland-eglstream.xml 129 $(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@ 130wayland-eglstream-controller-protocol.c : $(WAYLAND_EGLSTREAM_DATADIR)/wayland-eglstream-controller.xml 131 $(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@ 132 133%-protocol.c : %.xml 134 $(AM_V_GEN)$(WAYLAND_SCANNER) @SCANNER_ARG@ < $< > $@ 135 136%-client-protocol.h : %.xml 137 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@ 138