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 Snapshot.cpp \ 30 TextureCache.cpp \ 31 TextDropShadowCache.cpp 32 33 LOCAL_C_INCLUDES += \ 34 $(JNI_H_INCLUDE) \ 35 $(LOCAL_PATH)/../../include/utils \ 36 external/skia/include/core \ 37 external/skia/include/effects \ 38 external/skia/include/images \ 39 external/skia/src/ports \ 40 external/skia/include/utils 41 42 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DGL_GLEXT_PROTOTYPES 43 LOCAL_CFLAGS += -fvisibility=hidden 44 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 45 LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia libui 46 LOCAL_MODULE := libhwui 47 LOCAL_MODULE_TAGS := optional 48 49 include $(BUILD_SHARED_LIBRARY) 50 51 include $(call all-makefiles-under,$(LOCAL_PATH)) 52endif 53