blob: 3e590a94307466c119f3b31be4a076f000296c62 [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 += \
John Reck8b59a522014-11-22 00:10:02 +00009 -Wno-unused-parameter \
10 -Wno-deprecated-declarations \
Chih-Hung Hsiehd3448e42014-09-15 14:28:52 -070011 -Wno-gnu-static-float-init
12
Romain Guy16393512010-08-08 00:14:31 -070013# Only build libhwui when USE_OPENGL_RENDERER is
14# defined in the current device/board configuration
15ifeq ($(USE_OPENGL_RENDERER),true)
Andreas Gampe1e196742014-11-10 15:23:43 -080016 LOCAL_SRC_FILES := \
17 utils/Blur.cpp \
18 utils/GLUtils.cpp \
19 utils/SortedListImpl.cpp \
20 thread/TaskManager.cpp \
21 font/CacheTexture.cpp \
22 font/Font.cpp \
23 AmbientShadow.cpp \
24 AnimationContext.cpp \
25 Animator.cpp \
26 AnimatorManager.cpp \
27 AssetAtlas.cpp \
28 DamageAccumulator.cpp \
29 FontRenderer.cpp \
30 GammaFontRenderer.cpp \
31 Caches.cpp \
32 DisplayList.cpp \
33 DeferredDisplayList.cpp \
34 DeferredLayerUpdater.cpp \
35 DisplayListLogBuffer.cpp \
36 DisplayListRenderer.cpp \
37 Dither.cpp \
38 DrawProfiler.cpp \
39 Extensions.cpp \
40 FboCache.cpp \
41 GradientCache.cpp \
42 Image.cpp \
43 Interpolator.cpp \
44 Layer.cpp \
45 LayerCache.cpp \
46 LayerRenderer.cpp \
47 Matrix.cpp \
48 OpenGLRenderer.cpp \
49 Patch.cpp \
50 PatchCache.cpp \
51 PathCache.cpp \
52 PathTessellator.cpp \
53 PixelBuffer.cpp \
54 Program.cpp \
55 ProgramCache.cpp \
56 RenderBufferCache.cpp \
57 RenderNode.cpp \
58 RenderProperties.cpp \
59 RenderState.cpp \
60 ResourceCache.cpp \
61 ShadowTessellator.cpp \
62 SkiaShader.cpp \
63 Snapshot.cpp \
64 SpotShadow.cpp \
65 StatefulBaseRenderer.cpp \
66 Stencil.cpp \
67 TessellationCache.cpp \
68 Texture.cpp \
69 TextureCache.cpp \
70 TextDropShadowCache.cpp
Chris Craik710f46d2012-09-17 17:25:49 -070071
Chris Craike4aa95e2014-05-08 13:57:05 -070072# RenderThread stuff
Andreas Gampe1e196742014-11-10 15:23:43 -080073 LOCAL_SRC_FILES += \
74 renderthread/CanvasContext.cpp \
75 renderthread/DrawFrameTask.cpp \
76 renderthread/EglManager.cpp \
77 renderthread/RenderProxy.cpp \
78 renderthread/RenderTask.cpp \
79 renderthread/RenderThread.cpp \
80 renderthread/TimeLord.cpp
John Reckcec24ae2013-11-05 13:27:50 -080081
Andreas Gampe1e196742014-11-10 15:23:43 -080082 intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
Chris Craikf2d8ccc2013-02-13 16:14:17 -080083
Andreas Gampe1e196742014-11-10 15:23:43 -080084 LOCAL_C_INCLUDES += \
85 external/skia/src/core
Romain Guy85bf02f2010-06-22 13:11:24 -070086
Andreas Gampe1e196742014-11-10 15:23:43 -080087 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
88 LOCAL_CFLAGS += -Wno-unused-parameter
89 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
90 LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
91 LOCAL_MODULE := libhwui
92 LOCAL_MODULE_TAGS := optional
Romain Guy8a4ac612012-07-17 17:32:48 -070093
Andreas Gampe1e196742014-11-10 15:23:43 -080094 ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
95 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
96 LOCAL_SHARED_LIBRARIES += libRS libRScpp
97 LOCAL_C_INCLUDES += \
98 $(intermediates) \
99 frameworks/rs/cpp \
100 frameworks/rs \
Dan Albert88ba3392014-09-11 16:20:16 -0700101
Andreas Gampe1e196742014-11-10 15:23:43 -0800102 endif
Dan Morrille4d9a012013-03-28 18:10:43 -0700103
Andreas Gampe1e196742014-11-10 15:23:43 -0800104 ifndef HWUI_COMPILE_SYMBOLS
105 LOCAL_CFLAGS += -fvisibility=hidden
106 endif
Romain Guy8a4ac612012-07-17 17:32:48 -0700107
Andreas Gampe1e196742014-11-10 15:23:43 -0800108 ifdef HWUI_COMPILE_FOR_PERF
109 # TODO: Non-arm?
110 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
111 endif
Romain Guy8a4ac612012-07-17 17:32:48 -0700112
Andreas Gampe1e196742014-11-10 15:23:43 -0800113 # Defaults for ATRACE_TAG and LOG_TAG for libhwui
114 LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
John Recka7c2ea22014-08-08 13:21:00 -0700115
Andreas Gampe1e196742014-11-10 15:23:43 -0800116 LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
Romain Guye4d01122010-06-16 18:44:05 -0700117
Andreas Gampe1e196742014-11-10 15:23:43 -0800118 include $(BUILD_SHARED_LIBRARY)
119
120 include $(call all-makefiles-under,$(LOCAL_PATH))
Romain Guy16393512010-08-08 00:14:31 -0700121endif