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