blob: 495ad195d130b4c7bdf54e5c8ec507217b4f2594 [file] [log] [blame]
Romain Guye4d01122010-06-16 18:44:05 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
Romain Guy16393512010-08-08 00:14:31 -07004# Only build libhwui when USE_OPENGL_RENDERER is
5# defined in the current device/board configuration
6ifeq ($(USE_OPENGL_RENDERER),true)
Chris Craik564acf72014-01-02 16:46:18 -08007 LOCAL_SRC_FILES := \
Romain Guy6e200402013-03-08 11:28:22 -08008 utils/Blur.cpp \
Romain Guy8550c4c2010-10-08 15:49:53 -07009 utils/SortedListImpl.cpp \
Romain Guy5dc7fa72013-03-11 20:48:31 -070010 thread/TaskManager.cpp \
Romain Guy9f5dab32012-09-04 12:55:44 -070011 font/CacheTexture.cpp \
12 font/Font.cpp \
ztenghui55bfb4e2013-12-03 10:38:55 -080013 AmbientShadow.cpp \
Romain Guy3b748a42013-04-17 18:54:38 -070014 AssetAtlas.cpp \
Romain Guy16393512010-08-08 00:14:31 -070015 FontRenderer.cpp \
Romain Guyb45c0c92010-08-26 20:35:23 -070016 GammaFontRenderer.cpp \
Chet Haasedd78cca2010-10-22 18:59:26 -070017 Caches.cpp \
Chris Craik0776a602013-02-14 15:36:01 -080018 DisplayList.cpp \
Chris Craikc3566d02013-02-04 16:16:33 -080019 DeferredDisplayList.cpp \
John Reck04fc5832014-02-05 16:38:25 -080020 DeferredLayerUpdater.cpp \
Chet Haase9c1e23b2011-03-24 10:51:31 -070021 DisplayListLogBuffer.cpp \
Romain Guy03750a02010-10-18 14:06:08 -070022 DisplayListRenderer.cpp \
Romain Guy211efea2012-07-31 21:16:07 -070023 Dither.cpp \
Romain Guy3bbacf22013-02-06 16:51:04 -080024 Extensions.cpp \
Romain Guy03750a02010-10-18 14:06:08 -070025 FboCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070026 GradientCache.cpp \
Romain Guy1212c9d2013-05-02 17:50:23 -070027 Image.cpp \
Chet Haased15ebf22012-09-05 11:40:29 -070028 Layer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070029 LayerCache.cpp \
Romain Guy6c319ca2011-01-11 14:29:25 -080030 LayerRenderer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070031 Matrix.cpp \
32 OpenGLRenderer.cpp \
33 Patch.cpp \
34 PatchCache.cpp \
35 PathCache.cpp \
Chris Craik65cd6122012-12-10 17:56:27 -080036 PathTessellator.cpp \
Romain Guycf51a412013-04-08 19:40:31 -070037 PixelBuffer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070038 Program.cpp \
39 ProgramCache.cpp \
Romain Guy8d4aeb72013-02-12 16:08:55 -080040 RenderBufferCache.cpp \
Chet Haase5c13d892010-10-08 08:37:55 -070041 ResourceCache.cpp \
ztenghui55bfb4e2013-12-03 10:38:55 -080042 ShadowTessellator.cpp \
Romain Guy16393512010-08-08 00:14:31 -070043 SkiaShader.cpp \
Romain Guyada4d532012-02-02 17:31:16 -080044 Snapshot.cpp \
ztenghui7b4516e2014-01-07 10:42:55 -080045 SpotShadow.cpp \
Chris Craik14e51302013-12-30 15:32:54 -080046 StatefulBaseRenderer.cpp \
Romain Guy0baaac52012-08-31 20:31:01 -070047 Stencil.cpp \
Romain Guy8aa195d2013-06-04 18:00:09 -070048 Texture.cpp \
Romain Guy1e45aae2010-08-13 19:39:53 -070049 TextureCache.cpp \
50 TextDropShadowCache.cpp
Chris Craik710f46d2012-09-17 17:25:49 -070051
John Reckcec24ae2013-11-05 13:27:50 -080052 # RenderThread stuff
53 LOCAL_SRC_FILES += \
John Reck23b797a2014-01-03 18:08:34 -080054 renderthread/CanvasContext.cpp \
John Reck4f02bf42014-01-03 18:09:17 -080055 renderthread/RenderProxy.cpp \
John Reckcec24ae2013-11-05 13:27:50 -080056 renderthread/RenderTask.cpp \
57 renderthread/RenderThread.cpp
58
Chris Craikf2d8ccc2013-02-13 16:14:17 -080059 intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
60
Romain Guy16393512010-08-08 00:14:31 -070061 LOCAL_C_INCLUDES += \
62 $(JNI_H_INCLUDE) \
63 $(LOCAL_PATH)/../../include/utils \
64 external/skia/include/core \
65 external/skia/include/effects \
66 external/skia/include/images \
Derek Sollenbergerca79cf62012-08-14 16:44:52 -040067 external/skia/src/core \
Romain Guy16393512010-08-08 00:14:31 -070068 external/skia/src/ports \
Dan Morrille4d9a012013-03-28 18:10:43 -070069 external/skia/include/utils
Romain Guy85bf02f2010-06-22 13:11:24 -070070
Romain Guy3b748a42013-04-17 18:54:38 -070071 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
Chris Craike63f7c622013-10-17 10:30:55 -070072 LOCAL_CFLAGS += -Wno-unused-parameter
Romain Guy16393512010-08-08 00:14:31 -070073 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
John Reck04fc5832014-02-05 16:38:25 -080074 LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
Romain Guy16393512010-08-08 00:14:31 -070075 LOCAL_MODULE := libhwui
76 LOCAL_MODULE_TAGS := optional
Romain Guy8a4ac612012-07-17 17:32:48 -070077
Romain Guy09d36362013-04-16 11:30:05 -070078 ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
79 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
Tim Murray250b1cf2013-08-01 14:49:22 -070080 LOCAL_SHARED_LIBRARIES += libRS libRScpp libstlport
Romain Guy09d36362013-04-16 11:30:05 -070081 LOCAL_C_INCLUDES += \
82 $(intermediates) \
83 frameworks/rs/cpp \
Tim Murray250b1cf2013-08-01 14:49:22 -070084 frameworks/rs \
85 external/stlport/stlport \
86 bionic/ \
87 bionic/libstdc++/include
Romain Guy09d36362013-04-16 11:30:05 -070088 endif
Dan Morrille4d9a012013-03-28 18:10:43 -070089
Romain Guy8a4ac612012-07-17 17:32:48 -070090 ifndef HWUI_COMPILE_SYMBOLS
91 LOCAL_CFLAGS += -fvisibility=hidden
92 endif
93
94 ifdef HWUI_COMPILE_FOR_PERF
95 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
96 endif
97
Romain Guy16393512010-08-08 00:14:31 -070098 include $(BUILD_SHARED_LIBRARY)
Romain Guye4d01122010-06-16 18:44:05 -070099
Chris Craikf2d8ccc2013-02-13 16:14:17 -0800100 include $(call all-makefiles-under,$(LOCAL_PATH))
Romain Guy16393512010-08-08 00:14:31 -0700101endif