Android.mk revision e4d9a01bfc7451afff1ed399a5801c7aa2af2831
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:= \
86e2004089305cf2cd958b52b234459a49a4e5c83Romain Guy		utils/Blur.cpp \
98550c4c7b5952b7a4e1e0ede95c9492d03099a13Romain Guy		utils/SortedListImpl.cpp \
105dc7fa709646799a5207a5d217f70aa02bf4a3aaRomain Guy		thread/TaskManager.cpp \
119f5dab3fc228fa11c32b483e6101ec086895a32bRomain Guy		font/CacheTexture.cpp \
129f5dab3fc228fa11c32b483e6101ec086895a32bRomain Guy		font/Font.cpp \
13163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		FontRenderer.cpp \
14b45c0c9774bd19a9dbe77d149abae4e124b08bf6Romain Guy		GammaFontRenderer.cpp \
15dd78ccacff83f0714ad90be98b58ad85f5d08c66Chet Haase		Caches.cpp \
160776a6069365bdea83855db154fa2d37f9d1d808Chris Craik		DisplayList.cpp \
17c3566d06421c8acc0aafb18f7e307e5725ce87e1Chris Craik		DeferredDisplayList.cpp \
189c1e23baf5bfbebd1aebbd6d9a18c225325567ceChet Haase		DisplayListLogBuffer.cpp \
1903750a067e818ca7fbd0f590e2ff6a8fded21e6cRomain Guy		DisplayListRenderer.cpp \
20211efea7376371ee755edd2ad03e83ef6eea464eRomain Guy		Dither.cpp \
213bbacf27c0be1bae4e4483577fc89ae3113abe5dRomain Guy		Extensions.cpp \
2203750a067e818ca7fbd0f590e2ff6a8fded21e6cRomain Guy		FboCache.cpp \
23163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		GradientCache.cpp \
24d15ebf25c595b855f6978d0600218e3ea5f31e92Chet Haase		Layer.cpp \
25163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		LayerCache.cpp \
266c319ca1275c8db892c39b48fc54864c949f9171Romain Guy		LayerRenderer.cpp \
27163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Matrix.cpp \
28163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		OpenGLRenderer.cpp \
29163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Patch.cpp \
30163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		PatchCache.cpp \
31163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		PathCache.cpp \
3265cd612face362d054a85d0f7e5881c59cd523beChris Craik		PathTessellator.cpp \
33163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Program.cpp \
34163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		ProgramCache.cpp \
358d4aeb7111afac0c3c7e56d4ad5d92f9cfce2ffdRomain Guy		RenderBufferCache.cpp \
365c13d89c1332fcc499379b9064b891187b75ca32Chet Haase		ResourceCache.cpp \
37163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		SkiaColorFilter.cpp \
38163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		SkiaShader.cpp \
39ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy		Snapshot.cpp \
400baaac5e9adf3ee280ae1239e2e58754a9d2b099Romain Guy		Stencil.cpp \
411e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextureCache.cpp \
421e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextDropShadowCache.cpp
43710f46d9d6a5bf9ea1c1833384caf61e1934124fChris Craik
44f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik	intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
45f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik
46163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_C_INCLUDES += \
47163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(JNI_H_INCLUDE) \
48163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(LOCAL_PATH)/../../include/utils \
49163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/core \
50163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/effects \
51163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/images \
52ca79cf69d09efa0c327e9b1237d86a119aea5da7Derek Sollenberger		external/skia/src/core \
53163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/src/ports \
54e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill		external/skia/include/utils
5585bf02fc16784d935fb9eebfa9cb20fe46ff7951Romain Guy
569c4b79af221b53f602f946faa9ff317a596a0c39Romain Guy	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DGL_GLEXT_PROTOTYPES
57163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_CLASS := SHARED_LIBRARIES
58e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill	LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia libui
59163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE := libhwui
60163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_TAGS := optional
618a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
62e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill        ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
63e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill            LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
64e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill            LOCAL_SHARED_LIBRARIES += libRS libRScpp
65e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill            LOCAL_C_INCLUDES += \
66e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill		$(intermediates) \
67e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill		frameworks/rs/cpp \
68e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill		frameworks/rs
69e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill        endif
70e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill
718a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	ifndef HWUI_COMPILE_SYMBOLS
728a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy		LOCAL_CFLAGS += -fvisibility=hidden
738a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	endif
748a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
758a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	ifdef HWUI_COMPILE_FOR_PERF
768a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy		LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
778a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	endif
788a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
79163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	include $(BUILD_SHARED_LIBRARY)
80e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain Guy
81f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik	include $(call all-makefiles-under,$(LOCAL_PATH))
82163935113919a184122b8b3bd672ef08c8df65dcRomain Guyendif
83