1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 # Only build libhwui when USE_OPENGL_RENDERER is 5 # defined in the current device/board configuration 6 ifeq ($(USE_OPENGL_RENDERER),true) 7 LOCAL_SRC_FILES:= \ 8 utils/Blur.cpp \ 9 utils/SortedListImpl.cpp \ 10 thread/TaskManager.cpp \ 11 font/CacheTexture.cpp \ 12 font/Font.cpp \ 13 AssetAtlas.cpp \ 14 FontRenderer.cpp \ 15 GammaFontRenderer.cpp \ 16 Caches.cpp \ 17 DisplayList.cpp \ 18 DeferredDisplayList.cpp \ 19 DisplayListLogBuffer.cpp \ 20 DisplayListRenderer.cpp \ 21 Dither.cpp \ 22 Extensions.cpp \ 23 FboCache.cpp \ 24 GradientCache.cpp \ 25 Image.cpp \ 26 Layer.cpp \ 27 LayerCache.cpp \ 28 LayerRenderer.cpp \ 29 Matrix.cpp \ 30 OpenGLRenderer.cpp \ 31 Patch.cpp \ 32 PatchCache.cpp \ 33 PathCache.cpp \ 34 PathTessellator.cpp \ 35 PixelBuffer.cpp \ 36 Program.cpp \ 37 ProgramCache.cpp \ 38 RenderBufferCache.cpp \ 39 ResourceCache.cpp \ 40 SkiaColorFilter.cpp \ 41 SkiaShader.cpp \ 42 Snapshot.cpp \ 43 Stencil.cpp \ 44 Texture.cpp \ 45 TextureCache.cpp \ 46 TextDropShadowCache.cpp 47 48 intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,) 49 50 LOCAL_C_INCLUDES += \ 51 $(JNI_H_INCLUDE) \ 52 $(LOCAL_PATH)/../../include/utils \ 53 external/skia/include/core \ 54 external/skia/include/effects \ 55 external/skia/include/images \ 56 external/skia/src/core \ 57 external/skia/src/ports \ 58 external/skia/include/utils 59 60 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES 61 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 62 LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui 63 LOCAL_MODULE := libhwui 64 LOCAL_MODULE_TAGS := optional 65 66 ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT)) 67 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT 68 LOCAL_SHARED_LIBRARIES += libRS libRScpp libstlport 69 LOCAL_C_INCLUDES += \ 70 $(intermediates) \ 71 frameworks/rs/cpp \ 72 frameworks/rs \ 73 external/stlport/stlport \ 74 bionic/ \ 75 bionic/libstdc++/include 76 endif 77 78 ifndef HWUI_COMPILE_SYMBOLS 79 LOCAL_CFLAGS += -fvisibility=hidden 80 endif 81 82 ifdef HWUI_COMPILE_FOR_PERF 83 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs 84 endif 85 86 include $(BUILD_SHARED_LIBRARY) 87 88 include $(call all-makefiles-under,$(LOCAL_PATH)) 89 endif 90