view Android/java/Android.mk @ 511:caa087976b17 Android_Skia

Fix the issue of segmentation fault when the pattern of a mbe is not setted. For Skia graphic engine, a mbe does not always have a pattern. For example, a color paint does not set a pattern on a mbe for a shape. So, we check if pattern is setted before accessing it.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 01 Dec 2009 22:55:27 +0800
parents a5958244bcb8
children
line wrap: on
line source

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

LOCAL_MODULE := mbfly-java
LOCAL_MODULE_CLASS := JAVA_LIBRARIES

LOCAL_SRC_FILES := \
	org/madbutterfly/_jni.java \
	org/madbutterfly/MBView.java \
	org/madbutterfly/redraw_man.java \
	org/madbutterfly/coord.java \
	org/madbutterfly/shape.java \
	org/madbutterfly/paint.java \
	org/madbutterfly/InvalidStateException.java

include $(BUILD_JAVA_LIBRARY)

########################
include $(CLEAR_VARS)

LOCAL_MODULE := mbfly-permissions.xml

LOCAL_MODULE_TAGS := user

LOCAL_MODULE_CLASS := ETC

# This will install the file in /system/etc/permissions
#
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions

LOCAL_SRC_FILES := $(LOCAL_MODULE)

include $(BUILD_PREBUILT)