blob: 0469508b8ac57e09a7b4ce91b55074b57a901553 [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:= \
8 FontRenderer.cpp \
Romain Guyb45c0c92010-08-26 20:35:23 -07009 GammaFontRenderer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070010 GradientCache.cpp \
11 LayerCache.cpp \
12 Matrix.cpp \
13 OpenGLRenderer.cpp \
14 Patch.cpp \
15 PatchCache.cpp \
16 PathCache.cpp \
17 Program.cpp \
18 ProgramCache.cpp \
19 SkiaColorFilter.cpp \
20 SkiaShader.cpp \
Romain Guy1e45aae2010-08-13 19:39:53 -070021 TextureCache.cpp \
22 TextDropShadowCache.cpp
Romain Guy16393512010-08-08 00:14:31 -070023
24 LOCAL_C_INCLUDES += \
25 $(JNI_H_INCLUDE) \
26 $(LOCAL_PATH)/../../include/utils \
27 external/skia/include/core \
28 external/skia/include/effects \
29 external/skia/include/images \
30 external/skia/src/ports \
31 external/skia/include/utils
Romain Guy85bf02f2010-06-22 13:11:24 -070032
Romain Guy16393512010-08-08 00:14:31 -070033 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER
34 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
35 LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia
36 LOCAL_MODULE := libhwui
37 LOCAL_MODULE_TAGS := optional
38 LOCAL_PRELINK_MODULE := false
39
40 include $(BUILD_SHARED_LIBRARY)
Romain Guye4d01122010-06-16 18:44:05 -070041
Romain Guy16393512010-08-08 00:14:31 -070042 include $(call all-makefiles-under,$(LOCAL_PATH))
43endif