File tree Expand file tree Collapse file tree 2 files changed +31
-6
lines changed
Expand file tree Collapse file tree 2 files changed +31
-6
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,12 @@ panel_sources = \
6565 panel-applet-info.c \
6666 panel-reset.c
6767
68+ if ENABLE_WAYLAND
69+ panel_sources += \
70+ wayland-protocols/wlr-layer-shell-unstable-v1-protocol.c \
71+ wayland-protocols/xdg-shell-protocol.c
72+ endif
73+
6874panel_headers = \
6975 panel-types.h \
7076 panel-widget.h \
@@ -117,6 +123,12 @@ panel_headers = \
117123 panel-reset.h \
118124 panel-schemas.h
119125
126+ if ENABLE_WAYLAND
127+ panel_headers += \
128+ wayland-protocols/wlr-layer-shell-unstable-v1-client-protocol.h \
129+ wayland-protocols/xdg-shell-client-protocol.h
130+ endif
131+
120132mate_panel_SOURCES = \
121133 $(panel_sources ) \
122134 $(panel_headers )
@@ -127,6 +139,12 @@ mate_panel_CPPFLAGS = \
127139 -DPANEL_MODULES_DIR=\"$(modulesdir ) \" \
128140 -DMATEMENU_I_KNOW_THIS_IS_UNSTABLE
129141
142+ if ENABLE_WAYLAND
143+ mate_panel_CPPFLAGS += \
144+ $(WAYLAND_CFLAGS )
145+ endif
146+
147+
130148mate_panel_LDADD = \
131149 $(top_builddir ) /mate-panel/libegg/libegg.la \
132150 $(top_builddir ) /mate-panel/libmate-panel-applet-private/libmate-panel-applet-private.la \
@@ -137,6 +155,11 @@ mate_panel_LDADD = \
137155 $(X_LIBS ) \
138156 -lm
139157
158+ if ENABLE_WAYLAND
159+ mate_panel_LDADD += \
160+ $(WAYLAND_LIBS )
161+ endif
162+
140163mate_panel_LDFLAGS = -export-dynamic
141164
142165mate_desktop_item_edit_SOURCES = \
@@ -261,7 +284,9 @@ EXTRA_DIST = \
261284 panel-test-applets.gresource.xml \
262285 panel-marshal.list \
263286 $(entries_DATA ) \
264- $(desktop_in_files )
287+ $(desktop_in_files ) \
288+ wayland-protocols/wlr-layer-shell-unstable-v1.xml \
289+ wayland-protocols/xdg-shell.xml
265290
266291CLEANFILES = \
267292 $(BUILT_SOURCES ) \
Original file line number Diff line number Diff line change 11if ENABLE_WAYLAND
2- all : wlr-layer-shell-unstable-v1-protocol.h wlr-layer-shell-unstable-v1-protocol.c xdg-shell-protocol.h xdg-shell-protocol.c
2+ all : wlr-layer-shell-unstable-v1-client- protocol.h wlr-layer-shell-unstable-v1-protocol.c xdg-shell-client -protocol.h xdg-shell-protocol.c
33
4- wlr-layer-shell-unstable-v1-protocol.h : wlr-layer-shell-unstable-v1.xml
5- wayland-scanner -c client-header wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-protocol.h
4+ wlr-layer-shell-unstable-v1-client- protocol.h : wlr-layer-shell-unstable-v1.xml
5+ wayland-scanner -c client-header wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-client- protocol.h
66
77wlr-layer-shell-unstable-v1-protocol.c : wlr-layer-shell-unstable-v1.xml
88 wayland-scanner -c private-code wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-protocol.c
99
10- xdg-shell-protocol.h : xdg-shell.xml
11- wayland-scanner -c client-header xdg-shell.xml xdg-shell-protocol.h
10+ xdg-shell-client- protocol.h : xdg-shell.xml
11+ wayland-scanner -c client-header xdg-shell.xml xdg-shell-client- protocol.h
1212
1313xdg-shell-protocol.c : xdg-shell.xml
1414 wayland-scanner -c private-code xdg-shell.xml xdg-shell-protocol.c
You can’t perform that action at this time.
0 commit comments