blob: 5bf0ccc08d389bd89510f0928301dbb2d4ff010b [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 \
Romain Guy03750a02010-10-18 14:06:08 -070011 DisplayListRenderer.cpp \
12 FboCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070013 GradientCache.cpp \
14 LayerCache.cpp \
15 Matrix.cpp \
Romain Guye2d345e2010-09-24 18:39:22 -070016 OpenGLDebugRenderer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070017 OpenGLRenderer.cpp \
18 Patch.cpp \
19 PatchCache.cpp \
20 PathCache.cpp \
21 Program.cpp \
22 ProgramCache.cpp \
23 SkiaColorFilter.cpp \
24 SkiaShader.cpp \
Romain Guy1e45aae2010-08-13 19:39:53 -070025 TextureCache.cpp \
26 TextDropShadowCache.cpp
Romain Guy16393512010-08-08 00:14:31 -070027
28 LOCAL_C_INCLUDES += \
29 $(JNI_H_INCLUDE) \
30 $(LOCAL_PATH)/../../include/utils \
31 external/skia/include/core \
32 external/skia/include/effects \
33 external/skia/include/images \
34 external/skia/src/ports \
35 external/skia/include/utils
Romain Guy85bf02f2010-06-22 13:11:24 -070036
Romain Guy16393512010-08-08 00:14:31 -070037 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER
38 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
39 LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia
40 LOCAL_MODULE := libhwui
41 LOCAL_MODULE_TAGS := optional
42 LOCAL_PRELINK_MODULE := false
43
44 include $(BUILD_SHARED_LIBRARY)
Romain Guye4d01122010-06-16 18:44:05 -070045
Romain Guy16393512010-08-08 00:14:31 -070046 include $(call all-makefiles-under,$(LOCAL_PATH))
47endif