Android.mk revision e4267ea4f20740c37c01bfb6aefcf61fddc4566a
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4# Only build libhwui when USE_OPENGL_RENDERER is
5# defined in the current device/board configuration
6ifeq ($(USE_OPENGL_RENDERER),true)
7	LOCAL_SRC_FILES := \
8		utils/Blur.cpp \
9		utils/GLUtils.cpp \
10		utils/SortedListImpl.cpp \
11		thread/TaskManager.cpp \
12		font/CacheTexture.cpp \
13		font/Font.cpp \
14		AmbientShadow.cpp \
15		Animator.cpp \
16		AssetAtlas.cpp \
17		DamageAccumulator.cpp \
18		FontRenderer.cpp \
19		GammaFontRenderer.cpp \
20		Caches.cpp \
21		DisplayList.cpp \
22		DeferredDisplayList.cpp \
23		DeferredLayerUpdater.cpp \
24		DisplayListLogBuffer.cpp \
25		DisplayListRenderer.cpp \
26		Dither.cpp \
27		DrawProfiler.cpp \
28		Extensions.cpp \
29		FboCache.cpp \
30		GradientCache.cpp \
31		Image.cpp \
32		Interpolator.cpp \
33		Layer.cpp \
34		LayerCache.cpp \
35		LayerRenderer.cpp \
36		Matrix.cpp \
37		OpenGLRenderer.cpp \
38		Patch.cpp \
39		PatchCache.cpp \
40		PathCache.cpp \
41		PathTessellator.cpp \
42		PixelBuffer.cpp \
43		Program.cpp \
44		ProgramCache.cpp \
45		RenderBufferCache.cpp \
46		RenderNode.cpp \
47		RenderProperties.cpp \
48		ResourceCache.cpp \
49		ShadowTessellator.cpp \
50		SkiaShader.cpp \
51		Snapshot.cpp \
52		SpotShadow.cpp \
53		StatefulBaseRenderer.cpp \
54		Stencil.cpp \
55		Texture.cpp \
56		TextureCache.cpp \
57		TextDropShadowCache.cpp
58
59# RenderThread stuff
60	LOCAL_SRC_FILES += \
61		renderthread/CanvasContext.cpp \
62		renderthread/DrawFrameTask.cpp \
63		renderthread/RenderProxy.cpp \
64		renderthread/RenderTask.cpp \
65		renderthread/RenderThread.cpp \
66		renderthread/TimeLord.cpp
67
68	intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
69
70	LOCAL_C_INCLUDES += \
71		$(JNI_H_INCLUDE) \
72		$(LOCAL_PATH)/../../include/utils \
73		external/skia/src/core
74
75	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES
76	LOCAL_CFLAGS += -Wno-unused-parameter
77	LOCAL_MODULE_CLASS := SHARED_LIBRARIES
78	LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui
79	LOCAL_MODULE := libhwui
80	LOCAL_MODULE_TAGS := optional
81
82	include external/stlport/libstlport.mk
83
84	ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
85		LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT
86		LOCAL_SHARED_LIBRARIES += libRS libRScpp
87		LOCAL_C_INCLUDES += \
88			$(intermediates) \
89			frameworks/rs/cpp \
90			frameworks/rs
91	endif
92
93	ifndef HWUI_COMPILE_SYMBOLS
94		LOCAL_CFLAGS += -fvisibility=hidden
95	endif
96
97	ifdef HWUI_COMPILE_FOR_PERF
98		LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
99	endif
100
101	include $(BUILD_SHARED_LIBRARY)
102
103	include $(call all-makefiles-under,$(LOCAL_PATH))
104endif
105