changeset 627:97bf0ff7a038 openvg

linked with libEGL and libOpenVG
author Thinker K.F. Li <thinker@branda.to>
date Fri, 16 Jul 2010 18:03:52 +0800
parents e4138c12fa8c
children e50c4e111698
files configure.ac examples/calculator/Makefile.am src/Makefile.am src/graph_engine_openvg.c
diffstat 4 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Fri Jul 16 16:39:53 2010 +0800
+++ b/configure.ac	Fri Jul 16 18:03:52 2010 +0800
@@ -125,7 +125,7 @@
 
 # Define AM and AC variable for X_supp
 AM_CONDITIONAL([X_SUPP],
-	 [test x$X_supp = xtrue -a x$cairo = xtrue])
+	 [test x$X_supp = xtrue -a \( x$cairo = xtrue -o x$openvg = xtrue \)])
 [if [ x"${X_supp}" = xtrue -a \( x"${cairo}" = xtrue -o x"${openvg}" = xtrue \) ]; then]
 AC_DEFINE([X_SUPP])
 [fi]
--- a/examples/calculator/Makefile.am	Fri Jul 16 16:39:53 2010 +0800
+++ b/examples/calculator/Makefile.am	Fri Jul 16 18:03:52 2010 +0800
@@ -11,6 +11,10 @@
 BUILT_SOURCES = calculator_scr.c calculator_scr.h calculator_scr.mb
 CLEANFILES = calculator_scr.c calculator_scr.h calculator_scr.mb
 
+if OPENVG_GRAPH_ENGINE
+calc_LDFLAGS += -lOpenVG -lEGL
+endif
+
 calculator_scr.mb: $(srcdir)/calculator_scr.svg
 	$(top_srcdir)/tools/svg2code.py -s $? $@
 
--- a/src/Makefile.am	Fri Jul 16 16:39:53 2010 +0800
+++ b/src/Makefile.am	Fri Jul 16 18:03:52 2010 +0800
@@ -51,6 +51,7 @@
 
 if OPENVG_GRAPH_ENGINE
 libmbfly_la_SOURCES += graph_engine_openvg.c
+libmbfly_la_LDFLAGS += -lOpenVG -lEGL
 endif
 
 X_main_SOURCES = X_main.c
--- a/src/graph_engine_openvg.c	Fri Jul 16 16:39:53 2010 +0800
+++ b/src/graph_engine_openvg.c	Fri Jul 16 18:03:52 2010 +0800
@@ -255,7 +255,7 @@
 
     pattern = O_ALLOC(mbe_pattern_t);
     if(pattern == NULL) {
-	vgPaintDestroy(paint);
+	vgDestroyPaint(paint);
 	return NULL;
     }