Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_native_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_native_license"], |
| 8 | } |
| 9 | |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 10 | cc_defaults { |
| 11 | name: "renderengine_defaults", |
| 12 | cflags: [ |
| 13 | "-DLOG_TAG=\"RenderEngine\"", |
| 14 | "-Wall", |
| 15 | "-Werror", |
| 16 | "-Wthread-safety", |
| 17 | "-Wunused", |
| 18 | "-Wunreachable-code", |
| 19 | ], |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | cc_defaults { |
| 23 | name: "librenderengine_defaults", |
| 24 | defaults: ["renderengine_defaults"], |
| 25 | cflags: [ |
| 26 | "-DGL_GLEXT_PROTOTYPES", |
| 27 | "-DEGL_EGLEXT_PROTOTYPES", |
| 28 | ], |
| 29 | shared_libs: [ |
Yiwei Zhang | 5434a78 | 2018-12-05 18:06:32 -0800 | [diff] [blame] | 30 | "libbase", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 31 | "libcutils", |
| 32 | "libEGL", |
| 33 | "libGLESv1_CM", |
| 34 | "libGLESv2", |
| 35 | "libgui", |
| 36 | "liblog", |
Peiyong Lin | 46080ef | 2018-10-26 18:43:14 -0700 | [diff] [blame] | 37 | "libnativewindow", |
Alec Mouri | 16a9940 | 2019-07-29 16:37:30 -0700 | [diff] [blame] | 38 | "libprocessgroup", |
Alec Mouri | 0d5e1eb | 2018-11-10 20:40:12 -0800 | [diff] [blame] | 39 | "libsync", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 40 | "libui", |
| 41 | "libutils", |
| 42 | ], |
| 43 | local_include_dirs: ["include"], |
| 44 | export_include_dirs: ["include"], |
| 45 | } |
| 46 | |
| 47 | filegroup { |
| 48 | name: "librenderengine_sources", |
| 49 | srcs: [ |
| 50 | "Description.cpp", |
Alec Mouri | a90a570 | 2021-04-16 16:36:21 +0000 | [diff] [blame] | 51 | "ExternalTexture.cpp", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 52 | "Mesh.cpp", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 53 | "RenderEngine.cpp", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 54 | "Texture.cpp", |
| 55 | ], |
| 56 | } |
| 57 | |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 58 | filegroup { |
| 59 | name: "librenderengine_gl_sources", |
| 60 | srcs: [ |
Peiyong Lin | 7e219eb | 2018-12-03 05:40:42 -0800 | [diff] [blame] | 61 | "gl/GLESRenderEngine.cpp", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 62 | "gl/GLExtensions.cpp", |
Peiyong Lin | e5a9a7f | 2018-08-30 15:32:13 -0700 | [diff] [blame] | 63 | "gl/GLFramebuffer.cpp", |
Peiyong Lin | f1bada9 | 2018-08-29 09:39:31 -0700 | [diff] [blame] | 64 | "gl/GLImage.cpp", |
Vishnu Nair | f19544f | 2020-02-03 11:23:26 -0800 | [diff] [blame] | 65 | "gl/GLShadowTexture.cpp", |
Vishnu Nair | 16efdbf | 2019-12-10 11:55:42 -0800 | [diff] [blame] | 66 | "gl/GLShadowVertexGenerator.cpp", |
| 67 | "gl/GLSkiaShadowPort.cpp", |
Lucas Dupin | ad66337 | 2020-03-19 12:44:36 -0700 | [diff] [blame] | 68 | "gl/GLVertexBuffer.cpp", |
Alec Mouri | 16a9940 | 2019-07-29 16:37:30 -0700 | [diff] [blame] | 69 | "gl/ImageManager.cpp", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 70 | "gl/Program.cpp", |
| 71 | "gl/ProgramCache.cpp", |
Lucas Dupin | 19c8f0e | 2019-11-25 17:55:44 -0800 | [diff] [blame] | 72 | "gl/filters/BlurFilter.cpp", |
Lucas Dupin | 19c8f0e | 2019-11-25 17:55:44 -0800 | [diff] [blame] | 73 | "gl/filters/GenericProgram.cpp", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 74 | ], |
| 75 | } |
| 76 | |
Ana Krulec | 9bc9dc6 | 2020-02-26 12:16:40 -0800 | [diff] [blame] | 77 | filegroup { |
| 78 | name: "librenderengine_threaded_sources", |
| 79 | srcs: [ |
| 80 | "threaded/RenderEngineThreaded.cpp", |
| 81 | ], |
| 82 | } |
| 83 | |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 84 | filegroup { |
| 85 | name: "librenderengine_skia_sources", |
| 86 | srcs: [ |
Alec Mouri | c7f6c8b | 2020-11-09 18:35:20 -0800 | [diff] [blame] | 87 | "skia/AutoBackendTexture.cpp", |
Leon Scroggins III | b9216dc | 2021-03-08 17:19:01 -0500 | [diff] [blame] | 88 | "skia/Cache.cpp", |
Alec Mouri | c0aae73 | 2021-01-12 13:32:18 -0800 | [diff] [blame] | 89 | "skia/ColorSpaces.cpp", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 90 | "skia/SkiaRenderEngine.cpp", |
| 91 | "skia/SkiaGLRenderEngine.cpp", |
Ana Krulec | 70d15b1b | 2020-12-01 10:05:15 -0800 | [diff] [blame] | 92 | "skia/debug/CaptureTimer.cpp", |
| 93 | "skia/debug/CommonPool.cpp", |
| 94 | "skia/debug/SkiaCapture.cpp", |
Derek Sollenberger | 0e6d356 | 2021-04-07 19:34:39 -0400 | [diff] [blame] | 95 | "skia/debug/SkiaMemoryReporter.cpp", |
Robin Lee | 026680a | 2021-07-26 12:49:53 +0200 | [diff] [blame] | 96 | "skia/filters/KawaseBlurFilter.cpp", |
Alec Mouri | 029d195 | 2020-10-12 10:37:08 -0700 | [diff] [blame] | 97 | "skia/filters/LinearEffect.cpp", |
Nader Jawad | 2dfc98b | 2021-04-08 20:35:39 -0700 | [diff] [blame] | 98 | "skia/filters/StretchShaderFactory.cpp" |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 99 | ], |
| 100 | } |
| 101 | |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 102 | cc_library_static { |
| 103 | name: "librenderengine", |
| 104 | defaults: ["librenderengine_defaults"], |
| 105 | double_loadable: true, |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 106 | clang: true, |
| 107 | cflags: [ |
| 108 | "-fvisibility=hidden", |
| 109 | "-Werror=format", |
Ana Krulec | 70d15b1b | 2020-12-01 10:05:15 -0800 | [diff] [blame] | 110 | "-Wno-unused-parameter", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 111 | ], |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 112 | srcs: [ |
| 113 | ":librenderengine_sources", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 114 | ":librenderengine_gl_sources", |
Ana Krulec | 9bc9dc6 | 2020-02-26 12:16:40 -0800 | [diff] [blame] | 115 | ":librenderengine_threaded_sources", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 116 | ":librenderengine_skia_sources", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 117 | ], |
Derek Sollenberger | c8d959d | 2021-02-10 12:53:02 -0500 | [diff] [blame] | 118 | include_dirs: [ |
| 119 | "external/skia/src/gpu", |
| 120 | ], |
Leon Scroggins III | e4169c8 | 2021-04-28 11:31:50 -0400 | [diff] [blame] | 121 | whole_static_libs: ["libskia_renderengine"], |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 122 | lto: { |
| 123 | thin: true, |
| 124 | }, |
| 125 | } |
Lloyd Pique | 3823e7b | 2018-10-18 16:58:10 -0700 | [diff] [blame] | 126 | |
| 127 | cc_library_static { |
| 128 | name: "librenderengine_mocks", |
| 129 | defaults: ["librenderengine_defaults"], |
| 130 | srcs: [ |
| 131 | "mock/Framebuffer.cpp", |
| 132 | "mock/Image.cpp", |
| 133 | "mock/RenderEngine.cpp", |
| 134 | ], |
| 135 | static_libs: [ |
| 136 | "libgtest", |
| 137 | "libgmock", |
| 138 | ], |
| 139 | local_include_dirs: ["include"], |
| 140 | export_include_dirs: ["include"], |
| 141 | } |