blob: 2e1364ec8f6154b268d1d72e5cf7c100162fb51b [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 \
John Reck35cf58a2014-12-18 13:14:40 -080037 DeferredDisplayList.cpp \
38 DeferredLayerUpdater.cpp \
Chris Craik03188872015-02-02 18:39:33 -080039 DisplayList.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 \
Chris Craik03188872015-02-02 18:39:33 -080047 GlopBuilder.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080048 GradientCache.cpp \
49 Image.cpp \
50 Interpolator.cpp \
51 Layer.cpp \
52 LayerCache.cpp \
53 LayerRenderer.cpp \
54 Matrix.cpp \
55 OpenGLRenderer.cpp \
56 Patch.cpp \
57 PatchCache.cpp \
58 PathCache.cpp \
59 PathTessellator.cpp \
60 PixelBuffer.cpp \
61 Program.cpp \
62 ProgramCache.cpp \
63 RenderBufferCache.cpp \
64 RenderNode.cpp \
65 RenderProperties.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080066 ResourceCache.cpp \
67 ShadowTessellator.cpp \
John Reck849911a2015-01-20 07:51:14 -080068 SkiaCanvas.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080069 SkiaShader.cpp \
70 Snapshot.cpp \
71 SpotShadow.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080072 TessellationCache.cpp \
Chris Craik03188872015-02-02 18:39:33 -080073 TextDropShadowCache.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080074 Texture.cpp \
Chris Craik03188872015-02-02 18:39:33 -080075 TextureCache.cpp
John Reck35cf58a2014-12-18 13:14:40 -080076
John Reck35cf58a2014-12-18 13:14:40 -080077intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
78
79LOCAL_C_INCLUDES += \
80 external/skia/src/core
81
John Recka2732a22014-12-18 13:52:33 -080082LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
John Reck35cf58a2014-12-18 13:14:40 -080083LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
84
85ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
86 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
87 LOCAL_SHARED_LIBRARIES += libRS libRScpp
88 LOCAL_C_INCLUDES += \
89 $(intermediates) \
90 frameworks/rs/cpp \
91 frameworks/rs \
92
93endif
94
95ifndef HWUI_COMPILE_SYMBOLS
96 LOCAL_CFLAGS += -fvisibility=hidden
97endif
98
99ifdef HWUI_COMPILE_FOR_PERF
100 # TODO: Non-arm?
101 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
102endif
103
104# Defaults for ATRACE_TAG and LOG_TAG for libhwui
105LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
106
Chris Craik2ae07332015-01-21 14:22:39 -0800107LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter -Wunreachable-code