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