Android.mk revision 6c319ca1275c8db892c39b48fc54864c949f9171
1e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain GuyLOCAL_PATH:= $(call my-dir)
2e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain Guyinclude $(CLEAR_VARS)
3e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain Guy
4163935113919a184122b8b3bd672ef08c8df65dcRomain Guy# Only build libhwui when USE_OPENGL_RENDERER is
5163935113919a184122b8b3bd672ef08c8df65dcRomain Guy# defined in the current device/board configuration
6163935113919a184122b8b3bd672ef08c8df65dcRomain Guyifeq ($(USE_OPENGL_RENDERER),true)
7163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_SRC_FILES:= \
88550c4c7b5952b7a4e1e0ede95c9492d03099a13Romain Guy		utils/SortedListImpl.cpp \
9163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		FontRenderer.cpp \
10b45c0c9774bd19a9dbe77d149abae4e124b08bf6Romain Guy		GammaFontRenderer.cpp \
11dd78ccacff83f0714ad90be98b58ad85f5d08c66Chet Haase		Caches.cpp \
1203750a067e818ca7fbd0f590e2ff6a8fded21e6cRomain Guy		DisplayListRenderer.cpp \
1303750a067e818ca7fbd0f590e2ff6a8fded21e6cRomain Guy		FboCache.cpp \
14163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		GradientCache.cpp \
15163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		LayerCache.cpp \
166c319ca1275c8db892c39b48fc54864c949f9171Romain Guy		LayerRenderer.cpp \
17163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Matrix.cpp \
18e2d345ea67e2960b37bfdc0fc8626d1bfa747404Romain Guy		OpenGLDebugRenderer.cpp \
19163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		OpenGLRenderer.cpp \
20163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Patch.cpp \
21163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		PatchCache.cpp \
22163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		PathCache.cpp \
23163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Program.cpp \
24163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		ProgramCache.cpp \
255c13d89c1332fcc499379b9064b891187b75ca32Chet Haase		ResourceCache.cpp \
26163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		SkiaColorFilter.cpp \
27163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		SkiaShader.cpp \
281e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextureCache.cpp \
291e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextDropShadowCache.cpp
30163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	
31163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_C_INCLUDES += \
32163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(JNI_H_INCLUDE) \
33163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(LOCAL_PATH)/../../include/utils \
34163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/core \
35163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/effects \
36163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/images \
37163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/src/ports \
38163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/utils
3985bf02fc16784d935fb9eebfa9cb20fe46ff7951Romain Guy
40163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER
41163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_CLASS := SHARED_LIBRARIES
425b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy	LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia libui
43163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE := libhwui
44163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_TAGS := optional
45163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_PRELINK_MODULE := false
46163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	
47163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	include $(BUILD_SHARED_LIBRARY)
48e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain Guy
49163935113919a184122b8b3bd672ef08c8df65dcRomain Guy    include $(call all-makefiles-under,$(LOCAL_PATH))
50163935113919a184122b8b3bd672ef08c8df65dcRomain Guyendif
51