blob: 43af70293134d122c06514dfccf9c271fcc17bbc [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 Guy4aa90572010-09-26 18:40:37 -07008 DisplayListRenderer.cpp \
Romain Guye2d345e2010-09-24 18:39:22 -07009 FboCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070010 FontRenderer.cpp \
Romain Guyb45c0c92010-08-26 20:35:23 -070011 GammaFontRenderer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070012 GradientCache.cpp \
13 LayerCache.cpp \
14 Matrix.cpp \
Romain Guye2d345e2010-09-24 18:39:22 -070015 OpenGLDebugRenderer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070016 OpenGLRenderer.cpp \
17 Patch.cpp \
18 PatchCache.cpp \
19 PathCache.cpp \
20 Program.cpp \
21 ProgramCache.cpp \
22 SkiaColorFilter.cpp \
23 SkiaShader.cpp \
Romain Guy1e45aae2010-08-13 19:39:53 -070024 TextureCache.cpp \
25 TextDropShadowCache.cpp
Romain Guy16393512010-08-08 00:14:31 -070026
27 LOCAL_C_INCLUDES += \
28 $(JNI_H_INCLUDE) \
29 $(LOCAL_PATH)/../../include/utils \
30 external/skia/include/core \
31 external/skia/include/effects \
32 external/skia/include/images \
33 external/skia/src/ports \
34 external/skia/include/utils
Romain Guy85bf02f2010-06-22 13:11:24 -070035
Romain Guy16393512010-08-08 00:14:31 -070036 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER
37 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
38 LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia
39 LOCAL_MODULE := libhwui
40 LOCAL_MODULE_TAGS := optional
41 LOCAL_PRELINK_MODULE := false
42
43 include $(BUILD_SHARED_LIBRARY)
Romain Guye4d01122010-06-16 18:44:05 -070044
Romain Guy16393512010-08-08 00:14:31 -070045 include $(call all-makefiles-under,$(LOCAL_PATH))
46endif