Android.mk revision edaecc1db0584fa017822dfc2da0c968b53967e6
1e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain GuyLOCAL_PATH:= $(call my-dir)
2e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain Guyinclude $(CLEAR_VARS)
388ba339aefd74ffe0ea978ebb659a430f82940f0Dan AlbertLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
4e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain Guy
5d3448e437ac247e96455014e95f15a3ddd5cb328Chih-Hung Hsieh# Too many unused parameters in external/skia/include and this directory.
6d3448e437ac247e96455014e95f15a3ddd5cb328Chih-Hung Hsieh# getConfig in external/skia/include/core/SkBitmap.h is deprecated.
7d3448e437ac247e96455014e95f15a3ddd5cb328Chih-Hung Hsieh# Allow Gnu extension: in-class initializer of static 'const float' member.
8d3448e437ac247e96455014e95f15a3ddd5cb328Chih-Hung HsiehLOCAL_CLANG_CFLAGS += \
9d3448e437ac247e96455014e95f15a3ddd5cb328Chih-Hung Hsieh    -Wno-unused-parameter \
10d3448e437ac247e96455014e95f15a3ddd5cb328Chih-Hung Hsieh    -Wno-deprecated-declarations \
11d3448e437ac247e96455014e95f15a3ddd5cb328Chih-Hung Hsieh    -Wno-gnu-static-float-init
12d3448e437ac247e96455014e95f15a3ddd5cb328Chih-Hung Hsieh
13163935113919a184122b8b3bd672ef08c8df65dcRomain Guy# Only build libhwui when USE_OPENGL_RENDERER is
14163935113919a184122b8b3bd672ef08c8df65dcRomain Guy# defined in the current device/board configuration
15163935113919a184122b8b3bd672ef08c8df65dcRomain Guyifeq ($(USE_OPENGL_RENDERER),true)
16edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    LOCAL_SRC_FILES := \
17edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        utils/Blur.cpp \
18edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        utils/GLUtils.cpp \
19edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        utils/SortedListImpl.cpp \
20edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        thread/TaskManager.cpp \
21edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        font/CacheTexture.cpp \
22edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        font/Font.cpp \
23edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        AmbientShadow.cpp \
24edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        AnimationContext.cpp \
25edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Animator.cpp \
26edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        AnimatorManager.cpp \
27edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        AssetAtlas.cpp \
28edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Caches.cpp \
29edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        CanvasState.cpp \
30edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        DamageAccumulator.cpp \
31edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        DisplayList.cpp \
32edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        DeferredDisplayList.cpp \
33edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        DeferredLayerUpdater.cpp \
34edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        DisplayListLogBuffer.cpp \
35edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        DisplayListRenderer.cpp \
36edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Dither.cpp \
37edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        DrawProfiler.cpp \
38edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Extensions.cpp \
39edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        FboCache.cpp \
40edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        FontRenderer.cpp \
41edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        GammaFontRenderer.cpp \
42edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        GradientCache.cpp \
43edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Image.cpp \
44edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Interpolator.cpp \
45edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Layer.cpp \
46edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        LayerCache.cpp \
47edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        LayerRenderer.cpp \
48edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Matrix.cpp \
49edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        OpenGLRenderer.cpp \
50edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Patch.cpp \
51edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        PatchCache.cpp \
52edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        PathCache.cpp \
53edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        PathTessellator.cpp \
54edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        PixelBuffer.cpp \
55edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Program.cpp \
56edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        ProgramCache.cpp \
57edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        RenderBufferCache.cpp \
58edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        RenderNode.cpp \
59edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        RenderProperties.cpp \
60edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        RenderState.cpp \
61edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        ResourceCache.cpp \
62edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        ShadowTessellator.cpp \
63edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        SkiaShader.cpp \
64edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Snapshot.cpp \
65edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        SpotShadow.cpp \
66edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Stencil.cpp \
67edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        TessellationCache.cpp \
68edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        Texture.cpp \
69edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        TextureCache.cpp \
70edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        TextDropShadowCache.cpp
71710f46d9d6a5bf9ea1c1833384caf61e1934124fChris Craik
72e4aa95e3627226bcb0d8cc3e42dca6e4df8f421cChris Craik# RenderThread stuff
73edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    LOCAL_SRC_FILES += \
74edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        renderthread/CanvasContext.cpp \
75edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        renderthread/DrawFrameTask.cpp \
76edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        renderthread/EglManager.cpp \
77edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        renderthread/RenderProxy.cpp \
78edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        renderthread/RenderTask.cpp \
79edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        renderthread/RenderThread.cpp \
80edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        renderthread/TimeLord.cpp
81cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck
82edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
83f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik
84edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    LOCAL_C_INCLUDES += \
85edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        external/skia/src/core
8685bf02fc16784d935fb9eebfa9cb20fe46ff7951Romain Guy
87edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
88edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    LOCAL_CFLAGS += -Wno-unused-parameter
89edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    LOCAL_MODULE_CLASS := SHARED_LIBRARIES
90edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
91edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    LOCAL_MODULE := libhwui
92edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    LOCAL_MODULE_TAGS := optional
938a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
94edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
95edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
96edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        LOCAL_SHARED_LIBRARIES += libRS libRScpp
97edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        LOCAL_C_INCLUDES += \
98edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe            $(intermediates) \
99edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe            frameworks/rs/cpp \
100edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe            frameworks/rs \
10188ba339aefd74ffe0ea978ebb659a430f82940f0Dan Albert
102edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    endif
103e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill
104edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    ifndef HWUI_COMPILE_SYMBOLS
105edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        LOCAL_CFLAGS += -fvisibility=hidden
106edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    endif
1078a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
108edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    ifdef HWUI_COMPILE_FOR_PERF
109edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        # TODO: Non-arm?
110edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe        LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
111edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    endif
1128a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
113edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    # Defaults for ATRACE_TAG and LOG_TAG for libhwui
114edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
115a7c2ea20c43ab797bef5801530687e22e83def8fJohn Reck
116edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
117e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain Guy
118edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    include external/stlport/libstlport.mk
119edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    include $(BUILD_SHARED_LIBRARY)
120edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe
121edaecc1db0584fa017822dfc2da0c968b53967e6Andreas Gampe    include $(call all-makefiles-under,$(LOCAL_PATH))
122163935113919a184122b8b3bd672ef08c8df65dcRomain Guyendif
123