blob: a5bfde736334c0d9ca9899e72c9eddc79303da72 [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.
Chih-Hung Hsieh1aa800e2015-05-22 12:28:03 -07003# DeferredLayerUpdater.h: private field 'mRenderThread' is not used.
John Reck35cf58a2014-12-18 13:14:40 -08004LOCAL_CLANG_CFLAGS += \
John Reck35cf58a2014-12-18 13:14:40 -08005 -Wno-deprecated-declarations \
Chih-Hung Hsieh1aa800e2015-05-22 12:28:03 -07006 -Wno-gnu-static-float-init \
7 -Wno-unused-private-field
John Reck35cf58a2014-12-18 13:14:40 -08008
9LOCAL_SRC_FILES := \
Chris Craik65fe5ee2015-01-26 18:06:29 -080010 font/CacheTexture.cpp \
11 font/Font.cpp \
Chris Craik44eb2c02015-01-29 09:45:09 -080012 renderstate/Blend.cpp \
Chris Craik96a5c4c2015-01-27 15:46:35 -080013 renderstate/MeshState.cpp \
14 renderstate/PixelBufferState.cpp \
Chris Craik65fe5ee2015-01-26 18:06:29 -080015 renderstate/RenderState.cpp \
16 renderstate/Scissor.cpp \
Chris Craik96a5c4c2015-01-27 15:46:35 -080017 renderstate/Stencil.cpp \
Chris Craik44eb2c02015-01-29 09:45:09 -080018 renderstate/TextureState.cpp \
Chris Craik65fe5ee2015-01-26 18:06:29 -080019 renderthread/CanvasContext.cpp \
20 renderthread/DrawFrameTask.cpp \
21 renderthread/EglManager.cpp \
22 renderthread/RenderProxy.cpp \
23 renderthread/RenderTask.cpp \
24 renderthread/RenderThread.cpp \
25 renderthread/TimeLord.cpp \
26 thread/TaskManager.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080027 utils/Blur.cpp \
28 utils/GLUtils.cpp \
John Reck1ed72372015-04-23 15:45:54 -070029 utils/LinearAllocator.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080030 utils/SortedListImpl.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080031 AmbientShadow.cpp \
32 AnimationContext.cpp \
33 Animator.cpp \
34 AnimatorManager.cpp \
35 AssetAtlas.cpp \
36 Caches.cpp \
37 CanvasState.cpp \
Rob Tsuk487a92c2015-01-06 13:22:54 -080038 ClipArea.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080039 DamageAccumulator.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080040 DeferredDisplayList.cpp \
41 DeferredLayerUpdater.cpp \
Chris Craik03188872015-02-02 18:39:33 -080042 DisplayList.cpp \
Chris Craikdb663fe2015-04-20 13:34:45 -070043 DisplayListCanvas.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080044 Dither.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080045 Extensions.cpp \
46 FboCache.cpp \
47 FontRenderer.cpp \
John Reckba6adf62015-02-19 14:36:50 -080048 FrameInfo.cpp \
John Reck4c9e59d2015-05-12 07:17:50 -070049 FrameInfoVisualizer.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080050 GammaFontRenderer.cpp \
Chris Craik03188872015-02-02 18:39:33 -080051 GlopBuilder.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080052 GradientCache.cpp \
53 Image.cpp \
54 Interpolator.cpp \
John Reckba6adf62015-02-19 14:36:50 -080055 JankTracker.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080056 Layer.cpp \
57 LayerCache.cpp \
58 LayerRenderer.cpp \
59 Matrix.cpp \
60 OpenGLRenderer.cpp \
61 Patch.cpp \
62 PatchCache.cpp \
63 PathCache.cpp \
64 PathTessellator.cpp \
65 PixelBuffer.cpp \
66 Program.cpp \
67 ProgramCache.cpp \
Chris Craik2507c342015-05-04 14:36:49 -070068 Properties.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080069 RenderBufferCache.cpp \
70 RenderNode.cpp \
71 RenderProperties.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080072 ResourceCache.cpp \
73 ShadowTessellator.cpp \
John Reck849911a2015-01-20 07:51:14 -080074 SkiaCanvas.cpp \
Derek Sollenberger1db141f2014-12-16 08:37:20 -050075 SkiaCanvasProxy.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080076 SkiaShader.cpp \
77 Snapshot.cpp \
78 SpotShadow.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080079 TessellationCache.cpp \
Chris Craik03188872015-02-02 18:39:33 -080080 TextDropShadowCache.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080081 Texture.cpp \
Chris Craik03188872015-02-02 18:39:33 -080082 TextureCache.cpp
John Reck35cf58a2014-12-18 13:14:40 -080083
John Reck35cf58a2014-12-18 13:14:40 -080084intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
85
86LOCAL_C_INCLUDES += \
87 external/skia/src/core
88
John Recka2732a22014-12-18 13:52:33 -080089LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
John Reck35cf58a2014-12-18 13:14:40 -080090LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
91
92ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
93 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
94 LOCAL_SHARED_LIBRARIES += libRS libRScpp
95 LOCAL_C_INCLUDES += \
96 $(intermediates) \
97 frameworks/rs/cpp \
98 frameworks/rs \
99
100endif
101
102ifndef HWUI_COMPILE_SYMBOLS
103 LOCAL_CFLAGS += -fvisibility=hidden
104endif
105
106ifdef HWUI_COMPILE_FOR_PERF
107 # TODO: Non-arm?
108 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
109endif
110
John Reck041b9852015-02-25 14:32:41 -0800111ifeq (true, $(HWUI_NULL_GPU))
112 LOCAL_SRC_FILES += \
113 tests/nullegl.cpp \
114 tests/nullgles.cpp
115
116 LOCAL_CFLAGS += -DHWUI_NULL_GPU
117endif
118
John Reck35cf58a2014-12-18 13:14:40 -0800119# Defaults for ATRACE_TAG and LOG_TAG for libhwui
120LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
121
Chris Craik2ae07332015-01-21 14:22:39 -0800122LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter -Wunreachable-code