Android.mk revision 7c1a49f5f5ed6613d736464bf5001b777e89ced2
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		font/CacheTexture.cpp \
10		font/Font.cpp \
11		FontRenderer.cpp \
12		GammaFontRenderer.cpp \
13		Caches.cpp \
14		DisplayListLogBuffer.cpp \
15		DisplayListRenderer.cpp \
16		Dither.cpp \
17		Extensions.cpp \
18		FboCache.cpp \
19		GradientCache.cpp \
20		Layer.cpp \
21		LayerCache.cpp \
22		LayerRenderer.cpp \
23		Matrix.cpp \
24		OpenGLRenderer.cpp \
25		Patch.cpp \
26		PatchCache.cpp \
27		PathCache.cpp \
28		PathTessellator.cpp \
29		Program.cpp \
30		ProgramCache.cpp \
31		ResourceCache.cpp \
32		ShapeCache.cpp \
33		SkiaColorFilter.cpp \
34		SkiaShader.cpp \
35		Snapshot.cpp \
36		Stencil.cpp \
37		TextureCache.cpp \
38		TextDropShadowCache.cpp
39
40	LOCAL_C_INCLUDES += \
41		$(JNI_H_INCLUDE) \
42		$(LOCAL_PATH)/../../include/utils \
43		external/skia/include/core \
44		external/skia/include/effects \
45		external/skia/include/images \
46		external/skia/src/ports \
47		external/skia/include/utils
48
49	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DGL_GLEXT_PROTOTYPES
50	LOCAL_MODULE_CLASS := SHARED_LIBRARIES
51	LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia libui
52	LOCAL_MODULE := libhwui
53	LOCAL_MODULE_TAGS := optional
54
55	ifndef HWUI_COMPILE_SYMBOLS
56		LOCAL_CFLAGS += -fvisibility=hidden
57	endif
58
59	ifdef HWUI_COMPILE_FOR_PERF
60		LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
61	endif
62
63	include $(BUILD_SHARED_LIBRARY)
64
65    include $(call all-makefiles-under,$(LOCAL_PATH))
66endif
67