Kristian Høgsberg | 2ba10df | 2013-12-03 16:38:15 -0800 | [diff] [blame] | 1 | if ENABLE_XWAYLAND |
| 2 | xwayland_subdir = xwayland |
| 3 | endif |
| 4 | |
Kristian Høgsberg | e895f14 | 2014-01-27 21:46:30 -0800 | [diff] [blame] | 5 | bin_PROGRAMS = |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame^] | 6 | moduledir = $(libdir)/weston |
| 7 | module_LTLIBRARIES = |
| 8 | BUILT_SOURCES = |
Kristian Høgsberg | e895f14 | 2014-01-27 21:46:30 -0800 | [diff] [blame] | 9 | |
Kristian Høgsberg | 2ba10df | 2013-12-03 16:38:15 -0800 | [diff] [blame] | 10 | SUBDIRS = \ |
| 11 | shared \ |
| 12 | src \ |
| 13 | $(xwayland_subdir) \ |
| 14 | clients \ |
Kristian Høgsberg | 2ba10df | 2013-12-03 16:38:15 -0800 | [diff] [blame] | 15 | protocol \ |
| 16 | tests \ |
Kristian Høgsberg | 2ba10df | 2013-12-03 16:38:15 -0800 | [diff] [blame] | 17 | man |
Kristian Høgsberg | 61cfa66 | 2012-05-26 13:19:22 -0400 | [diff] [blame] | 18 | |
Kristian Høgsberg | 850f24c | 2012-02-09 09:20:44 -0500 | [diff] [blame] | 19 | DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install |
Kristian Høgsberg | 24639cc | 2013-02-25 13:03:15 -0500 | [diff] [blame] | 20 | |
Neil Roberts | e3de16e | 2013-11-22 16:46:00 +0000 | [diff] [blame] | 21 | EXTRA_DIST = weston.ini.in wayland-scanner.mk |
| 22 | |
| 23 | weston.ini : $(srcdir)/weston.ini.in |
| 24 | $(AM_V_GEN)$(SED) \ |
| 25 | -e 's|@bindir[@]|$(bindir)|g' \ |
| 26 | -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \ |
| 27 | -e 's|@libexecdir[@]|$(libexecdir)|g' \ |
| 28 | $< > $@ |
| 29 | |
| 30 | all-local : weston.ini |
Kristian Høgsberg | 9846374 | 2013-12-16 23:12:46 -0800 | [diff] [blame] | 31 | |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame^] | 32 | CLEANFILES = weston.ini $(BUILT_SOURCES) |
Kristian Høgsberg | 5b9f9f8 | 2014-01-27 21:40:28 -0800 | [diff] [blame] | 33 | |
| 34 | |
| 35 | westondatadir = $(datadir)/weston |
| 36 | dist_westondata_DATA = \ |
| 37 | data/wayland.svg \ |
| 38 | data/wayland.png \ |
| 39 | data/pattern.png \ |
| 40 | data/terminal.png \ |
| 41 | data/border.png \ |
| 42 | data/icon_window.png \ |
| 43 | data/sign_close.png \ |
| 44 | data/sign_maximize.png \ |
| 45 | data/sign_minimize.png |
Kristian Høgsberg | e895f14 | 2014-01-27 21:46:30 -0800 | [diff] [blame] | 46 | |
| 47 | |
| 48 | if BUILD_WCAP_TOOLS |
| 49 | bin_PROGRAMS += wcap-decode |
| 50 | |
| 51 | wcap_decode_SOURCES = \ |
| 52 | wcap/main.c \ |
| 53 | wcap/wcap-decode.c \ |
| 54 | wcap/wcap-decode.h |
| 55 | |
| 56 | wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS) |
| 57 | wcap_decode_LDADD = $(WCAP_LIBS) |
| 58 | endif |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame^] | 59 | |
| 60 | |
| 61 | if ENABLE_DESKTOP_SHELL |
| 62 | |
| 63 | module_LTLIBRARIES += desktop-shell.la |
| 64 | |
| 65 | desktop_shell_la_CPPFLAGS = \ |
| 66 | -I$(top_srcdir)/shared \ |
| 67 | -I$(top_srcdir)/src \ |
| 68 | -I$(top_builddir)/src \ |
| 69 | -I$(top_builddir)/desktop-shell \ |
| 70 | -DDATADIR='"$(datadir)"' \ |
| 71 | -DMODULEDIR='"$(moduledir)"' \ |
| 72 | -DLIBEXECDIR='"$(libexecdir)"' \ |
| 73 | -DIN_WESTON |
| 74 | |
| 75 | desktop_shell_la_LDFLAGS = -module -avoid-version |
| 76 | desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \ |
| 77 | shared/libshared.la |
| 78 | desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 79 | desktop_shell_la_SOURCES = \ |
| 80 | desktop-shell/shell.h \ |
| 81 | desktop-shell/shell.c \ |
| 82 | desktop-shell/exposay.c \ |
| 83 | desktop-shell/input-panel.c \ |
| 84 | desktop-shell/desktop-shell-protocol.c \ |
| 85 | desktop-shell/desktop-shell-server-protocol.h \ |
| 86 | desktop-shell/xdg-shell-protocol.c \ |
| 87 | desktop-shell/xdg-shell-server-protocol.h |
| 88 | |
| 89 | BUILT_SOURCES += \ |
| 90 | desktop-shell/desktop-shell-protocol.c \ |
| 91 | desktop-shell/desktop-shell-server-protocol.h \ |
| 92 | desktop-shell/xdg-shell-protocol.c \ |
| 93 | desktop-shell/xdg-shell-server-protocol.h |
| 94 | endif |
| 95 | |
| 96 | wayland_protocoldir = $(top_srcdir)/protocol |
| 97 | include $(top_srcdir)/wayland-scanner.mk |