Android.mk revision 710f46d9d6a5bf9ea1c1833384caf61e1934124f
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 \
99f5dab3fc228fa11c32b483e6101ec086895a32bRomain Guy		font/CacheTexture.cpp \
109f5dab3fc228fa11c32b483e6101ec086895a32bRomain Guy		font/Font.cpp \
11163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		FontRenderer.cpp \
12b45c0c9774bd19a9dbe77d149abae4e124b08bf6Romain Guy		GammaFontRenderer.cpp \
13dd78ccacff83f0714ad90be98b58ad85f5d08c66Chet Haase		Caches.cpp \
149c1e23baf5bfbebd1aebbd6d9a18c225325567ceChet Haase		DisplayListLogBuffer.cpp \
1503750a067e818ca7fbd0f590e2ff6a8fded21e6cRomain Guy		DisplayListRenderer.cpp \
16211efea7376371ee755edd2ad03e83ef6eea464eRomain Guy		Dither.cpp \
1703750a067e818ca7fbd0f590e2ff6a8fded21e6cRomain Guy		FboCache.cpp \
18163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		GradientCache.cpp \
19d15ebf25c595b855f6978d0600218e3ea5f31e92Chet Haase		Layer.cpp \
20163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		LayerCache.cpp \
216c319ca1275c8db892c39b48fc54864c949f9171Romain Guy		LayerRenderer.cpp \
22163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Matrix.cpp \
23163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		OpenGLRenderer.cpp \
24710f46d9d6a5bf9ea1c1833384caf61e1934124fChris Craik		PathRenderer.cpp \
25163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Patch.cpp \
26163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		PatchCache.cpp \
27163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		PathCache.cpp \
28163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Program.cpp \
29163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		ProgramCache.cpp \
305c13d89c1332fcc499379b9064b891187b75ca32Chet Haase		ResourceCache.cpp \
3101d58e43ede5ca98cbebdd166f9b0c545032c01bRomain Guy		ShapeCache.cpp \
32163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		SkiaColorFilter.cpp \
33163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		SkiaShader.cpp \
34ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy		Snapshot.cpp \
350baaac5e9adf3ee280ae1239e2e58754a9d2b099Romain Guy		Stencil.cpp \
361e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextureCache.cpp \
371e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextDropShadowCache.cpp
38710f46d9d6a5bf9ea1c1833384caf61e1934124fChris Craik
39163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_C_INCLUDES += \
40163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(JNI_H_INCLUDE) \
41163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(LOCAL_PATH)/../../include/utils \
42163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/core \
43163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/effects \
44163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/images \
45163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/src/ports \
46163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/utils
4785bf02fc16784d935fb9eebfa9cb20fe46ff7951Romain Guy
489c4b79af221b53f602f946faa9ff317a596a0c39Romain Guy	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DGL_GLEXT_PROTOTYPES
49163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_CLASS := SHARED_LIBRARIES
505b3b35296e8b2c8d3f07d32bb645d5414db41a1dRomain Guy	LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia libui
51163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE := libhwui
52163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_TAGS := optional
538a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
548a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	ifndef HWUI_COMPILE_SYMBOLS
558a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy		LOCAL_CFLAGS += -fvisibility=hidden
568a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	endif
578a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
588a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	ifdef HWUI_COMPILE_FOR_PERF
598a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy		LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
608a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	endif
618a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
62163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	include $(BUILD_SHARED_LIBRARY)
63e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain Guy
64163935113919a184122b8b3bd672ef08c8df65dcRomain Guy    include $(call all-makefiles-under,$(LOCAL_PATH))
65163935113919a184122b8b3bd672ef08c8df65dcRomain Guyendif
66