blob: ecfaef89288d032fdc8236dccccfa669c9705a26 [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: [
45 "libtonemap",
46 ],
Peiyong Lincbc184f2018-08-22 13:24:10 -070047 local_include_dirs: ["include"],
48 export_include_dirs: ["include"],
49}
50
51filegroup {
52 name: "librenderengine_sources",
53 srcs: [
54 "Description.cpp",
Alec Mouria90a5702021-04-16 16:36:21 +000055 "ExternalTexture.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070056 "Mesh.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070057 "RenderEngine.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070058 "Texture.cpp",
59 ],
60}
61
Peiyong Lin833074a2018-08-28 11:53:54 -070062filegroup {
63 name: "librenderengine_gl_sources",
64 srcs: [
Peiyong Lin7e219eb2018-12-03 05:40:42 -080065 "gl/GLESRenderEngine.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070066 "gl/GLExtensions.cpp",
Peiyong Line5a9a7f2018-08-30 15:32:13 -070067 "gl/GLFramebuffer.cpp",
Peiyong Linf1bada92018-08-29 09:39:31 -070068 "gl/GLImage.cpp",
Vishnu Nairf19544f2020-02-03 11:23:26 -080069 "gl/GLShadowTexture.cpp",
Vishnu Nair16efdbf2019-12-10 11:55:42 -080070 "gl/GLShadowVertexGenerator.cpp",
71 "gl/GLSkiaShadowPort.cpp",
Lucas Dupinad663372020-03-19 12:44:36 -070072 "gl/GLVertexBuffer.cpp",
Alec Mouri16a99402019-07-29 16:37:30 -070073 "gl/ImageManager.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070074 "gl/Program.cpp",
75 "gl/ProgramCache.cpp",
Lucas Dupin19c8f0e2019-11-25 17:55:44 -080076 "gl/filters/BlurFilter.cpp",
Lucas Dupin19c8f0e2019-11-25 17:55:44 -080077 "gl/filters/GenericProgram.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070078 ],
79}
80
Ana Krulec9bc9dc62020-02-26 12:16:40 -080081filegroup {
82 name: "librenderengine_threaded_sources",
83 srcs: [
84 "threaded/RenderEngineThreaded.cpp",
85 ],
86}
87
John Reck67b1e2b2020-08-26 13:17:24 -070088filegroup {
89 name: "librenderengine_skia_sources",
90 srcs: [
Alec Mouric7f6c8b2020-11-09 18:35:20 -080091 "skia/AutoBackendTexture.cpp",
Leon Scroggins IIIb9216dc2021-03-08 17:19:01 -050092 "skia/Cache.cpp",
Alec Mouric0aae732021-01-12 13:32:18 -080093 "skia/ColorSpaces.cpp",
John Reck67b1e2b2020-08-26 13:17:24 -070094 "skia/SkiaRenderEngine.cpp",
95 "skia/SkiaGLRenderEngine.cpp",
Ana Krulec70d15b1b2020-12-01 10:05:15 -080096 "skia/debug/CaptureTimer.cpp",
97 "skia/debug/CommonPool.cpp",
98 "skia/debug/SkiaCapture.cpp",
Derek Sollenberger0e6d3562021-04-07 19:34:39 -040099 "skia/debug/SkiaMemoryReporter.cpp",
Robin Lee26dacab2021-08-09 14:31:01 +0200100 "skia/filters/BlurFilter.cpp",
101 "skia/filters/GaussianBlurFilter.cpp",
Robin Lee026680a2021-07-26 12:49:53 +0200102 "skia/filters/KawaseBlurFilter.cpp",
Alec Mouri029d1952020-10-12 10:37:08 -0700103 "skia/filters/LinearEffect.cpp",
Alec Mouri465b2962021-10-08 16:22:21 -0700104 "skia/filters/StretchShaderFactory.cpp",
John Reck67b1e2b2020-08-26 13:17:24 -0700105 ],
106}
107
Peiyong Lincbc184f2018-08-22 13:24:10 -0700108cc_library_static {
109 name: "librenderengine",
110 defaults: ["librenderengine_defaults"],
111 double_loadable: true,
Peiyong Lincbc184f2018-08-22 13:24:10 -0700112 clang: true,
113 cflags: [
114 "-fvisibility=hidden",
115 "-Werror=format",
Ana Krulec70d15b1b2020-12-01 10:05:15 -0800116 "-Wno-unused-parameter",
Peiyong Lincbc184f2018-08-22 13:24:10 -0700117 ],
Peiyong Lincbc184f2018-08-22 13:24:10 -0700118 srcs: [
119 ":librenderengine_sources",
Peiyong Lin833074a2018-08-28 11:53:54 -0700120 ":librenderengine_gl_sources",
Ana Krulec9bc9dc62020-02-26 12:16:40 -0800121 ":librenderengine_threaded_sources",
John Reck67b1e2b2020-08-26 13:17:24 -0700122 ":librenderengine_skia_sources",
Peiyong Lincbc184f2018-08-22 13:24:10 -0700123 ],
Derek Sollenbergerc8d959d2021-02-10 12:53:02 -0500124 include_dirs: [
125 "external/skia/src/gpu",
126 ],
Leon Scroggins IIIe4169c82021-04-28 11:31:50 -0400127 whole_static_libs: ["libskia_renderengine"],
Peiyong Lincbc184f2018-08-22 13:24:10 -0700128 lto: {
129 thin: true,
130 },
131}
Lloyd Pique3823e7b2018-10-18 16:58:10 -0700132
133cc_library_static {
134 name: "librenderengine_mocks",
135 defaults: ["librenderengine_defaults"],
136 srcs: [
137 "mock/Framebuffer.cpp",
138 "mock/Image.cpp",
139 "mock/RenderEngine.cpp",
140 ],
141 static_libs: [
142 "libgtest",
143 "libgmock",
144 ],
145 local_include_dirs: ["include"],
146 export_include_dirs: ["include"],
147}