]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/omapdrmtest.git/blobdiff - Makefile.am
Added buf_lock and buf_unlock APIs in copycodec and yuvcopy test cases.
[glsdk/omapdrmtest.git] / Makefile.am
index 95e8e22f4142bd444edb9e8b733261a557ae152c..c83c3c9be6442dfac67ca6e45aa5686a741d8b8c 100644 (file)
@@ -1,28 +1,51 @@
-#  
+#
 #  Copyright (C) 2011 Texas Instruments
 #  Author: Rob Clark <rob.clark@linaro.org>
-#  
+#
 #  This program is free software; you can redistribute it and/or modify it
 #  under the terms of the GNU General Public License version 2 as published by
 #  the Free Software Foundation.
-#  
+#
 #  This program is distributed in the hope that it will be useful, but WITHOUT
 #  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 #  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 #  more details.
-#  
+#
 #  You should have received a copy of the GNU General Public License along with
 #  this program.  If not, see <http://www.gnu.org/licenses/>.
-#  
+#
 
-SUBDIRS = util
-bin_PROGRAMS = fliptest dmabuftest
+SUBDIRS = util omx_cam
+bin_PROGRAMS = fliptest v4l2capturedisplay
 
-LDADD_COMMON = @DRM_LIBS@ @X11_LIBS@ util/libutil.la
-CFLAGS = @DRM_CFLAGS@ @X11_CFLAGS@ @WARN_CFLAGS@ -I$(top_srcdir)/util
+if ENABLE_V4L2_DMABUF
+bin_PROGRAMS += dmabuftest
+endif
+
+if ENABLE_DCE
+bin_PROGRAMS += viddec3test copycodectest yuvcopytest
+endif
+
+LDADD_COMMON = util/libutil.la @DRM_LIBS@ @DCE_LIBS@ @GBM_LIBS@ @EGL_LIBS@ @GLES2_LIBS@
+AM_CFLAGS = @DRM_CFLAGS@ @DCE_CFLAGS@ @GBM_CFLAGS@ @EGL_CFLAGS@ @GLES2_CFLAGS@ @WARN_CFLAGS@ -I$(top_srcdir)/util
+LDFLAGS = -lm -lavcodec -lpthread
 
 fliptest_SOURCES = fliptest.c
-fliptest_LDADD = $(LDADD_COMMON) util/libutil.la
+fliptest_LDADD = $(LDADD_COMMON)
 
+v4l2capturedisplay_SOURCES = v4l2capturedisplay.c
+v4l2capturedisplay_LDADD = $(LDADD_COMMON)
+
+if ENABLE_V4L2_DMABUF
 dmabuftest_SOURCES = dmabuftest.c
-dmabuftest_LDADD = $(LDADD_COMMON) util/libutil.la
+dmabuftest_LDADD = $(LDADD_COMMON) -lpthread
+endif
+
+if ENABLE_DCE
+viddec3test_SOURCES = viddec3test.c
+viddec3test_LDADD = $(LDADD_COMMON)
+copycodectest_SOURCES = copycodectest.c
+copycodectest_LDADD = $(LDADD_COMMON)
+yuvcopytest_SOURCES = yuvcopytest.c
+yuvcopytest_LDADD = $(LDADD_COMMON)
+endif