1 #
2 # Copyright (C) 2011 Texas Instruments
3 # Author: Rob Clark <rob.clark@linaro.org>
4 #
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 as published by
7 # the Free Software Foundation.
8 #
9 # This program is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 # more details.
13 #
14 # You should have received a copy of the GNU General Public License along with
15 # this program. If not, see <http://www.gnu.org/licenses/>.
16 #
18 noinst_LTLIBRARIES = libutil.la
20 libutil_la_SOURCES = \
21 display-kms.c \
22 util.c \
23 vpe-common.c
25 if ENABLE_V4L2_DMABUF
26 libutil_la_SOURCES += v4l2.c
27 endif
29 if ENABLE_DCE
30 libutil_la_SOURCES += demux.c
31 endif
33 if ENABLE_KMSCUBE
34 libutil_la_SOURCES += display-kmscube.c esTransform.c
35 endif
37 if ENABLE_WAYLAND
38 libutil_la_SOURCES += display-wayland.c wayland-drm-protocol.c wayland-scaler-protocol.c
39 libutil_la_CFLAGS = @DRM_CFLAGS@
40 libutil_la_LDFLAGS = -lwayland-client -lwayland-cursor -ldrm -ldrm_omap -lpthread -lpvr_wlegl
42 endif
44 libutil_la_LIBADD = @DRM_LIBS@ @DCE_LIBS@ @GBM_LIBS@ @EGL_LIBS@ @GLES2_LIBS@
45 libutil_la_CFLAGS = @DRM_CFLAGS@ @DCE_CFLAGS@ @WARN_CFLAGS@ @GBM_CFLAGS@ @EGL_CFLAGS@ @GLES2_CFLAGS@