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