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