view src/Makefile.am @ 489:23c7667b3ec0 Android_Skia

Fix a potential bug when destroy a rdman. When a rdman is dirty, free shapes and coords works specially. Objects are append to a free list. They are not real freed until rdman being clean. redraw_man_destroy() free shapes and coords with free functions of them. If rdman is dirty when destroy it, objects would be leaked. The changeset make rdman clean before free shapes and coords to make objects being freed correctly.
author Thinker K.F. Li <thinker@branda.to>
date Sun, 22 Nov 2009 20:41:27 +0800
parents ac886e629f90
children 71df2896877c 21f944e79b19
line wrap: on
line source

include $(top_srcdir)/config.mk

lib_LTLIBRARIES = libmbfly.la

noinst_PROGRAMS =

if SH_TEXT
noinst_PROGRAMS += X_main
endif

if TESTCASE
noinst_PROGRAMS += testcase
endif

if X_SUPP
MBAF_SOURCES=mbaf/mbapp.c mbaf/mbbutton.c mbaf/mbobject.c mbaf/animated_menu.c
else
MBAF_SOURCES=
endif

libmbfly_la_SOURCES= animate.c chgcolor.c coord.c event.c geo.c	\
	observer.c paint.c redraw_man.c rotate.c shape_path.c		\
	shape_rect.c shift.c subtree_free.c timer.c 			\
	timertool.c tools.c visibility.c prop.c sprite.c	\
	mouse.c shape_image.c img_ldr.c $(MBAF_SOURCES)

if SH_TEXT
libmbfly_la_SOURCES += shape_text.c
endif

if SH_STEXT
libmbfly_la_SOURCES += shape_stext.c
endif

if X_SUPP
libmbfly_la_SOURCES += X_supp.c
endif

if CAIRO_GRAPH_ENGINE
libmbfly_la_SOURCES += graph_engine_cairo.c

libmbfly_la_CPPFLAGS = @cairo_CFLAGS@ @pangocairo_CFLAGS@
libmbfly_la_LDFLAGS = @cairo_LIBS@ @pangocairo_LIBS@
endif

if SKIA_GRAPH_ENGINE
libmbfly_la_SOURCES += graph_engine_skia.cpp
endif

X_main_SOURCES = X_main.c
X_main_LDADD = $(top_builddir)/src/libmbfly.la
X_main_CPPFLAGS = @pangocairo_CFLAGS@ -I$(top_builddir)/include
X_main_LDFLAGS = @pangocairo_LIBS@

testcase_SOURCES = testcase.c $(libmbfly_la_SOURCES)
testcase_CFLAGS = -I$(top_builddir)/include \
		-DUNITTEST -g @cairo_CFLAGS@ \
		@pangocairo_CFLAGS@
testcase_LDFLAGS = -lcunit -L/usr/local/lib/ @pangocairo_LIBS@

EXTRA_PROGRAMS = testcase