Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 4 | # Only build libhwui when USE_OPENGL_RENDERER is |
| 5 | # defined in the current device/board configuration |
| 6 | ifeq ($(USE_OPENGL_RENDERER),true) |
| 7 | LOCAL_SRC_FILES:= \ |
Romain Guy | 8550c4c | 2010-10-08 15:49:53 -0700 | [diff] [blame] | 8 | utils/SortedListImpl.cpp \ |
Romain Guy | 9f5dab3 | 2012-09-04 12:55:44 -0700 | [diff] [blame] | 9 | font/CacheTexture.cpp \ |
| 10 | font/Font.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 11 | FontRenderer.cpp \ |
Romain Guy | b45c0c9 | 2010-08-26 20:35:23 -0700 | [diff] [blame] | 12 | GammaFontRenderer.cpp \ |
Chet Haase | dd78cca | 2010-10-22 18:59:26 -0700 | [diff] [blame] | 13 | Caches.cpp \ |
Chris Craik | 0776a60 | 2013-02-14 15:36:01 -0800 | [diff] [blame] | 14 | DisplayList.cpp \ |
Chris Craik | c3566d0 | 2013-02-04 16:16:33 -0800 | [diff] [blame] | 15 | DeferredDisplayList.cpp \ |
Chet Haase | 9c1e23b | 2011-03-24 10:51:31 -0700 | [diff] [blame] | 16 | DisplayListLogBuffer.cpp \ |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 17 | DisplayListRenderer.cpp \ |
Romain Guy | 211efea | 2012-07-31 21:16:07 -0700 | [diff] [blame] | 18 | Dither.cpp \ |
Romain Guy | 3bbacf2 | 2013-02-06 16:51:04 -0800 | [diff] [blame] | 19 | Extensions.cpp \ |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 20 | FboCache.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 21 | GradientCache.cpp \ |
Chet Haase | d15ebf2 | 2012-09-05 11:40:29 -0700 | [diff] [blame] | 22 | Layer.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 23 | LayerCache.cpp \ |
Romain Guy | 6c319ca | 2011-01-11 14:29:25 -0800 | [diff] [blame] | 24 | LayerRenderer.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 25 | Matrix.cpp \ |
| 26 | OpenGLRenderer.cpp \ |
| 27 | Patch.cpp \ |
| 28 | PatchCache.cpp \ |
| 29 | PathCache.cpp \ |
Chris Craik | 65cd612 | 2012-12-10 17:56:27 -0800 | [diff] [blame] | 30 | PathTessellator.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 31 | Program.cpp \ |
| 32 | ProgramCache.cpp \ |
Romain Guy | 8d4aeb7 | 2013-02-12 16:08:55 -0800 | [diff] [blame] | 33 | RenderBufferCache.cpp \ |
Chet Haase | 5c13d89 | 2010-10-08 08:37:55 -0700 | [diff] [blame] | 34 | ResourceCache.cpp \ |
Romain Guy | 01d58e4 | 2011-01-19 21:54:02 -0800 | [diff] [blame] | 35 | ShapeCache.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 36 | SkiaColorFilter.cpp \ |
| 37 | SkiaShader.cpp \ |
Romain Guy | ada4d53 | 2012-02-02 17:31:16 -0800 | [diff] [blame] | 38 | Snapshot.cpp \ |
Romain Guy | 0baaac5 | 2012-08-31 20:31:01 -0700 | [diff] [blame] | 39 | Stencil.cpp \ |
Romain Guy | 1e45aae | 2010-08-13 19:39:53 -0700 | [diff] [blame] | 40 | TextureCache.cpp \ |
| 41 | TextDropShadowCache.cpp |
Chris Craik | 710f46d | 2012-09-17 17:25:49 -0700 | [diff] [blame] | 42 | |
Chris Craik | f2d8ccc | 2013-02-13 16:14:17 -0800 | [diff] [blame] | 43 | intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,) |
| 44 | |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 45 | 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 Sollenberger | ca79cf6 | 2012-08-14 16:44:52 -0400 | [diff] [blame] | 51 | external/skia/src/core \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 52 | external/skia/src/ports \ |
Chris Craik | f2d8ccc | 2013-02-13 16:14:17 -0800 | [diff] [blame] | 53 | external/skia/include/utils \ |
| 54 | $(intermediates) \ |
| 55 | frameworks/rs/cpp \ |
| 56 | frameworks/rs |
Romain Guy | 85bf02f | 2010-06-22 13:11:24 -0700 | [diff] [blame] | 57 | |
Romain Guy | 9c4b79a | 2011-11-10 19:23:58 -0800 | [diff] [blame] | 58 | LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DGL_GLEXT_PROTOTYPES |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 59 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
Chris Craik | f2d8ccc | 2013-02-13 16:14:17 -0800 | [diff] [blame] | 60 | LOCAL_SHARED_LIBRARIES := libcutils libutils libGLESv2 libskia libui libRS libRScpp |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 61 | LOCAL_MODULE := libhwui |
| 62 | LOCAL_MODULE_TAGS := optional |
Romain Guy | 8a4ac61 | 2012-07-17 17:32:48 -0700 | [diff] [blame] | 63 | |
| 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 Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 72 | include $(BUILD_SHARED_LIBRARY) |
Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 73 | |
Chris Craik | f2d8ccc | 2013-02-13 16:14:17 -0800 | [diff] [blame] | 74 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 75 | endif |