blob: 3433d0e7f82c3a12b97436dd6ed760530f0ec5df [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)
7 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 \
Romain Guy3b748a42013-04-17 18:54:38 -070013 AssetAtlas.cpp \
Romain Guy16393512010-08-08 00:14:31 -070014 FontRenderer.cpp \
Romain Guyb45c0c92010-08-26 20:35:23 -070015 GammaFontRenderer.cpp \
Chet Haasedd78cca2010-10-22 18:59:26 -070016 Caches.cpp \
Chris Craik0776a602013-02-14 15:36:01 -080017 DisplayList.cpp \
Chris Craikc3566d02013-02-04 16:16:33 -080018 DeferredDisplayList.cpp \
Chet Haase9c1e23b2011-03-24 10:51:31 -070019 DisplayListLogBuffer.cpp \
Romain Guy03750a02010-10-18 14:06:08 -070020 DisplayListRenderer.cpp \
Romain Guy211efea2012-07-31 21:16:07 -070021 Dither.cpp \
Romain Guy3bbacf22013-02-06 16:51:04 -080022 Extensions.cpp \
Romain Guy03750a02010-10-18 14:06:08 -070023 FboCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070024 GradientCache.cpp \
Chet Haased15ebf22012-09-05 11:40:29 -070025 Layer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070026 LayerCache.cpp \
Romain Guy6c319ca2011-01-11 14:29:25 -080027 LayerRenderer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070028 Matrix.cpp \
29 OpenGLRenderer.cpp \
30 Patch.cpp \
31 PatchCache.cpp \
32 PathCache.cpp \
Chris Craik65cd6122012-12-10 17:56:27 -080033 PathTessellator.cpp \
Romain Guycf51a412013-04-08 19:40:31 -070034 PixelBuffer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070035 Program.cpp \
36 ProgramCache.cpp \
Romain Guy8d4aeb72013-02-12 16:08:55 -080037 RenderBufferCache.cpp \
Chet Haase5c13d892010-10-08 08:37:55 -070038 ResourceCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070039 SkiaColorFilter.cpp \
40 SkiaShader.cpp \
Romain Guyada4d532012-02-02 17:31:16 -080041 Snapshot.cpp \
Romain Guy0baaac52012-08-31 20:31:01 -070042 Stencil.cpp \
Romain Guy1e45aae2010-08-13 19:39:53 -070043 TextureCache.cpp \
44 TextDropShadowCache.cpp
Chris Craik710f46d2012-09-17 17:25:49 -070045
Chris Craikf2d8ccc2013-02-13 16:14:17 -080046 intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
47
Romain Guy16393512010-08-08 00:14:31 -070048 LOCAL_C_INCLUDES += \
49 $(JNI_H_INCLUDE) \
50 $(LOCAL_PATH)/../../include/utils \
51 external/skia/include/core \
52 external/skia/include/effects \
53 external/skia/include/images \
Derek Sollenbergerca79cf62012-08-14 16:44:52 -040054 external/skia/src/core \
Romain Guy16393512010-08-08 00:14:31 -070055 external/skia/src/ports \
Dan Morrille4d9a012013-03-28 18:10:43 -070056 external/skia/include/utils
Romain Guy85bf02f2010-06-22 13:11:24 -070057
Romain Guy3b748a42013-04-17 18:54:38 -070058 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
Romain Guy16393512010-08-08 00:14:31 -070059 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
Romain Guy3b748a42013-04-17 18:54:38 -070060 LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui
Romain Guy16393512010-08-08 00:14:31 -070061 LOCAL_MODULE := libhwui
62 LOCAL_MODULE_TAGS := optional
Romain Guy8a4ac612012-07-17 17:32:48 -070063
Romain Guy09d36362013-04-16 11:30:05 -070064 ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
65 LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
66 LOCAL_SHARED_LIBRARIES += libRS libRScpp
67 LOCAL_C_INCLUDES += \
68 $(intermediates) \
69 frameworks/rs/cpp \
70 frameworks/rs
71 endif
Dan Morrille4d9a012013-03-28 18:10:43 -070072
Romain Guy8a4ac612012-07-17 17:32:48 -070073 ifndef HWUI_COMPILE_SYMBOLS
74 LOCAL_CFLAGS += -fvisibility=hidden
75 endif
76
77 ifdef HWUI_COMPILE_FOR_PERF
78 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
79 endif
80
Romain Guy16393512010-08-08 00:14:31 -070081 include $(BUILD_SHARED_LIBRARY)
Romain Guye4d01122010-06-16 18:44:05 -070082
Chris Craikf2d8ccc2013-02-13 16:14:17 -080083 include $(call all-makefiles-under,$(LOCAL_PATH))
Romain Guy16393512010-08-08 00:14:31 -070084endif