Android.mk revision 04fc583c3dd3144bc6b718fcac4b3e1afdfdb067
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)
7564acf7c9bff822f608cda0d5df0a64a9f9aaefdChris Craik	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 \
1355bfb4e728fe1db619af5d2c287f4abe711b3343ztenghui		AmbientShadow.cpp \
143b748a44c6bd2ea05fe16839caf73dbe50bd7ae9Romain Guy		AssetAtlas.cpp \
15163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		FontRenderer.cpp \
16b45c0c9774bd19a9dbe77d149abae4e124b08bf6Romain Guy		GammaFontRenderer.cpp \
17dd78ccacff83f0714ad90be98b58ad85f5d08c66Chet Haase		Caches.cpp \
180776a6069365bdea83855db154fa2d37f9d1d808Chris Craik		DisplayList.cpp \
19c3566d06421c8acc0aafb18f7e307e5725ce87e1Chris Craik		DeferredDisplayList.cpp \
2004fc583c3dd3144bc6b718fcac4b3e1afdfdb067John Reck		DeferredLayerUpdater.cpp \
219c1e23baf5bfbebd1aebbd6d9a18c225325567ceChet Haase		DisplayListLogBuffer.cpp \
2203750a067e818ca7fbd0f590e2ff6a8fded21e6cRomain Guy		DisplayListRenderer.cpp \
23211efea7376371ee755edd2ad03e83ef6eea464eRomain Guy		Dither.cpp \
243bbacf27c0be1bae4e4483577fc89ae3113abe5dRomain Guy		Extensions.cpp \
2503750a067e818ca7fbd0f590e2ff6a8fded21e6cRomain Guy		FboCache.cpp \
26163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		GradientCache.cpp \
271212c9dafe932f70956651338568c5e1fdf21bcfRomain Guy		Image.cpp \
28d15ebf25c595b855f6978d0600218e3ea5f31e92Chet Haase		Layer.cpp \
29163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		LayerCache.cpp \
306c319ca1275c8db892c39b48fc54864c949f9171Romain Guy		LayerRenderer.cpp \
31163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Matrix.cpp \
32163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		OpenGLRenderer.cpp \
33163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Patch.cpp \
34163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		PatchCache.cpp \
35163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		PathCache.cpp \
3665cd612face362d054a85d0f7e5881c59cd523beChris Craik		PathTessellator.cpp \
37cf51a4199835e9604aa4c8b3854306f8fbabbf33Romain Guy		PixelBuffer.cpp \
38163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Program.cpp \
39163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		ProgramCache.cpp \
408d4aeb7111afac0c3c7e56d4ad5d92f9cfce2ffdRomain Guy		RenderBufferCache.cpp \
415c13d89c1332fcc499379b9064b891187b75ca32Chet Haase		ResourceCache.cpp \
4255bfb4e728fe1db619af5d2c287f4abe711b3343ztenghui		ShadowTessellator.cpp \
43163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		SkiaShader.cpp \
44ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy		Snapshot.cpp \
457b4516e7ea552ad08d6e7277d311ef11bd8f12e8ztenghui		SpotShadow.cpp \
4614e513058ed4168c94e015638d16f5f87fd8063aChris Craik		StatefulBaseRenderer.cpp \
470baaac5e9adf3ee280ae1239e2e58754a9d2b099Romain Guy		Stencil.cpp \
488aa195d7081b889f3a7b1f426cbd8556377aae5eRomain Guy		Texture.cpp \
491e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextureCache.cpp \
501e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextDropShadowCache.cpp
51710f46d9d6a5bf9ea1c1833384caf61e1934124fChris Craik
52cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck	# RenderThread stuff
53cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck	LOCAL_SRC_FILES += \
5423b797ab5151eb2474f3bdd679f2f07bfd723042John Reck		renderthread/CanvasContext.cpp \
554f02bf4eef6af47f35c70c4dda5b7b9523d89ca0John Reck		renderthread/RenderProxy.cpp \
56cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck		renderthread/RenderTask.cpp \
57cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck		renderthread/RenderThread.cpp
58cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck
59f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik	intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
60f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik
61163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_C_INCLUDES += \
62163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(JNI_H_INCLUDE) \
63163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(LOCAL_PATH)/../../include/utils \
64163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/core \
65163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/effects \
66163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/include/images \
67ca79cf69d09efa0c327e9b1237d86a119aea5da7Derek Sollenberger		external/skia/src/core \
68163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		external/skia/src/ports \
69e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill		external/skia/include/utils
7085bf02fc16784d935fb9eebfa9cb20fe46ff7951Romain Guy
713b748a44c6bd2ea05fe16839caf73dbe50bd7ae9Romain Guy	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
72e63f7c622a2086aefa80983c6f41b74fb166bb42Chris Craik	LOCAL_CFLAGS += -Wno-unused-parameter
73163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_CLASS := SHARED_LIBRARIES
7404fc583c3dd3144bc6b718fcac4b3e1afdfdb067John Reck	LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
75163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE := libhwui
76163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_TAGS := optional
778a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
7809d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy	ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
7909d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy		LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
80250b1cfc831fd2a271c09cab547efcc5e3d5f828Tim Murray		LOCAL_SHARED_LIBRARIES += libRS libRScpp libstlport
8109d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy		LOCAL_C_INCLUDES += \
8209d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy			$(intermediates) \
8309d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy			frameworks/rs/cpp \
84250b1cfc831fd2a271c09cab547efcc5e3d5f828Tim Murray			frameworks/rs \
85250b1cfc831fd2a271c09cab547efcc5e3d5f828Tim Murray			external/stlport/stlport \
86250b1cfc831fd2a271c09cab547efcc5e3d5f828Tim Murray			bionic/ \
87250b1cfc831fd2a271c09cab547efcc5e3d5f828Tim Murray			bionic/libstdc++/include
8809d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy	endif
89e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill
908a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	ifndef HWUI_COMPILE_SYMBOLS
918a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy		LOCAL_CFLAGS += -fvisibility=hidden
928a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	endif
938a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
948a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	ifdef HWUI_COMPILE_FOR_PERF
958a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy		LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
968a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	endif
978a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
98163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	include $(BUILD_SHARED_LIBRARY)
99e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain Guy
100f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik	include $(call all-makefiles-under,$(LOCAL_PATH))
101163935113919a184122b8b3bd672ef08c8df65dcRomain Guyendif
102