blob: 5079852ec81b84bd7973524d0c249b5bdc0bb0bf [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 := \
Chris Craik65fe5ee2015-01-26 18:06:29 -08008 font/CacheTexture.cpp \
9 font/Font.cpp \
10 renderstate/RenderState.cpp \
11 renderstate/Scissor.cpp \
12 renderthread/CanvasContext.cpp \
13 renderthread/DrawFrameTask.cpp \
14 renderthread/EglManager.cpp \
15 renderthread/RenderProxy.cpp \
16 renderthread/RenderTask.cpp \
17 renderthread/RenderThread.cpp \
18 renderthread/TimeLord.cpp \
19 thread/TaskManager.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080020 utils/Blur.cpp \
21 utils/GLUtils.cpp \
22 utils/SortedListImpl.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080023 AmbientShadow.cpp \
24 AnimationContext.cpp \
25 Animator.cpp \
26 AnimatorManager.cpp \
27 AssetAtlas.cpp \
28 Caches.cpp \
29 CanvasState.cpp \
Rob Tsuk487a92c2015-01-06 13:22:54 -080030 ClipArea.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080031 DamageAccumulator.cpp \
32 DisplayList.cpp \
33 DeferredDisplayList.cpp \
34 DeferredLayerUpdater.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080035 DisplayListRenderer.cpp \
36 Dither.cpp \
37 DrawProfiler.cpp \
38 Extensions.cpp \
39 FboCache.cpp \
40 FontRenderer.cpp \
41 GammaFontRenderer.cpp \
42 GradientCache.cpp \
43 Image.cpp \
44 Interpolator.cpp \
45 Layer.cpp \
46 LayerCache.cpp \
47 LayerRenderer.cpp \
48 Matrix.cpp \
49 OpenGLRenderer.cpp \
50 Patch.cpp \
51 PatchCache.cpp \
52 PathCache.cpp \
53 PathTessellator.cpp \
54 PixelBuffer.cpp \
55 Program.cpp \
56 ProgramCache.cpp \
57 RenderBufferCache.cpp \
58 RenderNode.cpp \
59 RenderProperties.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080060 ResourceCache.cpp \
61 ShadowTessellator.cpp \
John Reck849911a2015-01-20 07:51:14 -080062 SkiaCanvas.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080063 SkiaShader.cpp \
64 Snapshot.cpp \
65 SpotShadow.cpp \
66 Stencil.cpp \
67 TessellationCache.cpp \
68 Texture.cpp \
69 TextureCache.cpp \
70 TextDropShadowCache.cpp
71
John Reck35cf58a2014-12-18 13:14:40 -080072intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
73
74LOCAL_C_INCLUDES += \
75 external/skia/src/core
76
John Recka2732a22014-12-18 13:52:33 -080077LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
John Reck35cf58a2014-12-18 13:14:40 -080078LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
79
80ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
81 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
82 LOCAL_SHARED_LIBRARIES += libRS libRScpp
83 LOCAL_C_INCLUDES += \
84 $(intermediates) \
85 frameworks/rs/cpp \
86 frameworks/rs \
87
88endif
89
90ifndef HWUI_COMPILE_SYMBOLS
91 LOCAL_CFLAGS += -fvisibility=hidden
92endif
93
94ifdef HWUI_COMPILE_FOR_PERF
95 # TODO: Non-arm?
96 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
97endif
98
99# Defaults for ATRACE_TAG and LOG_TAG for libhwui
100LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
101
Chris Craik2ae07332015-01-21 14:22:39 -0800102LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter -Wunreachable-code