blob: 7c1a724835fea8ab5e66efbe40c75c7abf2a9f30 [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 \
Chris Craik96a5c4c2015-01-27 15:46:35 -080010 renderstate/MeshState.cpp \
11 renderstate/PixelBufferState.cpp \
Chris Craik65fe5ee2015-01-26 18:06:29 -080012 renderstate/RenderState.cpp \
13 renderstate/Scissor.cpp \
Chris Craik96a5c4c2015-01-27 15:46:35 -080014 renderstate/Stencil.cpp \
Chris Craik65fe5ee2015-01-26 18:06:29 -080015 renderthread/CanvasContext.cpp \
16 renderthread/DrawFrameTask.cpp \
17 renderthread/EglManager.cpp \
18 renderthread/RenderProxy.cpp \
19 renderthread/RenderTask.cpp \
20 renderthread/RenderThread.cpp \
21 renderthread/TimeLord.cpp \
22 thread/TaskManager.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080023 utils/Blur.cpp \
24 utils/GLUtils.cpp \
25 utils/SortedListImpl.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080026 AmbientShadow.cpp \
27 AnimationContext.cpp \
28 Animator.cpp \
29 AnimatorManager.cpp \
30 AssetAtlas.cpp \
31 Caches.cpp \
32 CanvasState.cpp \
Rob Tsuk487a92c2015-01-06 13:22:54 -080033 ClipArea.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080034 DamageAccumulator.cpp \
35 DisplayList.cpp \
36 DeferredDisplayList.cpp \
37 DeferredLayerUpdater.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080038 DisplayListRenderer.cpp \
39 Dither.cpp \
40 DrawProfiler.cpp \
41 Extensions.cpp \
42 FboCache.cpp \
43 FontRenderer.cpp \
44 GammaFontRenderer.cpp \
45 GradientCache.cpp \
46 Image.cpp \
47 Interpolator.cpp \
48 Layer.cpp \
49 LayerCache.cpp \
50 LayerRenderer.cpp \
51 Matrix.cpp \
52 OpenGLRenderer.cpp \
53 Patch.cpp \
54 PatchCache.cpp \
55 PathCache.cpp \
56 PathTessellator.cpp \
57 PixelBuffer.cpp \
58 Program.cpp \
59 ProgramCache.cpp \
60 RenderBufferCache.cpp \
61 RenderNode.cpp \
62 RenderProperties.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080063 ResourceCache.cpp \
64 ShadowTessellator.cpp \
John Reck849911a2015-01-20 07:51:14 -080065 SkiaCanvas.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080066 SkiaShader.cpp \
67 Snapshot.cpp \
68 SpotShadow.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080069 TessellationCache.cpp \
70 Texture.cpp \
71 TextureCache.cpp \
72 TextDropShadowCache.cpp
73
John Reck35cf58a2014-12-18 13:14:40 -080074intermediates := $(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