blob: 07c5dd8a8237bc0baa860fa4f0e83d0784eee89d [file] [log] [blame]
Bob Badour3306e492021-02-25 15:35:37 -08001package {
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 Lincbc184f2018-08-22 13:24:10 -070010cc_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 Lincbc184f2018-08-22 13:24:10 -070020}
21
22cc_defaults {
23 name: "librenderengine_defaults",
24 defaults: ["renderengine_defaults"],
25 cflags: [
26 "-DGL_GLEXT_PROTOTYPES",
27 "-DEGL_EGLEXT_PROTOTYPES",
28 ],
29 shared_libs: [
Yiwei Zhang5434a782018-12-05 18:06:32 -080030 "libbase",
Peiyong Lincbc184f2018-08-22 13:24:10 -070031 "libcutils",
32 "libEGL",
33 "libGLESv1_CM",
34 "libGLESv2",
35 "libgui",
36 "liblog",
Peiyong Lin46080ef2018-10-26 18:43:14 -070037 "libnativewindow",
Alec Mouri16a99402019-07-29 16:37:30 -070038 "libprocessgroup",
Alec Mouri0d5e1eb2018-11-10 20:40:12 -080039 "libsync",
Peiyong Lincbc184f2018-08-22 13:24:10 -070040 "libui",
41 "libutils",
42 ],
Alec Mouri465b2962021-10-08 16:22:21 -070043
44 static_libs: [
Alec Mouri492c85c2021-11-19 15:58:10 -080045 "libshaders",
Alec Mouri465b2962021-10-08 16:22:21 -070046 "libtonemap",
47 ],
Peiyong Lincbc184f2018-08-22 13:24:10 -070048 local_include_dirs: ["include"],
49 export_include_dirs: ["include"],
50}
51
52filegroup {
53 name: "librenderengine_sources",
54 srcs: [
55 "Description.cpp",
Alec Mouria90a5702021-04-16 16:36:21 +000056 "ExternalTexture.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070057 "Mesh.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070058 "RenderEngine.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070059 "Texture.cpp",
60 ],
61}
62
Peiyong Lin833074a2018-08-28 11:53:54 -070063filegroup {
64 name: "librenderengine_gl_sources",
65 srcs: [
Peiyong Lin7e219eb2018-12-03 05:40:42 -080066 "gl/GLESRenderEngine.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070067 "gl/GLExtensions.cpp",
Peiyong Line5a9a7f2018-08-30 15:32:13 -070068 "gl/GLFramebuffer.cpp",
Peiyong Linf1bada92018-08-29 09:39:31 -070069 "gl/GLImage.cpp",
Vishnu Nairf19544f2020-02-03 11:23:26 -080070 "gl/GLShadowTexture.cpp",
Vishnu Nair16efdbf2019-12-10 11:55:42 -080071 "gl/GLShadowVertexGenerator.cpp",
72 "gl/GLSkiaShadowPort.cpp",
Lucas Dupinad663372020-03-19 12:44:36 -070073 "gl/GLVertexBuffer.cpp",
Alec Mouri16a99402019-07-29 16:37:30 -070074 "gl/ImageManager.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070075 "gl/Program.cpp",
76 "gl/ProgramCache.cpp",
Lucas Dupin19c8f0e2019-11-25 17:55:44 -080077 "gl/filters/BlurFilter.cpp",
Lucas Dupin19c8f0e2019-11-25 17:55:44 -080078 "gl/filters/GenericProgram.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070079 ],
80}
81
Ana Krulec9bc9dc62020-02-26 12:16:40 -080082filegroup {
83 name: "librenderengine_threaded_sources",
84 srcs: [
85 "threaded/RenderEngineThreaded.cpp",
86 ],
87}
88
John Reck67b1e2b2020-08-26 13:17:24 -070089filegroup {
90 name: "librenderengine_skia_sources",
91 srcs: [
Alec Mouric7f6c8b2020-11-09 18:35:20 -080092 "skia/AutoBackendTexture.cpp",
Leon Scroggins IIIb9216dc2021-03-08 17:19:01 -050093 "skia/Cache.cpp",
Alec Mouric0aae732021-01-12 13:32:18 -080094 "skia/ColorSpaces.cpp",
John Reck67b1e2b2020-08-26 13:17:24 -070095 "skia/SkiaRenderEngine.cpp",
96 "skia/SkiaGLRenderEngine.cpp",
Ana Krulec70d15b1b2020-12-01 10:05:15 -080097 "skia/debug/CaptureTimer.cpp",
98 "skia/debug/CommonPool.cpp",
99 "skia/debug/SkiaCapture.cpp",
Derek Sollenberger0e6d3562021-04-07 19:34:39 -0400100 "skia/debug/SkiaMemoryReporter.cpp",
Robin Lee26dacab2021-08-09 14:31:01 +0200101 "skia/filters/BlurFilter.cpp",
102 "skia/filters/GaussianBlurFilter.cpp",
Robin Lee026680a2021-07-26 12:49:53 +0200103 "skia/filters/KawaseBlurFilter.cpp",
Alec Mouri029d1952020-10-12 10:37:08 -0700104 "skia/filters/LinearEffect.cpp",
Alec Mouri465b2962021-10-08 16:22:21 -0700105 "skia/filters/StretchShaderFactory.cpp",
John Reck67b1e2b2020-08-26 13:17:24 -0700106 ],
107}
108
Peiyong Lincbc184f2018-08-22 13:24:10 -0700109cc_library_static {
110 name: "librenderengine",
111 defaults: ["librenderengine_defaults"],
112 double_loadable: true,
Peiyong Lincbc184f2018-08-22 13:24:10 -0700113 clang: true,
114 cflags: [
115 "-fvisibility=hidden",
116 "-Werror=format",
Ana Krulec70d15b1b2020-12-01 10:05:15 -0800117 "-Wno-unused-parameter",
Peiyong Lincbc184f2018-08-22 13:24:10 -0700118 ],
Peiyong Lincbc184f2018-08-22 13:24:10 -0700119 srcs: [
120 ":librenderengine_sources",
Peiyong Lin833074a2018-08-28 11:53:54 -0700121 ":librenderengine_gl_sources",
Ana Krulec9bc9dc62020-02-26 12:16:40 -0800122 ":librenderengine_threaded_sources",
John Reck67b1e2b2020-08-26 13:17:24 -0700123 ":librenderengine_skia_sources",
Peiyong Lincbc184f2018-08-22 13:24:10 -0700124 ],
Derek Sollenbergerc8d959d2021-02-10 12:53:02 -0500125 include_dirs: [
126 "external/skia/src/gpu",
127 ],
Leon Scroggins IIIe4169c82021-04-28 11:31:50 -0400128 whole_static_libs: ["libskia_renderengine"],
Peiyong Lincbc184f2018-08-22 13:24:10 -0700129 lto: {
130 thin: true,
131 },
132}
Lloyd Pique3823e7b2018-10-18 16:58:10 -0700133
134cc_library_static {
135 name: "librenderengine_mocks",
136 defaults: ["librenderengine_defaults"],
137 srcs: [
138 "mock/Framebuffer.cpp",
139 "mock/Image.cpp",
140 "mock/RenderEngine.cpp",
141 ],
142 static_libs: [
143 "libgtest",
144 "libgmock",
145 ],
146 local_include_dirs: ["include"],
147 export_include_dirs: ["include"],
148}