b82a9bfd7b7dd2aa82f03b506d7d93de7fe98ea0
[profile/ivi/ico-uxf-weston-plugin.git] / src / Makefile.am
1 lib_LTLIBRARIES = libico-uxf-weston-plugin.la
2
3 pkginclude_HEADERS =               \
4         desktop-shell-client-protocol.h         \
5         xdg-shell-client-protocol.h                     \
6         input-method-client-protocol.h          \
7         workspaces-client-protocol.h            \
8         ico_window_mgr-client-protocol.h        \
9         ico_input_mgr-client-protocol.h         \
10         ico_window_mgr.h                                        \
11         ico_input_mgr.h
12
13 libico_uxf_weston_plugin_la_LIBADD = -ldrm_intel -lrt -lm
14 libico_uxf_weston_plugin_la_LDFLAGS = -version-info 0:9:0
15 libico_uxf_weston_plugin_la_SOURCES =          \
16         desktop-shell-protocol.c                \
17         xdg-shell-protocol.c                    \
18         input-method-protocol.c                 \
19         workspaces-protocol.c                   \
20         ico_window_mgr-protocol.c               \
21         ico_input_mgr-protocol.c
22
23 AM_CPPFLAGS =                                   \
24         -DDATADIR='"$(datadir)"'                \
25         -DMODULEDIR='"$(moduledir)"'            \
26         -DLIBEXECDIR='"$(libexecdir)"'
27
28 EXT_CFLAGS =
29
30 git-version.h : .FORCE
31         $(AM_V_GEN)(echo "#define BUILD_ID \"$(shell git --work-tree=$(top_srcdir) describe --always --dirty) $(shell git --work-tree=$(top_srcdir) log -1 --format='%s (%ci)')\"" > $@-new; \
32         cmp -s $@ $@-new || cp $@-new $@; \
33         rm $@-new)
34
35 .FORCE :
36
37 moduledir = @libdir@/weston
38 module_LTLIBRARIES =            \
39         $(ico_plugin_loader)    \
40         $(ico_ivi_shell)                \
41         $(ico_window_mgr)               \
42         $(ico_window_animation) \
43         $(ico_input_mgr)
44
45 # Weston Plugin Loader
46 ico_plugin_loader = ico_plugin_loader.la
47 ico_plugin_loader_la_LDFLAGS = -module -avoid-version
48 ico_plugin_loader_la_LIBADD = $(PLUGIN_LIBS)
49 ico_plugin_loader_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
50 ico_plugin_loader_la_SOURCES =          \
51         ico_plugin_loader.c                             \
52         ico_ivi_common_private.h                \
53         ico_plugin_version.h
54
55 # IVI-Shell
56 ico_ivi_shell = ico_ivi_shell.la
57 ico_ivi_shell_la_LDFLAGS = -module -avoid-version
58 ico_ivi_shell_la_LIBADD = $(PLUGIN_LIBS)
59 ico_ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
60 ico_ivi_shell_la_SOURCES =                      \
61         ico_ivi_shell.h                                 \
62         ico_ivi_shell.c                                 \
63         ico_exposay.c                                   \
64         ico_input-panel.c                               \
65         ico_ivi_shell_private.h                 \
66         ico_ivi_common_private.h                \
67         desktop-shell-protocol.c                \
68         desktop-shell-server-protocol.h \
69         xdg-shell-protocol.c                    \
70         xdg-shell-server-protocol.h
71
72 # Multi Window Manager
73 ico_window_mgr = ico_window_mgr.la
74 ico_window_mgr_la_LDFLAGS = -module -avoid-version
75 ico_window_mgr_la_LIBADD = -lEGL -lGLESv2 -ldrm_intel $(PLUGIN_LIBS) $(AUL_LIBS)
76 ico_window_mgr_la_CFLAGS = -I/usr/include/libdrm $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
77 ico_window_mgr_la_SOURCES =                     \
78         ico_window_mgr.c                                \
79         ico_window_mgr_private.h                \
80         ico_window_mgr.h                                \
81         ico_ivi_common_private.h                \
82         ico_ivi_shell_private.h                 \
83         ico_window_mgr-protocol.c               \
84         ico_window_mgr-server-protocol.h
85 #
86 # Window Animation
87 ico_window_animation = ico_window_animation.la
88 ico_window_animation_la_LDFLAGS = -module -avoid-version
89 ico_window_animation_la_LIBADD = $(PLUGIN_LIBS) $(AUL_LIBS)
90 ico_window_animation_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
91 ico_window_animation_la_SOURCES =       \
92         ico_window_animation.c                  \
93         ico_window_mgr_private.h                \
94         ico_ivi_common._privateh
95
96 # Multi Input Manager
97 ico_input_mgr = ico_input_mgr.la
98 ico_input_mgr_la_LDFLAGS = -module -avoid-version
99 ico_input_mgr_la_LIBADD = $(PLUGIN_LIBS)
100 ico_input_mgr_la_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
101 ico_input_mgr_la_SOURCES =                      \
102         ico_input_mgr.c                                 \
103         ico_input_mgr.h                                 \
104         ico_window_mgr_private.h                \
105         ico_ivi_common._privateh                \
106         ico_input_mgr-protocol.c                \
107         ico_input_mgr-server-protocol.h
108
109 # Wayland protocol(Build by wayland-scanner)
110 BUILT_SOURCES =                                         \
111         desktop-shell-protocol.c                \
112         desktop-shell-server-protocol.h \
113         desktop-shell-client-protocol.h \
114         xdg-shell-protocol.c                    \
115         xdg-shell-server-protocol.h             \
116         xdg-shell-client-protocol.h             \
117         input-method-protocol.c                 \
118         input-method-server-protocol.h  \
119         input-method-client-protocol.h  \
120         workspaces-protocol.c                   \
121         workspaces-server-protocol.h    \
122         workspaces-client-protocol.h    \
123         ico_window_mgr-protocol.c               \
124         ico_window_mgr-server-protocol.h        \
125         ico_window_mgr-client-protocol.h        \
126         ico_input_mgr-protocol.c                \
127         ico_input_mgr-server-protocol.h \
128         ico_input_mgr-client-protocol.h
129
130 CLEANFILES = $(BUILT_SOURCES)
131
132 @wayland_scanner_rules@