John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 1 | # getConfig in external/skia/include/core/SkBitmap.h is deprecated. |
| 2 | # Allow Gnu extension: in-class initializer of static 'const float' member. |
Chih-Hung Hsieh | 1aa800e | 2015-05-22 12:28:03 -0700 | [diff] [blame] | 3 | # DeferredLayerUpdater.h: private field 'mRenderThread' is not used. |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 4 | LOCAL_CLANG_CFLAGS += \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 5 | -Wno-deprecated-declarations \ |
Chih-Hung Hsieh | 1aa800e | 2015-05-22 12:28:03 -0700 | [diff] [blame] | 6 | -Wno-gnu-static-float-init \ |
| 7 | -Wno-unused-private-field |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 8 | |
| 9 | LOCAL_SRC_FILES := \ |
Chris Craik | 65fe5ee | 2015-01-26 18:06:29 -0800 | [diff] [blame] | 10 | font/CacheTexture.cpp \ |
| 11 | font/Font.cpp \ |
Chris Craik | 44eb2c0 | 2015-01-29 09:45:09 -0800 | [diff] [blame] | 12 | renderstate/Blend.cpp \ |
Chris Craik | 96a5c4c | 2015-01-27 15:46:35 -0800 | [diff] [blame] | 13 | renderstate/MeshState.cpp \ |
| 14 | renderstate/PixelBufferState.cpp \ |
Chris Craik | 65fe5ee | 2015-01-26 18:06:29 -0800 | [diff] [blame] | 15 | renderstate/RenderState.cpp \ |
| 16 | renderstate/Scissor.cpp \ |
Chris Craik | 96a5c4c | 2015-01-27 15:46:35 -0800 | [diff] [blame] | 17 | renderstate/Stencil.cpp \ |
Chris Craik | 44eb2c0 | 2015-01-29 09:45:09 -0800 | [diff] [blame] | 18 | renderstate/TextureState.cpp \ |
Chris Craik | 65fe5ee | 2015-01-26 18:06:29 -0800 | [diff] [blame] | 19 | renderthread/CanvasContext.cpp \ |
| 20 | renderthread/DrawFrameTask.cpp \ |
| 21 | renderthread/EglManager.cpp \ |
| 22 | renderthread/RenderProxy.cpp \ |
| 23 | renderthread/RenderTask.cpp \ |
| 24 | renderthread/RenderThread.cpp \ |
| 25 | renderthread/TimeLord.cpp \ |
| 26 | thread/TaskManager.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 27 | utils/Blur.cpp \ |
| 28 | utils/GLUtils.cpp \ |
John Reck | 1ed7237 | 2015-04-23 15:45:54 -0700 | [diff] [blame] | 29 | utils/LinearAllocator.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 30 | utils/SortedListImpl.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 31 | AmbientShadow.cpp \ |
| 32 | AnimationContext.cpp \ |
| 33 | Animator.cpp \ |
| 34 | AnimatorManager.cpp \ |
| 35 | AssetAtlas.cpp \ |
| 36 | Caches.cpp \ |
| 37 | CanvasState.cpp \ |
Rob Tsuk | 487a92c | 2015-01-06 13:22:54 -0800 | [diff] [blame] | 38 | ClipArea.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 39 | DamageAccumulator.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 40 | DeferredDisplayList.cpp \ |
| 41 | DeferredLayerUpdater.cpp \ |
Chris Craik | 0318887 | 2015-02-02 18:39:33 -0800 | [diff] [blame] | 42 | DisplayList.cpp \ |
Chris Craik | db663fe | 2015-04-20 13:34:45 -0700 | [diff] [blame] | 43 | DisplayListCanvas.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 44 | Dither.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 45 | Extensions.cpp \ |
| 46 | FboCache.cpp \ |
| 47 | FontRenderer.cpp \ |
John Reck | ba6adf6 | 2015-02-19 14:36:50 -0800 | [diff] [blame] | 48 | FrameInfo.cpp \ |
John Reck | 4c9e59d | 2015-05-12 07:17:50 -0700 | [diff] [blame] | 49 | FrameInfoVisualizer.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 50 | GammaFontRenderer.cpp \ |
Chris Craik | 0318887 | 2015-02-02 18:39:33 -0800 | [diff] [blame] | 51 | GlopBuilder.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 52 | GradientCache.cpp \ |
| 53 | Image.cpp \ |
| 54 | Interpolator.cpp \ |
John Reck | ba6adf6 | 2015-02-19 14:36:50 -0800 | [diff] [blame] | 55 | JankTracker.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 56 | Layer.cpp \ |
| 57 | LayerCache.cpp \ |
| 58 | LayerRenderer.cpp \ |
| 59 | Matrix.cpp \ |
| 60 | OpenGLRenderer.cpp \ |
| 61 | Patch.cpp \ |
| 62 | PatchCache.cpp \ |
| 63 | PathCache.cpp \ |
| 64 | PathTessellator.cpp \ |
| 65 | PixelBuffer.cpp \ |
| 66 | Program.cpp \ |
| 67 | ProgramCache.cpp \ |
Chris Craik | 2507c34 | 2015-05-04 14:36:49 -0700 | [diff] [blame] | 68 | Properties.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 69 | RenderBufferCache.cpp \ |
| 70 | RenderNode.cpp \ |
| 71 | RenderProperties.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 72 | ResourceCache.cpp \ |
| 73 | ShadowTessellator.cpp \ |
John Reck | 849911a | 2015-01-20 07:51:14 -0800 | [diff] [blame] | 74 | SkiaCanvas.cpp \ |
Derek Sollenberger | 1db141f | 2014-12-16 08:37:20 -0500 | [diff] [blame] | 75 | SkiaCanvasProxy.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 76 | SkiaShader.cpp \ |
| 77 | Snapshot.cpp \ |
| 78 | SpotShadow.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 79 | TessellationCache.cpp \ |
Chris Craik | 0318887 | 2015-02-02 18:39:33 -0800 | [diff] [blame] | 80 | TextDropShadowCache.cpp \ |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 81 | Texture.cpp \ |
Chris Craik | 0318887 | 2015-02-02 18:39:33 -0800 | [diff] [blame] | 82 | TextureCache.cpp |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 83 | |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 84 | intermediates := $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,) |
| 85 | |
| 86 | LOCAL_C_INCLUDES += \ |
| 87 | external/skia/src/core |
| 88 | |
John Reck | a2732a2 | 2014-12-18 13:52:33 -0800 | [diff] [blame] | 89 | LOCAL_CFLAGS += -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 90 | LOCAL_SHARED_LIBRARIES := liblog libcutils libutils libEGL libGLESv2 libskia libui libgui |
| 91 | |
| 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 \ |
| 99 | |
| 100 | endif |
| 101 | |
| 102 | ifndef HWUI_COMPILE_SYMBOLS |
| 103 | LOCAL_CFLAGS += -fvisibility=hidden |
| 104 | endif |
| 105 | |
| 106 | ifdef HWUI_COMPILE_FOR_PERF |
| 107 | # TODO: Non-arm? |
| 108 | LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs |
| 109 | endif |
| 110 | |
John Reck | 041b985 | 2015-02-25 14:32:41 -0800 | [diff] [blame] | 111 | ifeq (true, $(HWUI_NULL_GPU)) |
| 112 | LOCAL_SRC_FILES += \ |
| 113 | tests/nullegl.cpp \ |
| 114 | tests/nullgles.cpp |
| 115 | |
| 116 | LOCAL_CFLAGS += -DHWUI_NULL_GPU |
| 117 | endif |
| 118 | |
John Reck | 35cf58a | 2014-12-18 13:14:40 -0800 | [diff] [blame] | 119 | # Defaults for ATRACE_TAG and LOG_TAG for libhwui |
| 120 | LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" |
| 121 | |
Chris Craik | 2ae0733 | 2015-01-21 14:22:39 -0800 | [diff] [blame] | 122 | LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter -Wunreachable-code |