view Android/mb/Android.mk @ 887:8a2d676d9fa3 abs_n_rel_center

Fix bug of clearing COF_TEMP_MARK. draw_shapes_in_dirty_areas() mark COF_TEMP_MARK on coords and clear them before leaving. But, it always clear the same one coord for several times and keep others untouched. It is a logical error. It can be avoided by avoiding to use the variable at mutliple place for different purpose in a function, and compiler will check it out by yelling that the variable is used before assigning a value.
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 26 Sep 2010 14:07:05 +0800
parents ccc6bdc7e5a0
children
line wrap: on
line source

LOCAL_PATH:= $(call my-dir)
MB_LOCAL_PATH := $(LOCAL_PATH)
include $(CLEAR_VARS)

LOCAL_MODULE := MadButterfly
LOCAL_CONFIGURE := $(LOCAL_PATH)/../../configure
LOCAL_CONFIGURE_ARGS := --enable-skia --config-cache
LOCAL_CFLAGS := -I$(shell pwd)/$(call include-path-for,corecg) \
	-I$(shell pwd)/$(call include-path-for,corecg)/../effects/ \
	-I$(shell pwd)/$(call include-path-for,frameworks-base) \
	-I$(shell pwd)/$(call include-path-for,system-core)
# LOCAL_CFLAGS += -O0 -g
LOCAL_CONFIGURE_CACHE := config.cache

include $(BUILD_AUTOCONF)

MB_INTERMEDIATES:=$(strip $(intermediates))

$(LOCAL_BUILT_MODULE): $(MB_INTERMEDIATES)/build/config.cache

$(MB_INTERMEDIATES)/build/config.cache:
	$(hide) mkdir -p $(MB_INTERMEDIATES)/build/;
	cp $(strip $(MB_LOCAL_PATH))/config.cache $(MB_INTERMEDIATES)/build/

include $(CLEAR_VARS)

LOCAL_MODULE:= libmbfly
LOCAL_MODULE_SUFFIX:= .a
LOCAL_SRC_FILES:= $(MB_INTERMEDIATES)/build/src/.libs/libmbfly.a
LOCAL_MODULE_CLASS:= STATIC_LIBRARIES
LOCAL_REQUIRED_MODULES:= MadButterfly
LOCAL_COPY_HEADERS:= \
		../../include/mb_prop.h \
		../../include/mb_graph_engine.h \
		../../include/mb_redraw_man.h \
		../../include/mb.h \
		../../include/mb_graph_engine_cairo.h \
		../../include/mb_shapes.h \
		../../include/mb_X_supp.h \
		../../include/mb_graph_engine_skia.h \
		../../include/mb_so.h \
		../../include/mb_af.h \
		../../include/mb_img_ldr.h \
		../../include/mb_timer.h \
		../../include/mb_ani_menu.h \
		../../include/mb_obj.h \
		../../include/mb_tools.h \
		../../include/mb_animate.h \
		../../include/mb_observer.h \
		../../include/mb_types.h \
		../../include/mb_basic_types.h \
		../../include/mb_paint.h \
		../../include/mbbutton.h
LOCAL_COPY_HEADERS_TO:= libmbfly

include $(BUILD_DUMMY)

MB_LOCAL_COPY_HEADERS_TO:= $(LOCAL_COPY_HEADERS_TO)
$(eval $(call copy-one-header,$(MB_INTERMEDIATES)/build/include/mb_config.h,$(TARGET_OUT_HEADERS)/$(MB_LOCAL_COPY_HEADERS_TO)/mb_config.h))
all_copied_headers: $(TARGET_OUT_HEADERS)/$(MB_LOCAL_COPY_HEADERS_TO)/mb_config.h

$(MB_INTERMEDIATES)/build/src/.libs/libmbfly.a: MadButterfly
$(MB_INTERMEDIATES)/build/include/mb_config.h: MadButterfly