Android.mk revision 113e0824d6bddf4376240681f9cf6a2deded9498
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 \
41113e0824d6bddf4376240681f9cf6a2deded9498John Reck		RenderNode.cpp \
42acb6f07623b7df3d4179f70ae03ade574616ffa6John Reck		RenderProperties.cpp \
435c13d89c1332fcc499379b9064b891187b75ca32Chet Haase		ResourceCache.cpp \
4455bfb4e728fe1db619af5d2c287f4abe711b3343ztenghui		ShadowTessellator.cpp \
45163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		SkiaShader.cpp \
46ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy		Snapshot.cpp \
477b4516e7ea552ad08d6e7277d311ef11bd8f12e8ztenghui		SpotShadow.cpp \
4814e513058ed4168c94e015638d16f5f87fd8063aChris Craik		StatefulBaseRenderer.cpp \
490baaac5e9adf3ee280ae1239e2e58754a9d2b099Romain Guy		Stencil.cpp \
508aa195d7081b889f3a7b1f426cbd8556377aae5eRomain Guy		Texture.cpp \
511e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextureCache.cpp \
521e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextDropShadowCache.cpp
53710f46d9d6a5bf9ea1c1833384caf61e1934124fChris Craik
54cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck	# RenderThread stuff
55cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck	LOCAL_SRC_FILES += \
5623b797ab5151eb2474f3bdd679f2f07bfd723042John Reck		renderthread/CanvasContext.cpp \
574f02bf4eef6af47f35c70c4dda5b7b9523d89ca0John Reck		renderthread/RenderProxy.cpp \
58cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck		renderthread/RenderTask.cpp \
59cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck		renderthread/RenderThread.cpp
60cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck
61f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik	intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
62f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik
63163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_C_INCLUDES += \
64163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(JNI_H_INCLUDE) \
65163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(LOCAL_PATH)/../../include/utils \
66950fe8f8d4d654e645fa7205ca275b5a03feb214Derek Sollenberger		external/skia/src/core
6785bf02fc16784d935fb9eebfa9cb20fe46ff7951Romain Guy
683b748a44c6bd2ea05fe16839caf73dbe50bd7ae9Romain Guy	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
69e63f7c622a2086aefa80983c6f41b74fb166bb42Chris Craik	LOCAL_CFLAGS += -Wno-unused-parameter
70163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_CLASS := SHARED_LIBRARIES
7104fc583c3dd3144bc6b718fcac4b3e1afdfdb067John Reck	LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
72163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE := libhwui
73163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_TAGS := optional
748a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
7509d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy	ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
7609d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy		LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
77250b1cfc831fd2a271c09cab547efcc5e3d5f828Tim Murray		LOCAL_SHARED_LIBRARIES += libRS libRScpp libstlport
7809d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy		LOCAL_C_INCLUDES += \
7909d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy			$(intermediates) \
8009d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy			frameworks/rs/cpp \
81250b1cfc831fd2a271c09cab547efcc5e3d5f828Tim Murray			frameworks/rs \
82250b1cfc831fd2a271c09cab547efcc5e3d5f828Tim Murray			external/stlport/stlport \
83250b1cfc831fd2a271c09cab547efcc5e3d5f828Tim Murray			bionic/ \
84250b1cfc831fd2a271c09cab547efcc5e3d5f828Tim Murray			bionic/libstdc++/include
8509d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy	endif
86e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill
878a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	ifndef HWUI_COMPILE_SYMBOLS
888a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy		LOCAL_CFLAGS += -fvisibility=hidden
898a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	endif
908a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
918a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	ifdef HWUI_COMPILE_FOR_PERF
928a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy		LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
938a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	endif
948a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
95163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	include $(BUILD_SHARED_LIBRARY)
96e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain Guy
97f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik	include $(call all-makefiles-under,$(LOCAL_PATH))
98163935113919a184122b8b3bd672ef08c8df65dcRomain Guyendif
99