blob: 5ec3983cf72837a970ceb7cd0782f8ea36ef63bb [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 \
Chet Haase9c1e23b2011-03-24 10:51:31 -070012 DisplayListLogBuffer.cpp \
Romain Guy03750a02010-10-18 14:06:08 -070013 DisplayListRenderer.cpp \
14 FboCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070015 GradientCache.cpp \
16 LayerCache.cpp \
Romain Guy6c319ca2011-01-11 14:29:25 -080017 LayerRenderer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070018 Matrix.cpp \
19 OpenGLRenderer.cpp \
20 Patch.cpp \
21 PatchCache.cpp \
22 PathCache.cpp \
23 Program.cpp \
24 ProgramCache.cpp \
Chet Haase5c13d892010-10-08 08:37:55 -070025 ResourceCache.cpp \
Romain Guy01d58e42011-01-19 21:54:02 -080026 ShapeCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070027 SkiaColorFilter.cpp \
28 SkiaShader.cpp \
Romain Guyada4d532012-02-02 17:31:16 -080029 Snapshot.cpp \
Romain Guy1e45aae2010-08-13 19:39:53 -070030 TextureCache.cpp \
31 TextDropShadowCache.cpp
Romain Guy16393512010-08-08 00:14:31 -070032
33 LOCAL_C_INCLUDES += \
34 $(JNI_H_INCLUDE) \
35 $(LOCAL_PATH)/../../include/utils \
36 external/skia/include/core \
37 external/skia/include/effects \
38 external/skia/include/images \
39 external/skia/src/ports \
40 external/skia/include/utils
Romain Guy85bf02f2010-06-22 13:11:24 -070041
Romain Guy9c4b79a2011-11-10 19:23:58 -080042 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DGL_GLEXT_PROTOTYPES
Romain Guy79537452011-10-12 13:48:51 -070043 LOCAL_CFLAGS += -fvisibility=hidden
Romain Guy16393512010-08-08 00:14:31 -070044 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
Romain Guy5b3b3522010-10-27 18:57:51 -070045 LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia libui
Romain Guy16393512010-08-08 00:14:31 -070046 LOCAL_MODULE := libhwui
47 LOCAL_MODULE_TAGS := optional
Romain Guy16393512010-08-08 00:14:31 -070048
49 include $(BUILD_SHARED_LIBRARY)
Romain Guye4d01122010-06-16 18:44:05 -070050
Romain Guy16393512010-08-08 00:14:31 -070051 include $(call all-makefiles-under,$(LOCAL_PATH))
52endif