blob: ecb625b97df5641e4430f5ac15a0541fef173662 [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 \
John Reckba6adf62015-02-19 14:36:50 -080046 FrameInfo.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080047 GammaFontRenderer.cpp \
Chris Craik03188872015-02-02 18:39:33 -080048 GlopBuilder.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080049 GradientCache.cpp \
50 Image.cpp \
51 Interpolator.cpp \
John Reckba6adf62015-02-19 14:36:50 -080052 JankTracker.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080053 Layer.cpp \
54 LayerCache.cpp \
55 LayerRenderer.cpp \
56 Matrix.cpp \
57 OpenGLRenderer.cpp \
58 Patch.cpp \
59 PatchCache.cpp \
60 PathCache.cpp \
61 PathTessellator.cpp \
62 PixelBuffer.cpp \
63 Program.cpp \
64 ProgramCache.cpp \
65 RenderBufferCache.cpp \
66 RenderNode.cpp \
67 RenderProperties.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080068 ResourceCache.cpp \
69 ShadowTessellator.cpp \
John Reck849911a2015-01-20 07:51:14 -080070 SkiaCanvas.cpp \
Derek Sollenberger1db141f2014-12-16 08:37:20 -050071 SkiaCanvasProxy.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080072 SkiaShader.cpp \
73 Snapshot.cpp \
74 SpotShadow.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080075 TessellationCache.cpp \
Chris Craik03188872015-02-02 18:39:33 -080076 TextDropShadowCache.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080077 Texture.cpp \
Chris Craik03188872015-02-02 18:39:33 -080078 TextureCache.cpp
John Reck35cf58a2014-12-18 13:14:40 -080079
John Reck35cf58a2014-12-18 13:14:40 -080080intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
81
82LOCAL_C_INCLUDES += \
83 external/skia/src/core
84
John Recka2732a22014-12-18 13:52:33 -080085LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
John Reck35cf58a2014-12-18 13:14:40 -080086LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
87
88ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
89 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
90 LOCAL_SHARED_LIBRARIES += libRS libRScpp
91 LOCAL_C_INCLUDES += \
92 $(intermediates) \
93 frameworks/rs/cpp \
94 frameworks/rs \
95
96endif
97
98ifndef HWUI_COMPILE_SYMBOLS
99 LOCAL_CFLAGS += -fvisibility=hidden
100endif
101
102ifdef HWUI_COMPILE_FOR_PERF
103 # TODO: Non-arm?
104 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
105endif
106
John Reck041b9852015-02-25 14:32:41 -0800107ifeq (true, $(HWUI_NULL_GPU))
108 LOCAL_SRC_FILES += \
109 tests/nullegl.cpp \
110 tests/nullgles.cpp
111
112 LOCAL_CFLAGS += -DHWUI_NULL_GPU
113endif
114
John Reck35cf58a2014-12-18 13:14:40 -0800115# Defaults for ATRACE_TAG and LOG_TAG for libhwui
116LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
117
Chris Craik2ae07332015-01-21 14:22:39 -0800118LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter -Wunreachable-code