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) | ||||
Chris Craik | 564acf7 | 2014-01-02 16:46:18 -0800 | [diff] [blame] | 7 | LOCAL_SRC_FILES := \ |
Romain Guy | 6e20040 | 2013-03-08 11:28:22 -0800 | [diff] [blame] | 8 | utils/Blur.cpp \ |
Chris Craik | e4aa95e | 2014-05-08 13:57:05 -0700 | [diff] [blame] | 9 | utils/GLUtils.cpp \ |
Romain Guy | 8550c4c | 2010-10-08 15:49:53 -0700 | [diff] [blame] | 10 | utils/SortedListImpl.cpp \ |
Romain Guy | 5dc7fa7 | 2013-03-11 20:48:31 -0700 | [diff] [blame] | 11 | thread/TaskManager.cpp \ |
Romain Guy | 9f5dab3 | 2012-09-04 12:55:44 -0700 | [diff] [blame] | 12 | font/CacheTexture.cpp \ |
13 | font/Font.cpp \ | ||||
ztenghui | 55bfb4e | 2013-12-03 10:38:55 -0800 | [diff] [blame] | 14 | AmbientShadow.cpp \ |
John Reck | 119907c | 2014-08-14 09:02:01 -0700 | [diff] [blame] | 15 | AnimationContext.cpp \ |
John Reck | e45b1fd | 2014-04-15 09:50:16 -0700 | [diff] [blame] | 16 | Animator.cpp \ |
John Reck | 68bfe0a | 2014-06-24 15:34:58 -0700 | [diff] [blame] | 17 | AnimatorManager.cpp \ |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 18 | AssetAtlas.cpp \ |
John Reck | e4267ea | 2014-06-03 15:53:15 -0700 | [diff] [blame] | 19 | DamageAccumulator.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 20 | FontRenderer.cpp \ |
Romain Guy | b45c0c9 | 2010-08-26 20:35:23 -0700 | [diff] [blame] | 21 | GammaFontRenderer.cpp \ |
Chet Haase | dd78cca | 2010-10-22 18:59:26 -0700 | [diff] [blame] | 22 | Caches.cpp \ |
Chris Craik | 0776a60 | 2013-02-14 15:36:01 -0800 | [diff] [blame] | 23 | DisplayList.cpp \ |
Chris Craik | c3566d0 | 2013-02-04 16:16:33 -0800 | [diff] [blame] | 24 | DeferredDisplayList.cpp \ |
John Reck | 04fc583 | 2014-02-05 16:38:25 -0800 | [diff] [blame] | 25 | DeferredLayerUpdater.cpp \ |
Chet Haase | 9c1e23b | 2011-03-24 10:51:31 -0700 | [diff] [blame] | 26 | DisplayListLogBuffer.cpp \ |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 27 | DisplayListRenderer.cpp \ |
Romain Guy | 211efea | 2012-07-31 21:16:07 -0700 | [diff] [blame] | 28 | Dither.cpp \ |
John Reck | fe5e7b7 | 2014-05-23 17:42:28 -0700 | [diff] [blame] | 29 | DrawProfiler.cpp \ |
Romain Guy | 3bbacf2 | 2013-02-06 16:51:04 -0800 | [diff] [blame] | 30 | Extensions.cpp \ |
Romain Guy | 03750a0 | 2010-10-18 14:06:08 -0700 | [diff] [blame] | 31 | FboCache.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 32 | GradientCache.cpp \ |
Romain Guy | 1212c9d | 2013-05-02 17:50:23 -0700 | [diff] [blame] | 33 | Image.cpp \ |
John Reck | e45b1fd | 2014-04-15 09:50:16 -0700 | [diff] [blame] | 34 | Interpolator.cpp \ |
Chet Haase | d15ebf2 | 2012-09-05 11:40:29 -0700 | [diff] [blame] | 35 | Layer.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 36 | LayerCache.cpp \ |
Romain Guy | 6c319ca | 2011-01-11 14:29:25 -0800 | [diff] [blame] | 37 | LayerRenderer.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 38 | Matrix.cpp \ |
39 | OpenGLRenderer.cpp \ | ||||
40 | Patch.cpp \ | ||||
41 | PatchCache.cpp \ | ||||
42 | PathCache.cpp \ | ||||
Chris Craik | 65cd612 | 2012-12-10 17:56:27 -0800 | [diff] [blame] | 43 | PathTessellator.cpp \ |
Romain Guy | cf51a41 | 2013-04-08 19:40:31 -0700 | [diff] [blame] | 44 | PixelBuffer.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 45 | Program.cpp \ |
46 | ProgramCache.cpp \ | ||||
Romain Guy | 8d4aeb7 | 2013-02-12 16:08:55 -0800 | [diff] [blame] | 47 | RenderBufferCache.cpp \ |
John Reck | 113e082 | 2014-03-18 09:22:59 -0700 | [diff] [blame] | 48 | RenderNode.cpp \ |
John Reck | acb6f07 | 2014-03-12 16:11:23 -0700 | [diff] [blame] | 49 | RenderProperties.cpp \ |
John Reck | 3b20251 | 2014-06-23 13:13:08 -0700 | [diff] [blame] | 50 | RenderState.cpp \ |
Chet Haase | 5c13d89 | 2010-10-08 08:37:55 -0700 | [diff] [blame] | 51 | ResourceCache.cpp \ |
ztenghui | 55bfb4e | 2013-12-03 10:38:55 -0800 | [diff] [blame] | 52 | ShadowTessellator.cpp \ |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 53 | SkiaShader.cpp \ |
Romain Guy | ada4d53 | 2012-02-02 17:31:16 -0800 | [diff] [blame] | 54 | Snapshot.cpp \ |
ztenghui | 7b4516e | 2014-01-07 10:42:55 -0800 | [diff] [blame] | 55 | SpotShadow.cpp \ |
Chris Craik | 14e5130 | 2013-12-30 15:32:54 -0800 | [diff] [blame] | 56 | StatefulBaseRenderer.cpp \ |
Romain Guy | 0baaac5 | 2012-08-31 20:31:01 -0700 | [diff] [blame] | 57 | Stencil.cpp \ |
Chris Craik | 05f3d6e | 2014-06-02 16:27:04 -0700 | [diff] [blame] | 58 | TessellationCache.cpp \ |
Romain Guy | 8aa195d | 2013-06-04 18:00:09 -0700 | [diff] [blame] | 59 | Texture.cpp \ |
Romain Guy | 1e45aae | 2010-08-13 19:39:53 -0700 | [diff] [blame] | 60 | TextureCache.cpp \ |
61 | TextDropShadowCache.cpp | ||||
Chris Craik | 710f46d | 2012-09-17 17:25:49 -0700 | [diff] [blame] | 62 | |
Chris Craik | e4aa95e | 2014-05-08 13:57:05 -0700 | [diff] [blame] | 63 | # RenderThread stuff |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 64 | LOCAL_SRC_FILES += \ |
John Reck | 23b797a | 2014-01-03 18:08:34 -0800 | [diff] [blame] | 65 | renderthread/CanvasContext.cpp \ |
John Reck | 668f0e3 | 2014-03-26 15:10:40 -0700 | [diff] [blame] | 66 | renderthread/DrawFrameTask.cpp \ |
John Reck | 3b20251 | 2014-06-23 13:13:08 -0700 | [diff] [blame] | 67 | renderthread/EglManager.cpp \ |
John Reck | 4f02bf4 | 2014-01-03 18:09:17 -0800 | [diff] [blame] | 68 | renderthread/RenderProxy.cpp \ |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 69 | renderthread/RenderTask.cpp \ |
John Reck | 18f16e6 | 2014-05-02 16:46:41 -0700 | [diff] [blame] | 70 | renderthread/RenderThread.cpp \ |
71 | renderthread/TimeLord.cpp | ||||
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 72 | |
Chris Craik | f2d8ccc | 2013-02-13 16:14:17 -0800 | [diff] [blame] | 73 | intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,) |
74 | |||||
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 75 | LOCAL_C_INCLUDES += \ |
Derek Sollenberger | 950fe8f | 2014-02-27 11:14:55 -0500 | [diff] [blame] | 76 | external/skia/src/core |
Romain Guy | 85bf02f | 2010-06-22 13:11:24 -0700 | [diff] [blame] | 77 | |
Romain Guy | 3b748a4 | 2013-04-17 18:54:38 -0700 | [diff] [blame] | 78 | LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES |
Chris Craik | e63f7c62 | 2013-10-17 10:30:55 -0700 | [diff] [blame] | 79 | LOCAL_CFLAGS += -Wno-unused-parameter |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 80 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
John Reck | 04fc583 | 2014-02-05 16:38:25 -0800 | [diff] [blame] | 81 | LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 82 | LOCAL_MODULE := libhwui |
83 | LOCAL_MODULE_TAGS := optional | ||||
Romain Guy | 8a4ac61 | 2012-07-17 17:32:48 -0700 | [diff] [blame] | 84 | |
John Reck | ce444ca | 2014-06-02 15:12:36 -0700 | [diff] [blame] | 85 | include external/stlport/libstlport.mk |
86 | |||||
Romain Guy | 09d3636 | 2013-04-16 11:30:05 -0700 | [diff] [blame] | 87 | ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT)) |
88 | LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT | ||||
John Reck | ce444ca | 2014-06-02 15:12:36 -0700 | [diff] [blame] | 89 | LOCAL_SHARED_LIBRARIES += libRS libRScpp |
Romain Guy | 09d3636 | 2013-04-16 11:30:05 -0700 | [diff] [blame] | 90 | LOCAL_C_INCLUDES += \ |
91 | $(intermediates) \ | ||||
92 | frameworks/rs/cpp \ | ||||
John Reck | ce444ca | 2014-06-02 15:12:36 -0700 | [diff] [blame] | 93 | frameworks/rs |
Romain Guy | 09d3636 | 2013-04-16 11:30:05 -0700 | [diff] [blame] | 94 | endif |
Dan Morrill | e4d9a01 | 2013-03-28 18:10:43 -0700 | [diff] [blame] | 95 | |
Romain Guy | 8a4ac61 | 2012-07-17 17:32:48 -0700 | [diff] [blame] | 96 | ifndef HWUI_COMPILE_SYMBOLS |
97 | LOCAL_CFLAGS += -fvisibility=hidden | ||||
98 | endif | ||||
99 | |||||
100 | ifdef HWUI_COMPILE_FOR_PERF | ||||
101 | LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs | ||||
102 | endif | ||||
103 | |||||
John Reck | a7c2ea2 | 2014-08-08 13:21:00 -0700 | [diff] [blame] | 104 | # Defaults for ATRACE_TAG and LOG_TAG for libhwui |
105 | LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" | ||||
106 | |||||
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 107 | include $(BUILD_SHARED_LIBRARY) |
Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 108 | |
Chris Craik | f2d8ccc | 2013-02-13 16:14:17 -0800 | [diff] [blame] | 109 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 110 | endif |