blob: 7b2bba138df5693b03f6459186594fbe1bcb35eb [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 -08004
5LOCAL_SRC_FILES := \
Chris Craik65fe5ee2015-01-26 18:06:29 -08006 font/CacheTexture.cpp \
7 font/Font.cpp \
Chris Craik44eb2c02015-01-29 09:45:09 -08008 renderstate/Blend.cpp \
Chris Craik96a5c4c2015-01-27 15:46:35 -08009 renderstate/MeshState.cpp \
10 renderstate/PixelBufferState.cpp \
Chris Craik65fe5ee2015-01-26 18:06:29 -080011 renderstate/RenderState.cpp \
12 renderstate/Scissor.cpp \
Chris Craik96a5c4c2015-01-27 15:46:35 -080013 renderstate/Stencil.cpp \
Chris Craik44eb2c02015-01-29 09:45:09 -080014 renderstate/TextureState.cpp \
Chris Craik65fe5ee2015-01-26 18:06:29 -080015 renderthread/CanvasContext.cpp \
16 renderthread/DrawFrameTask.cpp \
17 renderthread/EglManager.cpp \
18 renderthread/RenderProxy.cpp \
19 renderthread/RenderTask.cpp \
20 renderthread/RenderThread.cpp \
21 renderthread/TimeLord.cpp \
Season Li13d1b4a2015-07-29 17:16:19 -070022 renderthread/DirtyHistory.cpp \
Chris Craik65fe5ee2015-01-26 18:06:29 -080023 thread/TaskManager.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080024 utils/Blur.cpp \
25 utils/GLUtils.cpp \
John Reck1ed72372015-04-23 15:45:54 -070026 utils/LinearAllocator.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080027 AmbientShadow.cpp \
28 AnimationContext.cpp \
29 Animator.cpp \
30 AnimatorManager.cpp \
31 AssetAtlas.cpp \
32 Caches.cpp \
33 CanvasState.cpp \
Rob Tsuk487a92c2015-01-06 13:22:54 -080034 ClipArea.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080035 DamageAccumulator.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080036 DeferredDisplayList.cpp \
37 DeferredLayerUpdater.cpp \
Chris Craik03188872015-02-02 18:39:33 -080038 DisplayList.cpp \
Chris Craikdb663fe2015-04-20 13:34:45 -070039 DisplayListCanvas.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080040 Dither.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080041 Extensions.cpp \
42 FboCache.cpp \
43 FontRenderer.cpp \
John Reckba6adf62015-02-19 14:36:50 -080044 FrameInfo.cpp \
John Reck4c9e59d2015-05-12 07:17:50 -070045 FrameInfoVisualizer.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080046 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 \
John Reckba6adf62015-02-19 14:36:50 -080051 JankTracker.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080052 Layer.cpp \
53 LayerCache.cpp \
54 LayerRenderer.cpp \
55 Matrix.cpp \
56 OpenGLRenderer.cpp \
57 Patch.cpp \
58 PatchCache.cpp \
59 PathCache.cpp \
60 PathTessellator.cpp \
61 PixelBuffer.cpp \
62 Program.cpp \
63 ProgramCache.cpp \
Chris Craik2507c342015-05-04 14:36:49 -070064 Properties.cpp \
John Reck35cf58a2014-12-18 13:14:40 -080065 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\"
John Recke6178202015-06-08 11:01:24 -0700117LOCAL_CFLAGS += -Wall -Wno-unused-parameter -Wunreachable-code
John Reckc36df952015-07-29 10:09:36 -0700118LOCAL_CFLAGS += -ffast-math -O3 -Werror