blob: 33d8063ed565cd39daa7ac9cdc5975b74f6ebd6c [file] [log] [blame]
Romain Guye4d01122010-06-16 18:44:05 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
Romain Guy16393512010-08-08 00:14:31 -07004# 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:= \
Romain Guy8550c4c2010-10-08 15:49:53 -07008 utils/SortedListImpl.cpp \
Romain Guy9f5dab32012-09-04 12:55:44 -07009 font/CacheTexture.cpp \
10 font/Font.cpp \
Romain Guy16393512010-08-08 00:14:31 -070011 FontRenderer.cpp \
Romain Guyb45c0c92010-08-26 20:35:23 -070012 GammaFontRenderer.cpp \
Chet Haasedd78cca2010-10-22 18:59:26 -070013 Caches.cpp \
Chris Craik0776a602013-02-14 15:36:01 -080014 DisplayList.cpp \
Chris Craikc3566d02013-02-04 16:16:33 -080015 DeferredDisplayList.cpp \
Chet Haase9c1e23b2011-03-24 10:51:31 -070016 DisplayListLogBuffer.cpp \
Romain Guy03750a02010-10-18 14:06:08 -070017 DisplayListRenderer.cpp \
Romain Guy211efea2012-07-31 21:16:07 -070018 Dither.cpp \
Romain Guy3bbacf22013-02-06 16:51:04 -080019 Extensions.cpp \
Romain Guy03750a02010-10-18 14:06:08 -070020 FboCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070021 GradientCache.cpp \
Chet Haased15ebf22012-09-05 11:40:29 -070022 Layer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070023 LayerCache.cpp \
Romain Guy6c319ca2011-01-11 14:29:25 -080024 LayerRenderer.cpp \
Romain Guy16393512010-08-08 00:14:31 -070025 Matrix.cpp \
26 OpenGLRenderer.cpp \
27 Patch.cpp \
28 PatchCache.cpp \
29 PathCache.cpp \
Chris Craik65cd6122012-12-10 17:56:27 -080030 PathTessellator.cpp \
Romain Guy16393512010-08-08 00:14:31 -070031 Program.cpp \
32 ProgramCache.cpp \
Romain Guy8d4aeb72013-02-12 16:08:55 -080033 RenderBufferCache.cpp \
Chet Haase5c13d892010-10-08 08:37:55 -070034 ResourceCache.cpp \
Romain Guy01d58e42011-01-19 21:54:02 -080035 ShapeCache.cpp \
Romain Guy16393512010-08-08 00:14:31 -070036 SkiaColorFilter.cpp \
37 SkiaShader.cpp \
Romain Guyada4d532012-02-02 17:31:16 -080038 Snapshot.cpp \
Romain Guy0baaac52012-08-31 20:31:01 -070039 Stencil.cpp \
Romain Guy1e45aae2010-08-13 19:39:53 -070040 TextureCache.cpp \
41 TextDropShadowCache.cpp
Chris Craik710f46d2012-09-17 17:25:49 -070042
Chris Craikf2d8ccc2013-02-13 16:14:17 -080043 intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,)
44
Romain Guy16393512010-08-08 00:14:31 -070045 LOCAL_C_INCLUDES += \
46 $(JNI_H_INCLUDE) \
47 $(LOCAL_PATH)/../../include/utils \
48 external/skia/include/core \
49 external/skia/include/effects \
50 external/skia/include/images \
Derek Sollenbergerca79cf62012-08-14 16:44:52 -040051 external/skia/src/core \
Romain Guy16393512010-08-08 00:14:31 -070052 external/skia/src/ports \
Chris Craikf2d8ccc2013-02-13 16:14:17 -080053 external/skia/include/utils \
54 $(intermediates) \
55 frameworks/rs/cpp \
56 frameworks/rs
Romain Guy85bf02f2010-06-22 13:11:24 -070057
Romain Guy9c4b79a2011-11-10 19:23:58 -080058 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DGL_GLEXT_PROTOTYPES
Romain Guy16393512010-08-08 00:14:31 -070059 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
Chris Craikf2d8ccc2013-02-13 16:14:17 -080060 LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia libui libRS libRScpp
Romain Guy16393512010-08-08 00:14:31 -070061 LOCAL_MODULE := libhwui
62 LOCAL_MODULE_TAGS := optional
Romain Guy8a4ac612012-07-17 17:32:48 -070063
64 ifndef HWUI_COMPILE_SYMBOLS
65 LOCAL_CFLAGS += -fvisibility=hidden
66 endif
67
68 ifdef HWUI_COMPILE_FOR_PERF
69 LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs
70 endif
71
Romain Guy16393512010-08-08 00:14:31 -070072 include $(BUILD_SHARED_LIBRARY)
Romain Guye4d01122010-06-16 18:44:05 -070073
Chris Craikf2d8ccc2013-02-13 16:14:17 -080074 include $(call all-makefiles-under,$(LOCAL_PATH))
Romain Guy16393512010-08-08 00:14:31 -070075endif