blob: de9ef06dc61e0e211ec382bceb236ff8b512a573 [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 Craik44eb2c02015-01-29 09:45:09 -080010 renderstate/Blend.cpp \
Chris Craik96a5c4c2015-01-27 15:46:35 -080011 renderstate/MeshState.cpp \
12 renderstate/PixelBufferState.cpp \
Chris Craik65fe5ee2015-01-26 18:06:29 -080013 renderstate/RenderState.cpp \
14 renderstate/Scissor.cpp \
Chris Craik96a5c4c2015-01-27 15:46:35 -080015 renderstate/Stencil.cpp \
Chris Craik44eb2c02015-01-29 09:45:09 -080016 renderstate/TextureState.cpp \
Chris Craik65fe5ee2015-01-26 18:06:29 -080017 renderthread/CanvasContext.cpp \
18 renderthread/DrawFrameTask.cpp \
19 renderthread/EglManager.cpp \
20 renderthread/RenderProxy.cpp \
21 renderthread/RenderTask.cpp \
22 renderthread/RenderThread.cpp \
23 renderthread/TimeLord.cpp \
24 thread/TaskManager.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080025 utils/Blur.cpp \
26 utils/GLUtils.cpp \
27 utils/SortedListImpl.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080028 AmbientShadow.cpp \
29 AnimationContext.cpp \
30 Animator.cpp \
31 AnimatorManager.cpp \
32 AssetAtlas.cpp \
33 Caches.cpp \
34 CanvasState.cpp \
Rob Tsuk487a92c2015-01-06 13:22:54 -080035 ClipArea.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080036 DamageAccumulator.cpp \
37 DisplayList.cpp \
38 DeferredDisplayList.cpp \
39 DeferredLayerUpdater.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080040 DisplayListRenderer.cpp \
41 Dither.cpp \
42 DrawProfiler.cpp \
43 Extensions.cpp \
44 FboCache.cpp \
45 FontRenderer.cpp \
46 GammaFontRenderer.cpp \
47 GradientCache.cpp \
48 Image.cpp \
49 Interpolator.cpp \
50 Layer.cpp \
51 LayerCache.cpp \
52 LayerRenderer.cpp \
53 Matrix.cpp \
54 OpenGLRenderer.cpp \
55 Patch.cpp \
56 PatchCache.cpp \
57 PathCache.cpp \
58 PathTessellator.cpp \
59 PixelBuffer.cpp \
60 Program.cpp \
61 ProgramCache.cpp \
62 RenderBufferCache.cpp \
63 RenderNode.cpp \
64 RenderProperties.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080065 ResourceCache.cpp \
66 ShadowTessellator.cpp \
John Reck849911a2015-01-20 07:51:14 -080067 SkiaCanvas.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080068 SkiaShader.cpp \
69 Snapshot.cpp \
70 SpotShadow.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080071 TessellationCache.cpp \
72 Texture.cpp \
73 TextureCache.cpp \
74 TextDropShadowCache.cpp
75
John Reck35cf58a2014-12-18 13:14:40 -080076intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
77
78LOCAL_C_INCLUDES += \
79 external/skia/src/core
80
John Recka2732a22014-12-18 13:52:33 -080081LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
John Reck35cf58a2014-12-18 13:14:40 -080082LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
83
84ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
85 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
86 LOCAL_SHARED_LIBRARIES += libRS libRScpp
87 LOCAL_C_INCLUDES += \
88 $(intermediates) \
89 frameworks/rs/cpp \
90 frameworks/rs \
91
92endif
93
94ifndef HWUI_COMPILE_SYMBOLS
95 LOCAL_CFLAGS += -fvisibility=hidden
96endif
97
98ifdef HWUI_COMPILE_FOR_PERF
99 # TODO: Non-arm?
100 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
101endif
102
103# Defaults for ATRACE_TAG and LOG_TAG for libhwui
104LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
105
Chris Craik2ae07332015-01-21 14:22:39 -0800106LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter -Wunreachable-code