blob: 5b74addb3e89740331150335a45bacc4de0c2e64 [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 += \
9 -Wno-unused-parameter \
10 -Wno-deprecated-declarations \
11 -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)
Chris Craik564acf72014-01-02 16:46:18 -080016 LOCAL_SRC_FILES := \
Romain Guy6e200402013-03-08 11:28:22 -080017 utils/Blur.cpp \
Chris Craike4aa95e2014-05-08 13:57:05 -070018 utils/GLUtils.cpp \
Romain Guy8550c4c2010-10-08 15:49:53 -070019 utils/SortedListImpl.cpp \
Romain Guy5dc7fa72013-03-11 20:48:31 -070020 thread/TaskManager.cpp \
Romain Guy9f5dab32012-09-04 12:55:44 -070021 font/CacheTexture.cpp \
22 font/Font.cpp \
ztenghui55bfb4e2013-12-03 10:38:55 -080023 AmbientShadow.cpp \
John Reck119907c2014-08-14 09:02:01 -070024 AnimationContext.cpp \
John Recke45b1fd2014-04-15 09:50:16 -070025 Animator.cpp \
John Reck68bfe0a2014-06-24 15:34:58 -070026 AnimatorManager.cpp \
Romain Guy3b748a42013-04-17 18:54:38 -070027 AssetAtlas.cpp \
John Recke4267ea2014-06-03 15:53:15 -070028 DamageAccumulator.cpp \
Romain Guy16393512010-08-08 00:14:31 -070029 FontRenderer.cpp \
Romain Guyb45c0c92010-08-26 20:35:23 -070030 GammaFontRenderer.cpp \
Chet Haasedd78cca2010-10-22 18:59:26 -070031 Caches.cpp \
Chris Craik0776a602013-02-14 15:36:01 -080032 DisplayList.cpp \
Chris Craikc3566d02013-02-04 16:16:33 -080033 DeferredDisplayList.cpp \
John Reck04fc5832014-02-05 16:38:25 -080034 DeferredLayerUpdater.cpp \
Chet Haase9c1e23b2011-03-24 10:51:31 -070035 DisplayListLogBuffer.cpp \
Romain Guy03750a02010-10-18 14:06:08 -070036 DisplayListRenderer.cpp \
Romain Guy211efea2012-07-31 21:16:07 -070037 Dither.cpp \
John Reckfe5e7b72014-05-23 17:42:28 -070038 DrawProfiler.cpp \
Romain Guy3bbacf22013-02-06 16:51:04 -080039 Extensions.cpp \
Romain Guy03750a02010-10-18 14:06:08 -070040 FboCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070041 GradientCache.cpp \
Romain Guy1212c9d2013-05-02 17:50:23 -070042 Image.cpp \
John Recke45b1fd2014-04-15 09:50:16 -070043 Interpolator.cpp \
Chet Haased15ebf22012-09-05 11:40:29 -070044 Layer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070045 LayerCache.cpp \
Romain Guy6c319ca2011-01-11 14:29:25 -080046 LayerRenderer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070047 Matrix.cpp \
48 OpenGLRenderer.cpp \
49 Patch.cpp \
50 PatchCache.cpp \
51 PathCache.cpp \
Chris Craik65cd6122012-12-10 17:56:27 -080052 PathTessellator.cpp \
Romain Guycf51a412013-04-08 19:40:31 -070053 PixelBuffer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070054 Program.cpp \
55 ProgramCache.cpp \
Romain Guy8d4aeb72013-02-12 16:08:55 -080056 RenderBufferCache.cpp \
John Reck113e0822014-03-18 09:22:59 -070057 RenderNode.cpp \
John Reckacb6f072014-03-12 16:11:23 -070058 RenderProperties.cpp \
John Reck3b202512014-06-23 13:13:08 -070059 RenderState.cpp \
Chet Haase5c13d892010-10-08 08:37:55 -070060 ResourceCache.cpp \
ztenghui55bfb4e2013-12-03 10:38:55 -080061 ShadowTessellator.cpp \
Romain Guy16393512010-08-08 00:14:31 -070062 SkiaShader.cpp \
Romain Guyada4d532012-02-02 17:31:16 -080063 Snapshot.cpp \
ztenghui7b4516e2014-01-07 10:42:55 -080064 SpotShadow.cpp \
Chris Craik14e51302013-12-30 15:32:54 -080065 StatefulBaseRenderer.cpp \
Romain Guy0baaac52012-08-31 20:31:01 -070066 Stencil.cpp \
Chris Craik05f3d6e2014-06-02 16:27:04 -070067 TessellationCache.cpp \
Romain Guy8aa195d2013-06-04 18:00:09 -070068 Texture.cpp \
Romain Guy1e45aae2010-08-13 19:39:53 -070069 TextureCache.cpp \
70 TextDropShadowCache.cpp
Chris Craik710f46d2012-09-17 17:25:49 -070071
Chris Craike4aa95e2014-05-08 13:57:05 -070072# RenderThread stuff
John Reckcec24ae2013-11-05 13:27:50 -080073 LOCAL_SRC_FILES += \
John Reck23b797a2014-01-03 18:08:34 -080074 renderthread/CanvasContext.cpp \
John Reck668f0e32014-03-26 15:10:40 -070075 renderthread/DrawFrameTask.cpp \
John Reck3b202512014-06-23 13:13:08 -070076 renderthread/EglManager.cpp \
John Reck4f02bf42014-01-03 18:09:17 -080077 renderthread/RenderProxy.cpp \
John Reckcec24ae2013-11-05 13:27:50 -080078 renderthread/RenderTask.cpp \
John Reck18f16e62014-05-02 16:46:41 -070079 renderthread/RenderThread.cpp \
80 renderthread/TimeLord.cpp
John Reckcec24ae2013-11-05 13:27:50 -080081
Chris Craikf2d8ccc2013-02-13 16:14:17 -080082 intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
83
Romain Guy16393512010-08-08 00:14:31 -070084 LOCAL_C_INCLUDES += \
Derek Sollenberger950fe8f2014-02-27 11:14:55 -050085 external/skia/src/core
Romain Guy85bf02f2010-06-22 13:11:24 -070086
Romain Guy3b748a42013-04-17 18:54:38 -070087 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
Chris Craike63f7c622013-10-17 10:30:55 -070088 LOCAL_CFLAGS += -Wno-unused-parameter
Romain Guy16393512010-08-08 00:14:31 -070089 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
John Reck04fc5832014-02-05 16:38:25 -080090 LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
Romain Guy16393512010-08-08 00:14:31 -070091 LOCAL_MODULE := libhwui
92 LOCAL_MODULE_TAGS := optional
Romain Guy8a4ac612012-07-17 17:32:48 -070093
Romain Guy09d36362013-04-16 11:30:05 -070094 ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
95 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
John Reckce444ca2014-06-02 15:12:36 -070096 LOCAL_SHARED_LIBRARIES += libRS libRScpp
Romain Guy09d36362013-04-16 11:30:05 -070097 LOCAL_C_INCLUDES += \
98 $(intermediates) \
99 frameworks/rs/cpp \
Tim Murray250b1cf2013-08-01 14:49:22 -0700100 frameworks/rs \
Dan Albert88ba3392014-09-11 16:20:16 -0700101
Romain Guy09d36362013-04-16 11:30:05 -0700102 endif
Dan Morrille4d9a012013-03-28 18:10:43 -0700103
Romain Guy8a4ac612012-07-17 17:32:48 -0700104 ifndef HWUI_COMPILE_SYMBOLS
105 LOCAL_CFLAGS += -fvisibility=hidden
106 endif
107
108 ifdef HWUI_COMPILE_FOR_PERF
109 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
110 endif
111
John Recka7c2ea22014-08-08 13:21:00 -0700112 # Defaults for ATRACE_TAG and LOG_TAG for libhwui
113 LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\"
114
Dan Albert88ba3392014-09-11 16:20:16 -0700115 include external/stlport/libstlport.mk
Romain Guy16393512010-08-08 00:14:31 -0700116 include $(BUILD_SHARED_LIBRARY)
Romain Guye4d01122010-06-16 18:44:05 -0700117
Chris Craikf2d8ccc2013-02-13 16:14:17 -0800118 include $(call all-makefiles-under,$(LOCAL_PATH))
Romain Guy16393512010-08-08 00:14:31 -0700119endif