blob: eb3b4349351fe8bedd89e80710bb2a0b33a00c73 [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 ],
43 local_include_dirs: ["include"],
44 export_include_dirs: ["include"],
45}
46
47filegroup {
48 name: "librenderengine_sources",
49 srcs: [
50 "Description.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070051 "Mesh.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070052 "RenderEngine.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070053 "Texture.cpp",
54 ],
55}
56
Peiyong Lin833074a2018-08-28 11:53:54 -070057filegroup {
58 name: "librenderengine_gl_sources",
59 srcs: [
Peiyong Lin7e219eb2018-12-03 05:40:42 -080060 "gl/GLESRenderEngine.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070061 "gl/GLExtensions.cpp",
Peiyong Line5a9a7f2018-08-30 15:32:13 -070062 "gl/GLFramebuffer.cpp",
Peiyong Linf1bada92018-08-29 09:39:31 -070063 "gl/GLImage.cpp",
Vishnu Nairf19544f2020-02-03 11:23:26 -080064 "gl/GLShadowTexture.cpp",
Vishnu Nair16efdbf2019-12-10 11:55:42 -080065 "gl/GLShadowVertexGenerator.cpp",
66 "gl/GLSkiaShadowPort.cpp",
Lucas Dupinad663372020-03-19 12:44:36 -070067 "gl/GLVertexBuffer.cpp",
Alec Mouri16a99402019-07-29 16:37:30 -070068 "gl/ImageManager.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070069 "gl/Program.cpp",
70 "gl/ProgramCache.cpp",
Lucas Dupin19c8f0e2019-11-25 17:55:44 -080071 "gl/filters/BlurFilter.cpp",
Lucas Dupin19c8f0e2019-11-25 17:55:44 -080072 "gl/filters/GenericProgram.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070073 ],
74}
75
Ana Krulec9bc9dc62020-02-26 12:16:40 -080076filegroup {
77 name: "librenderengine_threaded_sources",
78 srcs: [
79 "threaded/RenderEngineThreaded.cpp",
80 ],
81}
82
John Reck67b1e2b2020-08-26 13:17:24 -070083filegroup {
84 name: "librenderengine_skia_sources",
85 srcs: [
Alec Mouric7f6c8b2020-11-09 18:35:20 -080086 "skia/AutoBackendTexture.cpp",
Alec Mouric0aae732021-01-12 13:32:18 -080087 "skia/ColorSpaces.cpp",
John Reck67b1e2b2020-08-26 13:17:24 -070088 "skia/SkiaRenderEngine.cpp",
89 "skia/SkiaGLRenderEngine.cpp",
Ana Krulec70d15b1b2020-12-01 10:05:15 -080090 "skia/debug/CaptureTimer.cpp",
91 "skia/debug/CommonPool.cpp",
92 "skia/debug/SkiaCapture.cpp",
Lucas Dupinf4cb4a02020-09-22 14:19:26 -070093 "skia/filters/BlurFilter.cpp",
Alec Mouri029d1952020-10-12 10:37:08 -070094 "skia/filters/LinearEffect.cpp",
John Reck67b1e2b2020-08-26 13:17:24 -070095 ],
96}
97
Peiyong Lincbc184f2018-08-22 13:24:10 -070098cc_library_static {
99 name: "librenderengine",
100 defaults: ["librenderengine_defaults"],
101 double_loadable: true,
Peiyong Lincbc184f2018-08-22 13:24:10 -0700102 clang: true,
103 cflags: [
104 "-fvisibility=hidden",
105 "-Werror=format",
Ana Krulec70d15b1b2020-12-01 10:05:15 -0800106 "-Wno-unused-parameter",
Peiyong Lincbc184f2018-08-22 13:24:10 -0700107 ],
Peiyong Lincbc184f2018-08-22 13:24:10 -0700108 srcs: [
109 ":librenderengine_sources",
Peiyong Lin833074a2018-08-28 11:53:54 -0700110 ":librenderengine_gl_sources",
Ana Krulec9bc9dc62020-02-26 12:16:40 -0800111 ":librenderengine_threaded_sources",
John Reck67b1e2b2020-08-26 13:17:24 -0700112 ":librenderengine_skia_sources",
Peiyong Lincbc184f2018-08-22 13:24:10 -0700113 ],
Derek Sollenbergerc8d959d2021-02-10 12:53:02 -0500114 include_dirs: [
115 "external/skia/src/gpu",
116 ],
117 whole_static_libs: ["libskia"],
Peiyong Lincbc184f2018-08-22 13:24:10 -0700118 lto: {
119 thin: true,
120 },
121}
Lloyd Pique3823e7b2018-10-18 16:58:10 -0700122
123cc_library_static {
124 name: "librenderengine_mocks",
125 defaults: ["librenderengine_defaults"],
126 srcs: [
127 "mock/Framebuffer.cpp",
128 "mock/Image.cpp",
129 "mock/RenderEngine.cpp",
130 ],
131 static_libs: [
132 "libgtest",
133 "libgmock",
134 ],
135 local_include_dirs: ["include"],
136 export_include_dirs: ["include"],
137}