blob: b1673feb1bb81749519af951a8aa3f5736f60182 [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 \
Rob Tsuk487a92c2015-01-06 13:22:54 -080021 ClipArea.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080022 DamageAccumulator.cpp \
23 DisplayList.cpp \
24 DeferredDisplayList.cpp \
25 DeferredLayerUpdater.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080026 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 \
John Reck849911a2015-01-20 07:51:14 -080054 SkiaCanvas.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080055 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
John Recka2732a22014-12-18 13:52:33 -080079LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
John Reck35cf58a2014-12-18 13:14:40 -080080LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
81
82ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
83 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
84 LOCAL_SHARED_LIBRARIES += libRS libRScpp
85 LOCAL_C_INCLUDES += \
86 $(intermediates) \
87 frameworks/rs/cpp \
88 frameworks/rs \
89
90endif
91
92ifndef HWUI_COMPILE_SYMBOLS
93 LOCAL_CFLAGS += -fvisibility=hidden
94endif
95
96ifdef HWUI_COMPILE_FOR_PERF
97 # TODO: Non-arm?
98 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
99endif
100
101# Defaults for ATRACE_TAG and LOG_TAG for libhwui
102LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
103
Chris Craik2ae07332015-01-21 14:22:39 -0800104LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter -Wunreachable-code