# HG changeset patch # User Thinker K.F. Li # Date 1279274632 -28800 # Node ID 97bf0ff7a038612334179133519c9e57f71a9987 # Parent e4138c12fa8c81c1b6760217489da8ba044e425c linked with libEGL and libOpenVG diff -r e4138c12fa8c -r 97bf0ff7a038 configure.ac --- 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] diff -r e4138c12fa8c -r 97bf0ff7a038 examples/calculator/Makefile.am --- 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 $? $@ diff -r e4138c12fa8c -r 97bf0ff7a038 src/Makefile.am --- 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 diff -r e4138c12fa8c -r 97bf0ff7a038 src/graph_engine_openvg.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; }