Android.mk revision 7077506f9945b87b02bdd47ffce75a5b813c821c
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		utils/SortedListImpl.cpp \
9		FontRenderer.cpp \
10		GammaFontRenderer.cpp \
11		Caches.cpp \
12		DisplayListLogBuffer.cpp \
13		DisplayListRenderer.cpp \
14		FboCache.cpp \
15		GradientCache.cpp \
16		LayerCache.cpp \
17		LayerRenderer.cpp \
18		Matrix.cpp \
19		OpenGLRenderer.cpp \
20		Patch.cpp \
21		PatchCache.cpp \
22		PathCache.cpp \
23		Program.cpp \
24		ProgramCache.cpp \
25		ResourceCache.cpp \
26		ShapeCache.cpp \
27		SkiaColorFilter.cpp \
28		SkiaShader.cpp \
29		TextureCache.cpp \
30		TextDropShadowCache.cpp
31	
32	LOCAL_C_INCLUDES += \
33		$(JNI_H_INCLUDE) \
34		$(LOCAL_PATH)/../../include/utils \
35		external/skia/include/core \
36		external/skia/include/effects \
37		external/skia/include/images \
38		external/skia/src/ports \
39		external/skia/include/utils
40
41	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER
42	LOCAL_CFLAGS += -fvisibility=hidden
43	LOCAL_MODULE_CLASS := SHARED_LIBRARIES
44	LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia libui
45	LOCAL_MODULE := libhwui
46	LOCAL_MODULE_TAGS := optional
47	
48	include $(BUILD_SHARED_LIBRARY)
49
50    include $(call all-makefiles-under,$(LOCAL_PATH))
51endif
52