blob: f4a0161b2e1f173e1159cfc3361f3943e18f4f36 [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 Guy8550c4c2010-10-08 15:49:53 -07008 utils/SortedListImpl.cpp \
Romain Guy16393512010-08-08 00:14:31 -07009 FontRenderer.cpp \
Romain Guyb45c0c92010-08-26 20:35:23 -070010 GammaFontRenderer.cpp \
Chet Haasedd78cca2010-10-22 18:59:26 -070011 Caches.cpp \
Romain Guy03750a02010-10-18 14:06:08 -070012 DisplayListRenderer.cpp \
13 FboCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070014 GradientCache.cpp \
15 LayerCache.cpp \
Romain Guy6c319ca2011-01-11 14:29:25 -080016 LayerRenderer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070017 Matrix.cpp \
18 OpenGLRenderer.cpp \
19 Patch.cpp \
20 PatchCache.cpp \
21 PathCache.cpp \
22 Program.cpp \
23 ProgramCache.cpp \
Chet Haase5c13d892010-10-08 08:37:55 -070024 ResourceCache.cpp \
Romain Guy01d58e42011-01-19 21:54:02 -080025 ShapeCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070026 SkiaColorFilter.cpp \
27 SkiaShader.cpp \
Romain Guy1e45aae2010-08-13 19:39:53 -070028 TextureCache.cpp \
29 TextDropShadowCache.cpp
Romain Guy16393512010-08-08 00:14:31 -070030
31 LOCAL_C_INCLUDES += \
32 $(JNI_H_INCLUDE) \
33 $(LOCAL_PATH)/../../include/utils \
34 external/skia/include/core \
35 external/skia/include/effects \
36 external/skia/include/images \
37 external/skia/src/ports \
38 external/skia/include/utils
Romain Guy85bf02f2010-06-22 13:11:24 -070039
Romain Guy16393512010-08-08 00:14:31 -070040 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER
41 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
Romain Guy5b3b3522010-10-27 18:57:51 -070042 LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia libui
Romain Guy16393512010-08-08 00:14:31 -070043 LOCAL_MODULE := libhwui
44 LOCAL_MODULE_TAGS := optional
45 LOCAL_PRELINK_MODULE := false
46
47 include $(BUILD_SHARED_LIBRARY)
Romain Guye4d01122010-06-16 18:44:05 -070048
Romain Guy16393512010-08-08 00:14:31 -070049 include $(call all-makefiles-under,$(LOCAL_PATH))
50endif