Imported Upstream version 0.1.0+git20131207+e452e83
[deb_libhybris.git] / hybris / egl / platforms / common / Makefile.am
1 lib_LTLIBRARIES = \
2 libhybris-eglplatformcommon.la
3
4 libhybris_eglplatformcommon_la_SOURCES = \
5 native_handle.c \
6 nativewindowbase.cpp \
7 eglplatformcommon.cpp \
8 windowbuffer.cpp
9
10 pkgconfigdir = $(libdir)/pkgconfig
11 pkgconfig_DATA = hybris-egl-platform.pc
12
13 if WANT_WAYLAND
14 lib_LTLIBRARIES += libwayland-egl.la
15
16 pkgconfig_DATA += wayland-egl.pc
17
18
19 libhybris_eglplatformcommon_la_SOURCES += \
20 server_wlegl.cpp \
21 server_wlegl_handle.cpp \
22 server_wlegl_buffer.cpp \
23 wayland-android-protocol.c
24
25 BUILT_SOURCES = wayland-android-protocol.c \
26 wayland-android-client-protocol.h \
27 wayland-android-server-protocol.h
28
29 %-protocol.c : %.xml
30 $(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
31
32 %-server-protocol.h : %.xml
33 $(AM_V_GEN)$(WAYLAND_SCANNER) server-header < $< > $@
34
35 %-client-protocol.h : %.xml
36 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@
37
38 libwayland_egl_la_SOURCES = wayland-egl.c
39
40 libwayland_egl_la_CFLAGS = -I. -I$(top_srcdir)/include -I$(top_srcdir)/include/android $(WAYLAND_CLIENT_CFLAGS) $(WAYLAND_SERVER_CFLAGS)
41 if WANT_TRACE
42 libwayland_egl_la_CFLAGS += -DDEBUG
43 endif
44 if WANT_DEBUG
45 libwayland_egl_la_CFLAGS += -ggdb -O0
46 endif
47
48 libwayland_egl_la_CXXFLAGS = -I. -I$(top_srcdir)/include -I$(top_srcdir)/include/android $(WAYLAND_CLIENT_CFLAGS) $(WAYLAND_SERVER_CFLAGS)
49 if WANT_TRACE
50 libwayland_egl_la_CXXFLAGS += -DDEBUG
51 endif
52 if WANT_DEBUG
53 libwayland_egl_la_CXXFLAGS += -ggdb -O0
54 endif
55 libwayland_egl_la_LDFLAGS = \
56 -version-info "1":"0"
57
58 endif
59
60 libhybris_eglplatformcommon_la_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/android -I$(top_srcdir)/egl -I$(top_srcdir)/common/
61 if WANT_WAYLAND
62 libhybris_eglplatformcommon_la_CFLAGS += $(WAYLAND_CLIENT_CFLAGS) $(WAYLAND_SERVER_CFLAGS) -I$(top_srcdir)/include/android
63 endif
64
65 if WANT_MESA
66 libhybris_eglplatformcommon_la_CFLAGS += -DLIBHYBRIS_WANTS_MESA_X11_HEADERS
67 endif
68 if WANT_TRACE
69 libhybris_eglplatformcommon_la_CFLAGS += -DDEBUG
70 endif
71 if WANT_DEBUG
72 libhybris_eglplatformcommon_la_CFLAGS += -ggdb -O0
73 endif
74
75
76 libhybris_eglplatformcommon_la_CXXFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/egl -I$(top_srcdir)/include/android -I$(top_srcdir)/common/
77 if WANT_MESA
78 libhybris_eglplatformcommon_la_CXXFLAGS += -DLIBHYBRIS_WANTS_MESA_X11_HEADERS
79 endif
80
81 if WANT_WAYLAND
82 libhybris_eglplatformcommon_la_CXXFLAGS += $(WAYLAND_CLIENT_CFLAGS) $(WAYLAND_SERVER_CFLAGS) -I$(top_srcdir)/include/android
83 endif
84
85 if WANT_TRACE
86 libhybris_eglplatformcommon_la_CXXFLAGS += -DDEBUG
87 endif
88 if WANT_DEBUG
89 libhybris_eglplatformcommon_la_CXXFLAGS += -ggdb -O0
90 endif
91 libhybris_eglplatformcommon_la_LDFLAGS = \
92 $(top_builddir)/common/libhybris-common.la \
93 -version-info "1":"0":"0"
94
95 eglplatformcommondir = $(includedir)/hybris/eglplatformcommon
96 eglplatformcommon_HEADERS = \
97 support.h \
98 nativewindowbase.h \
99 eglplatformcommon.h \
100 hybris_nativebufferext.h
101
102 if WANT_WAYLAND
103 libhybris_eglplatformcommon_la_LDFLAGS += \
104 $(WAYLAND_CLIENT_LIBS) \
105 $(WAYLAND_SERVER_LIBS)
106 endif