blob: fba7254e6d74a5bd57c490f5556a516cab7c075f [file] [log] [blame]
John Reck35cf58a2014-12-18 13:14:40 -08001# getConfig in external/skia/include/core/SkBitmap.h is deprecated.
2# Allow Gnu extension: in-class initializer of static 'const float' member.
3LOCAL_CLANG_CFLAGS += \
John Reck35cf58a2014-12-18 13:14:40 -08004 -Wno-deprecated-declarations \
5 -Wno-gnu-static-float-init
6
7LOCAL_SRC_FILES := \
8 utils/Blur.cpp \
9 utils/GLUtils.cpp \
10 utils/SortedListImpl.cpp \
11 thread/TaskManager.cpp \
12 font/CacheTexture.cpp \
13 font/Font.cpp \
14 AmbientShadow.cpp \
15 AnimationContext.cpp \
16 Animator.cpp \
17 AnimatorManager.cpp \
18 AssetAtlas.cpp \
19 Caches.cpp \
20 CanvasState.cpp \
21 DamageAccumulator.cpp \
22 DisplayList.cpp \
23 DeferredDisplayList.cpp \
24 DeferredLayerUpdater.cpp \
25 DisplayListLogBuffer.cpp \
26 DisplayListRenderer.cpp \
27 Dither.cpp \
28 DrawProfiler.cpp \
29 Extensions.cpp \
30 FboCache.cpp \
31 FontRenderer.cpp \
32 GammaFontRenderer.cpp \
33 GradientCache.cpp \
34 Image.cpp \
35 Interpolator.cpp \
36 Layer.cpp \
37 LayerCache.cpp \
38 LayerRenderer.cpp \
39 Matrix.cpp \
40 OpenGLRenderer.cpp \
41 Patch.cpp \
42 PatchCache.cpp \
43 PathCache.cpp \
44 PathTessellator.cpp \
45 PixelBuffer.cpp \
46 Program.cpp \
47 ProgramCache.cpp \
48 RenderBufferCache.cpp \
49 RenderNode.cpp \
50 RenderProperties.cpp \
51 RenderState.cpp \
52 ResourceCache.cpp \
53 ShadowTessellator.cpp \
54 SkiaShader.cpp \
55 Snapshot.cpp \
56 SpotShadow.cpp \
57 Stencil.cpp \
58 TessellationCache.cpp \
59 Texture.cpp \
60 TextureCache.cpp \
61 TextDropShadowCache.cpp
62
63# RenderThread stuff
64LOCAL_SRC_FILES += \
65 renderthread/CanvasContext.cpp \
66 renderthread/DrawFrameTask.cpp \
67 renderthread/EglManager.cpp \
68 renderthread/RenderProxy.cpp \
69 renderthread/RenderTask.cpp \
70 renderthread/RenderThread.cpp \
71 renderthread/TimeLord.cpp
72
73intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
74
75LOCAL_C_INCLUDES += \
76 external/skia/src/core
77
John Recka2732a22014-12-18 13:52:33 -080078LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
John Reck35cf58a2014-12-18 13:14:40 -080079LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
80
81ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
82 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
83 LOCAL_SHARED_LIBRARIES += libRS libRScpp
84 LOCAL_C_INCLUDES += \
85 $(intermediates) \
86 frameworks/rs/cpp \
87 frameworks/rs \
88
89endif
90
91ifndef HWUI_COMPILE_SYMBOLS
92 LOCAL_CFLAGS += -fvisibility=hidden
93endif
94
95ifdef HWUI_COMPILE_FOR_PERF
96 # TODO: Non-arm?
97 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
98endif
99
100# Defaults for ATRACE_TAG and LOG_TAG for libhwui
101LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
102
Chris Craik07adacf2014-12-19 10:08:40 -0800103LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter -Wunused -Wunreachable-code