blob: 8a4e6092456a20c31ea1ea8cbe826621390faf1d [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 \
John Reck1ed72372015-04-23 15:45:54 -070027 utils/LinearAllocator.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080028 utils/SortedListImpl.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080029 AmbientShadow.cpp \
30 AnimationContext.cpp \
31 Animator.cpp \
32 AnimatorManager.cpp \
33 AssetAtlas.cpp \
34 Caches.cpp \
35 CanvasState.cpp \
Rob Tsuk487a92c2015-01-06 13:22:54 -080036 ClipArea.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080037 DamageAccumulator.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080038 DeferredDisplayList.cpp \
39 DeferredLayerUpdater.cpp \
Chris Craik03188872015-02-02 18:39:33 -080040 DisplayList.cpp \
Chris Craikdb663fe2015-04-20 13:34:45 -070041 DisplayListCanvas.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080042 Dither.cpp \
43 DrawProfiler.cpp \
44 Extensions.cpp \
45 FboCache.cpp \
46 FontRenderer.cpp \
John Reckba6adf62015-02-19 14:36:50 -080047 FrameInfo.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080048 GammaFontRenderer.cpp \
Chris Craik03188872015-02-02 18:39:33 -080049 GlopBuilder.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080050 GradientCache.cpp \
51 Image.cpp \
52 Interpolator.cpp \
John Reckba6adf62015-02-19 14:36:50 -080053 JankTracker.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080054 Layer.cpp \
55 LayerCache.cpp \
56 LayerRenderer.cpp \
57 Matrix.cpp \
58 OpenGLRenderer.cpp \
59 Patch.cpp \
60 PatchCache.cpp \
61 PathCache.cpp \
62 PathTessellator.cpp \
63 PixelBuffer.cpp \
64 Program.cpp \
65 ProgramCache.cpp \
Chris Craik2507c342015-05-04 14:36:49 -070066 Properties.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080067 RenderBufferCache.cpp \
68 RenderNode.cpp \
69 RenderProperties.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080070 ResourceCache.cpp \
71 ShadowTessellator.cpp \
John Reck849911a2015-01-20 07:51:14 -080072 SkiaCanvas.cpp \
Derek Sollenberger1db141f2014-12-16 08:37:20 -050073 SkiaCanvasProxy.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080074 SkiaShader.cpp \
75 Snapshot.cpp \
76 SpotShadow.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080077 TessellationCache.cpp \
Chris Craik03188872015-02-02 18:39:33 -080078 TextDropShadowCache.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080079 Texture.cpp \
Chris Craik03188872015-02-02 18:39:33 -080080 TextureCache.cpp
John Reck35cf58a2014-12-18 13:14:40 -080081
John Reck35cf58a2014-12-18 13:14:40 -080082intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
83
84LOCAL_C_INCLUDES += \
85 external/skia/src/core
86
John Recka2732a22014-12-18 13:52:33 -080087LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
John Reck35cf58a2014-12-18 13:14:40 -080088LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
89
90ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
91 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
92 LOCAL_SHARED_LIBRARIES += libRS libRScpp
93 LOCAL_C_INCLUDES += \
94 $(intermediates) \
95 frameworks/rs/cpp \
96 frameworks/rs \
97
98endif
99
100ifndef HWUI_COMPILE_SYMBOLS
101 LOCAL_CFLAGS += -fvisibility=hidden
102endif
103
104ifdef HWUI_COMPILE_FOR_PERF
105 # TODO: Non-arm?
106 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
107endif
108
John Reck041b9852015-02-25 14:32:41 -0800109ifeq (true, $(HWUI_NULL_GPU))
110 LOCAL_SRC_FILES += \
111 tests/nullegl.cpp \
112 tests/nullgles.cpp
113
114 LOCAL_CFLAGS += -DHWUI_NULL_GPU
115endif
116
John Reck35cf58a2014-12-18 13:14:40 -0800117# Defaults for ATRACE_TAG and LOG_TAG for libhwui
118LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
119
Chris Craik2ae07332015-01-21 14:22:39 -0800120LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter -Wunreachable-code