Android.mk revision 4aa90573bbf86db0d33a3a790c5dbd0d93b95cfe
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4# Only build libhwui when USE_OPENGL_RENDERER is
5# defined in the current device/board configuration
6ifeq ($(USE_OPENGL_RENDERER),true)
7	LOCAL_SRC_FILES:= \
8		DisplayListRenderer.cpp \
9		FboCache.cpp \
10		FontRenderer.cpp \
11		GammaFontRenderer.cpp \
12		GradientCache.cpp \
13		LayerCache.cpp \
14		Matrix.cpp \
15		OpenGLDebugRenderer.cpp \
16		OpenGLRenderer.cpp \
17		Patch.cpp \
18		PatchCache.cpp \
19		PathCache.cpp \
20		Program.cpp \
21		ProgramCache.cpp \
22		SkiaColorFilter.cpp \
23		SkiaShader.cpp \
24		TextureCache.cpp \
25		TextDropShadowCache.cpp
26	
27	LOCAL_C_INCLUDES += \
28		$(JNI_H_INCLUDE) \
29		$(LOCAL_PATH)/../../include/utils \
30		external/skia/include/core \
31		external/skia/include/effects \
32		external/skia/include/images \
33		external/skia/src/ports \
34		external/skia/include/utils
35
36	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER
37	LOCAL_MODULE_CLASS := SHARED_LIBRARIES
38	LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia
39	LOCAL_MODULE := libhwui
40	LOCAL_MODULE_TAGS := optional
41	LOCAL_PRELINK_MODULE := false
42	
43	include $(BUILD_SHARED_LIBRARY)
44
45    include $(call all-makefiles-under,$(LOCAL_PATH))
46endif
47