Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
Dan Albert | 88ba339 | 2014-09-11 16:20:16 -0700 | [diff] [blame] | 3 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 4 | |
Chih-Hung Hsieh | d3448e4 | 2014-09-15 14:28:52 -0700 | [diff] [blame] | 5 | # Too many unused parameters in external/skia/include and this directory. |
| 6 | # getConfig in external/skia/include/core/SkBitmap.h is deprecated. |
| 7 | # Allow Gnu extension: in-class initializer of static 'const float' member. |
| 8 | LOCAL_CLANG_CFLAGS += \ |
Chih-Hung Hsieh | d3448e4 | 2014-09-15 14:28:52 -0700 | [diff] [blame] | 9 | -Wno-gnu-static-float-init |
| 10 | |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 11 | # Only build libhwui when USE_OPENGL_RENDERER is |
| 12 | # defined in the current device/board configuration |
| 13 | ifeq ($(USE_OPENGL_RENDERER),true) |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 14 | LOCAL_SRC_FILES := \ |
| 15 | utils/Blur.cpp \ |
| 16 | utils/GLUtils.cpp \ |
| 17 | utils/SortedListImpl.cpp \ |
| 18 | thread/TaskManager.cpp \ |
| 19 | font/CacheTexture.cpp \ |
| 20 | font/Font.cpp \ |
| 21 | AmbientShadow.cpp \ |
| 22 | AnimationContext.cpp \ |
| 23 | Animator.cpp \ |
| 24 | AnimatorManager.cpp \ |
| 25 | AssetAtlas.cpp \ |
| 26 | DamageAccumulator.cpp \ |
| 27 | FontRenderer.cpp \ |
| 28 | GammaFontRenderer.cpp \ |
| 29 | Caches.cpp \ |
| 30 | DisplayList.cpp \ |
| 31 | DeferredDisplayList.cpp \ |
| 32 | DeferredLayerUpdater.cpp \ |
| 33 | DisplayListLogBuffer.cpp \ |
| 34 | DisplayListRenderer.cpp \ |
| 35 | Dither.cpp \ |
| 36 | DrawProfiler.cpp \ |
| 37 | Extensions.cpp \ |
| 38 | FboCache.cpp \ |
| 39 | GradientCache.cpp \ |
| 40 | Image.cpp \ |
| 41 | Interpolator.cpp \ |
| 42 | Layer.cpp \ |
| 43 | LayerCache.cpp \ |
| 44 | LayerRenderer.cpp \ |
| 45 | Matrix.cpp \ |
| 46 | OpenGLRenderer.cpp \ |
| 47 | Patch.cpp \ |
| 48 | PatchCache.cpp \ |
| 49 | PathCache.cpp \ |
| 50 | PathTessellator.cpp \ |
| 51 | PixelBuffer.cpp \ |
| 52 | Program.cpp \ |
| 53 | ProgramCache.cpp \ |
| 54 | RenderBufferCache.cpp \ |
| 55 | RenderNode.cpp \ |
| 56 | RenderProperties.cpp \ |
| 57 | RenderState.cpp \ |
| 58 | ResourceCache.cpp \ |
| 59 | ShadowTessellator.cpp \ |
| 60 | SkiaShader.cpp \ |
| 61 | Snapshot.cpp \ |
| 62 | SpotShadow.cpp \ |
| 63 | StatefulBaseRenderer.cpp \ |
| 64 | Stencil.cpp \ |
| 65 | TessellationCache.cpp \ |
| 66 | Texture.cpp \ |
| 67 | TextureCache.cpp \ |
| 68 | TextDropShadowCache.cpp |
Chris Craik | 710f46d | 2012-09-17 17:25:49 -0700 | [diff] [blame] | 69 | |
Chris Craik | e4aa95e | 2014-05-08 13:57:05 -0700 | [diff] [blame] | 70 | # RenderThread stuff |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 71 | LOCAL_SRC_FILES += \ |
| 72 | renderthread/CanvasContext.cpp \ |
| 73 | renderthread/DrawFrameTask.cpp \ |
| 74 | renderthread/EglManager.cpp \ |
| 75 | renderthread/RenderProxy.cpp \ |
| 76 | renderthread/RenderTask.cpp \ |
| 77 | renderthread/RenderThread.cpp \ |
| 78 | renderthread/TimeLord.cpp |
John Reck | cec24ae | 2013-11-05 13:27:50 -0800 | [diff] [blame] | 79 | |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 80 | intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,) |
Chris Craik | f2d8ccc | 2013-02-13 16:14:17 -0800 | [diff] [blame] | 81 | |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 82 | LOCAL_C_INCLUDES += \ |
| 83 | external/skia/src/core |
Romain Guy | 85bf02f | 2010-06-22 13:11:24 -0700 | [diff] [blame] | 84 | |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 85 | LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES |
| 86 | LOCAL_CFLAGS += -Wno-unused-parameter |
| 87 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 88 | LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui |
| 89 | LOCAL_MODULE := libhwui |
| 90 | LOCAL_MODULE_TAGS := optional |
Romain Guy | 8a4ac61 | 2012-07-17 17:32:48 -0700 | [diff] [blame] | 91 | |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 92 | ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT)) |
| 93 | LOCAL_CFLAGS += -DANDROID_ENABLE_RENDERSCRIPT |
| 94 | LOCAL_SHARED_LIBRARIES += libRS libRScpp |
| 95 | LOCAL_C_INCLUDES += \ |
| 96 | $(intermediates) \ |
| 97 | frameworks/rs/cpp \ |
| 98 | frameworks/rs \ |
Dan Albert | 88ba339 | 2014-09-11 16:20:16 -0700 | [diff] [blame] | 99 | |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 100 | endif |
Dan Morrill | e4d9a01 | 2013-03-28 18:10:43 -0700 | [diff] [blame] | 101 | |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 102 | ifndef HWUI_COMPILE_SYMBOLS |
| 103 | LOCAL_CFLAGS += -fvisibility=hidden |
| 104 | endif |
Romain Guy | 8a4ac61 | 2012-07-17 17:32:48 -0700 | [diff] [blame] | 105 | |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 106 | ifdef HWUI_COMPILE_FOR_PERF |
| 107 | # TODO: Non-arm? |
| 108 | LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs |
| 109 | endif |
Romain Guy | 8a4ac61 | 2012-07-17 17:32:48 -0700 | [diff] [blame] | 110 | |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 111 | # Defaults for ATRACE_TAG and LOG_TAG for libhwui |
| 112 | LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" |
John Reck | a7c2ea2 | 2014-08-08 13:21:00 -0700 | [diff] [blame] | 113 | |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 114 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code |
Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 115 | |
Andreas Gampe | 1e19674 | 2014-11-10 15:23:43 -0800 | [diff] [blame] | 116 | include $(BUILD_SHARED_LIBRARY) |
| 117 | |
| 118 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 119 | endif |