blob: f95c450648b9b2ae37ec4e179f5e93489f452359 [file] [log] [blame]
Kristian Høgsberg2ba10df2013-12-03 16:38:15 -08001if ENABLE_XWAYLAND
2xwayland_subdir = xwayland
3endif
4
Kristian Høgsberge895f142014-01-27 21:46:30 -08005bin_PROGRAMS =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08006moduledir = $(libdir)/weston
7module_LTLIBRARIES =
8BUILT_SOURCES =
Kristian Høgsberge895f142014-01-27 21:46:30 -08009
Kristian Høgsberg2ba10df2013-12-03 16:38:15 -080010SUBDIRS = \
11 shared \
12 src \
13 $(xwayland_subdir) \
14 clients \
Kristian Høgsberg2ba10df2013-12-03 16:38:15 -080015 protocol \
16 tests \
Kristian Høgsberg2ba10df2013-12-03 16:38:15 -080017 man
Kristian Høgsberg61cfa662012-05-26 13:19:22 -040018
Kristian Høgsberg850f24c2012-02-09 09:20:44 -050019DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050020
Neil Robertse3de16e2013-11-22 16:46:00 +000021EXTRA_DIST = weston.ini.in wayland-scanner.mk
22
23weston.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
30all-local : weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080031
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080032CLEANFILES = weston.ini $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080033
34
35westondatadir = $(datadir)/weston
36dist_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øgsberge895f142014-01-27 21:46:30 -080046
47
48if BUILD_WCAP_TOOLS
49bin_PROGRAMS += wcap-decode
50
51wcap_decode_SOURCES = \
52 wcap/main.c \
53 wcap/wcap-decode.c \
54 wcap/wcap-decode.h
55
56wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
57wcap_decode_LDADD = $(WCAP_LIBS)
58endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080059
60
61if ENABLE_DESKTOP_SHELL
62
63module_LTLIBRARIES += desktop-shell.la
64
65desktop_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
75desktop_shell_la_LDFLAGS = -module -avoid-version
76desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
77 shared/libshared.la
78desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
79desktop_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
89BUILT_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
94endif
95
96wayland_protocoldir = $(top_srcdir)/protocol
97include $(top_srcdir)/wayland-scanner.mk