blob: d0b9d82552fa490d556262d142b20a02065209f5 [file] [log] [blame]
Romain Guye4d01122010-06-16 18:44:05 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
Dan Albert88ba3392014-09-11 16:20:16 -07003LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Romain Guye4d01122010-06-16 18:44:05 -07004
Chih-Hung Hsiehd3448e42014-09-15 14:28:52 -07005# Too many unused parameters in external/skia/include and this directory.
6# getConfig in external/skia/include/core/SkBitmap.h is deprecated.
7# Allow Gnu extension: in-class initializer of static 'const float' member.
8LOCAL_CLANG_CFLAGS += \
Chih-Hung Hsiehd3448e42014-09-15 14:28:52 -07009 -Wno-gnu-static-float-init
10
Romain Guy16393512010-08-08 00:14:31 -070011# Only build libhwui when USE_OPENGL_RENDERER is
12# defined in the current device/board configuration
13ifeq ($(USE_OPENGL_RENDERER),true)
Andreas Gampe1e196742014-11-10 15:23:43 -080014 LOCAL_SRC_FILES := \
15 utils/Blur.cpp \
16 utils/GLUtils.cpp \
17 utils/SortedListImpl.cpp \
18 thread/TaskManager.cpp \
19 font/CacheTexture.cpp \
20 font/Font.cpp \
21 AmbientShadow.cpp \
22 AnimationContext.cpp \
23 Animator.cpp \
24 AnimatorManager.cpp \
25 AssetAtlas.cpp \
26 DamageAccumulator.cpp \
27 FontRenderer.cpp \
28 GammaFontRenderer.cpp \
29 Caches.cpp \
30 DisplayList.cpp \
31 DeferredDisplayList.cpp \
32 DeferredLayerUpdater.cpp \
33 DisplayListLogBuffer.cpp \
34 DisplayListRenderer.cpp \
35 Dither.cpp \
36 DrawProfiler.cpp \
37 Extensions.cpp \
38 FboCache.cpp \
39 GradientCache.cpp \
40 Image.cpp \
41 Interpolator.cpp \
42 Layer.cpp \
43 LayerCache.cpp \
44 LayerRenderer.cpp \
45 Matrix.cpp \
46 OpenGLRenderer.cpp \
47 Patch.cpp \
48 PatchCache.cpp \
49 PathCache.cpp \
50 PathTessellator.cpp \
51 PixelBuffer.cpp \
52 Program.cpp \
53 ProgramCache.cpp \
54 RenderBufferCache.cpp \
55 RenderNode.cpp \
56 RenderProperties.cpp \
57 RenderState.cpp \
58 ResourceCache.cpp \
59 ShadowTessellator.cpp \
60 SkiaShader.cpp \
61 Snapshot.cpp \
62 SpotShadow.cpp \
63 StatefulBaseRenderer.cpp \
64 Stencil.cpp \
65 TessellationCache.cpp \
66 Texture.cpp \
67 TextureCache.cpp \
68 TextDropShadowCache.cpp
Chris Craik710f46d2012-09-17 17:25:49 -070069
Chris Craike4aa95e2014-05-08 13:57:05 -070070# RenderThread stuff
Andreas Gampe1e196742014-11-10 15:23:43 -080071 LOCAL_SRC_FILES += \
72 renderthread/CanvasContext.cpp \
73 renderthread/DrawFrameTask.cpp \
74 renderthread/EglManager.cpp \
75 renderthread/RenderProxy.cpp \
76 renderthread/RenderTask.cpp \
77 renderthread/RenderThread.cpp \
78 renderthread/TimeLord.cpp
John Reckcec24ae2013-11-05 13:27:50 -080079
Andreas Gampe1e196742014-11-10 15:23:43 -080080 intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
Chris Craikf2d8ccc2013-02-13 16:14:17 -080081
Andreas Gampe1e196742014-11-10 15:23:43 -080082 LOCAL_C_INCLUDES += \
83 external/skia/src/core
Romain Guy85bf02f2010-06-22 13:11:24 -070084
Andreas Gampe1e196742014-11-10 15:23:43 -080085 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
86 LOCAL_CFLAGS += -Wno-unused-parameter
87 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
88 LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
89 LOCAL_MODULE := libhwui
90 LOCAL_MODULE_TAGS := optional
Romain Guy8a4ac612012-07-17 17:32:48 -070091
Andreas Gampe1e196742014-11-10 15:23:43 -080092 ifneq (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 \
Dan Albert88ba3392014-09-11 16:20:16 -070099
Andreas Gampe1e196742014-11-10 15:23:43 -0800100 endif
Dan Morrille4d9a012013-03-28 18:10:43 -0700101
Andreas Gampe1e196742014-11-10 15:23:43 -0800102 ifndef HWUI_COMPILE_SYMBOLS
103 LOCAL_CFLAGS += -fvisibility=hidden
104 endif
Romain Guy8a4ac612012-07-17 17:32:48 -0700105
Andreas Gampe1e196742014-11-10 15:23:43 -0800106 ifdef HWUI_COMPILE_FOR_PERF
107 # TODO: Non-arm?
108 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
109 endif
Romain Guy8a4ac612012-07-17 17:32:48 -0700110
Andreas Gampe1e196742014-11-10 15:23:43 -0800111 # Defaults for ATRACE_TAG and LOG_TAG for libhwui
112 LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
John Recka7c2ea22014-08-08 13:21:00 -0700113
Andreas Gampe1e196742014-11-10 15:23:43 -0800114 LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
Romain Guye4d01122010-06-16 18:44:05 -0700115
Andreas Gampe1e196742014-11-10 15:23:43 -0800116 include $(BUILD_SHARED_LIBRARY)
117
118 include $(call all-makefiles-under,$(LOCAL_PATH))
Romain Guy16393512010-08-08 00:14:31 -0700119endif