Android.mk revision e4267ea4f20740c37c01bfb6aefcf61fddc4566a
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 \
9e4aa95e3627226bcb0d8cc3e42dca6e4df8f421cChris Craik		utils/GLUtils.cpp \
108550c4c7b5952b7a4e1e0ede95c9492d03099a13Romain Guy		utils/SortedListImpl.cpp \
115dc7fa709646799a5207a5d217f70aa02bf4a3aaRomain Guy		thread/TaskManager.cpp \
129f5dab3fc228fa11c32b483e6101ec086895a32bRomain Guy		font/CacheTexture.cpp \
139f5dab3fc228fa11c32b483e6101ec086895a32bRomain Guy		font/Font.cpp \
1455bfb4e728fe1db619af5d2c287f4abe711b3343ztenghui		AmbientShadow.cpp \
15e45b1fd03b524d2b57cc6c222d89076a31a08beaJohn Reck		Animator.cpp \
163b748a44c6bd2ea05fe16839caf73dbe50bd7ae9Romain Guy		AssetAtlas.cpp \
17e4267ea4f20740c37c01bfb6aefcf61fddc4566aJohn Reck		DamageAccumulator.cpp \
18163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		FontRenderer.cpp \
19b45c0c9774bd19a9dbe77d149abae4e124b08bf6Romain Guy		GammaFontRenderer.cpp \
20dd78ccacff83f0714ad90be98b58ad85f5d08c66Chet Haase		Caches.cpp \
210776a6069365bdea83855db154fa2d37f9d1d808Chris Craik		DisplayList.cpp \
22c3566d06421c8acc0aafb18f7e307e5725ce87e1Chris Craik		DeferredDisplayList.cpp \
2304fc583c3dd3144bc6b718fcac4b3e1afdfdb067John Reck		DeferredLayerUpdater.cpp \
249c1e23baf5bfbebd1aebbd6d9a18c225325567ceChet Haase		DisplayListLogBuffer.cpp \
2503750a067e818ca7fbd0f590e2ff6a8fded21e6cRomain Guy		DisplayListRenderer.cpp \
26211efea7376371ee755edd2ad03e83ef6eea464eRomain Guy		Dither.cpp \
27fe5e7b7346a54537b980796ceeca66bfdbd05561John Reck		DrawProfiler.cpp \
283bbacf27c0be1bae4e4483577fc89ae3113abe5dRomain Guy		Extensions.cpp \
2903750a067e818ca7fbd0f590e2ff6a8fded21e6cRomain Guy		FboCache.cpp \
30163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		GradientCache.cpp \
311212c9dafe932f70956651338568c5e1fdf21bcfRomain Guy		Image.cpp \
32e45b1fd03b524d2b57cc6c222d89076a31a08beaJohn Reck		Interpolator.cpp \
33d15ebf25c595b855f6978d0600218e3ea5f31e92Chet Haase		Layer.cpp \
34163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		LayerCache.cpp \
356c319ca1275c8db892c39b48fc54864c949f9171Romain Guy		LayerRenderer.cpp \
36163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Matrix.cpp \
37163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		OpenGLRenderer.cpp \
38163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Patch.cpp \
39163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		PatchCache.cpp \
40163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		PathCache.cpp \
4165cd612face362d054a85d0f7e5881c59cd523beChris Craik		PathTessellator.cpp \
42cf51a4199835e9604aa4c8b3854306f8fbabbf33Romain Guy		PixelBuffer.cpp \
43163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		Program.cpp \
44163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		ProgramCache.cpp \
458d4aeb7111afac0c3c7e56d4ad5d92f9cfce2ffdRomain Guy		RenderBufferCache.cpp \
46113e0824d6bddf4376240681f9cf6a2deded9498John Reck		RenderNode.cpp \
47acb6f07623b7df3d4179f70ae03ade574616ffa6John Reck		RenderProperties.cpp \
485c13d89c1332fcc499379b9064b891187b75ca32Chet Haase		ResourceCache.cpp \
4955bfb4e728fe1db619af5d2c287f4abe711b3343ztenghui		ShadowTessellator.cpp \
50163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		SkiaShader.cpp \
51ada4d53d50dc869b8278573ad640dc44118d3bcfRomain Guy		Snapshot.cpp \
527b4516e7ea552ad08d6e7277d311ef11bd8f12e8ztenghui		SpotShadow.cpp \
5314e513058ed4168c94e015638d16f5f87fd8063aChris Craik		StatefulBaseRenderer.cpp \
540baaac5e9adf3ee280ae1239e2e58754a9d2b099Romain Guy		Stencil.cpp \
558aa195d7081b889f3a7b1f426cbd8556377aae5eRomain Guy		Texture.cpp \
561e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextureCache.cpp \
571e45aae5de003657e5d18f74d34998f5de5db5b7Romain Guy		TextDropShadowCache.cpp
58710f46d9d6a5bf9ea1c1833384caf61e1934124fChris Craik
59e4aa95e3627226bcb0d8cc3e42dca6e4df8f421cChris Craik# RenderThread stuff
60cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck	LOCAL_SRC_FILES += \
6123b797ab5151eb2474f3bdd679f2f07bfd723042John Reck		renderthread/CanvasContext.cpp \
62668f0e38ef0277d55d3118af37e17b8c435df85cJohn Reck		renderthread/DrawFrameTask.cpp \
634f02bf4eef6af47f35c70c4dda5b7b9523d89ca0John Reck		renderthread/RenderProxy.cpp \
64cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck		renderthread/RenderTask.cpp \
6518f16e6fba74eda173e1e7c869e6e2e2acc073ffJohn Reck		renderthread/RenderThread.cpp \
6618f16e6fba74eda173e1e7c869e6e2e2acc073ffJohn Reck		renderthread/TimeLord.cpp
67cec24ae16e9a0a7c3075f1a8d9149bb7fb3813fcJohn Reck
68f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik	intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
69f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik
70163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_C_INCLUDES += \
71163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(JNI_H_INCLUDE) \
72163935113919a184122b8b3bd672ef08c8df65dcRomain Guy		$(LOCAL_PATH)/../../include/utils \
73950fe8f8d4d654e645fa7205ca275b5a03feb214Derek Sollenberger		external/skia/src/core
7485bf02fc16784d935fb9eebfa9cb20fe46ff7951Romain Guy
753b748a44c6bd2ea05fe16839caf73dbe50bd7ae9Romain Guy	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
76e63f7c622a2086aefa80983c6f41b74fb166bb42Chris Craik	LOCAL_CFLAGS += -Wno-unused-parameter
77163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_CLASS := SHARED_LIBRARIES
7804fc583c3dd3144bc6b718fcac4b3e1afdfdb067John Reck	LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
79163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE := libhwui
80163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	LOCAL_MODULE_TAGS := optional
818a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
82ce444ca4006cfe0e2151d858da732fc413a716bdJohn Reck	include external/stlport/libstlport.mk
83ce444ca4006cfe0e2151d858da732fc413a716bdJohn Reck
8409d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy	ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
8509d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy		LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
86ce444ca4006cfe0e2151d858da732fc413a716bdJohn Reck		LOCAL_SHARED_LIBRARIES += libRS libRScpp
8709d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy		LOCAL_C_INCLUDES += \
8809d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy			$(intermediates) \
8909d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy			frameworks/rs/cpp \
90ce444ca4006cfe0e2151d858da732fc413a716bdJohn Reck			frameworks/rs
9109d3636485eb1601c5beaf0d8682bb3027d2271dRomain Guy	endif
92e4d9a01bfc7451afff1ed399a5801c7aa2af2831Dan Morrill
938a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	ifndef HWUI_COMPILE_SYMBOLS
948a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy		LOCAL_CFLAGS += -fvisibility=hidden
958a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	endif
968a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
978a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	ifdef HWUI_COMPILE_FOR_PERF
988a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy		LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
998a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy	endif
1008a4ac610e1aaf04931ac1af54b146a7fc8e66114Romain Guy
101163935113919a184122b8b3bd672ef08c8df65dcRomain Guy	include $(BUILD_SHARED_LIBRARY)
102e4d011201cea40d46cb2b2eef401db8fddc5c9c6Romain Guy
103f2d8ccc15d7272b3416f73605c1f31d1d346bd40Chris Craik	include $(call all-makefiles-under,$(LOCAL_PATH))
104163935113919a184122b8b3bd672ef08c8df65dcRomain Guyendif
105