blob: 336ff684c167c0c5254a048aea35197ba1e15196 [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",
Alec Mouria90a5702021-04-16 16:36:21 +000051 "ExternalTexture.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070052 "Mesh.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070053 "RenderEngine.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070054 "Texture.cpp",
55 ],
56}
57
Peiyong Lin833074a2018-08-28 11:53:54 -070058filegroup {
59 name: "librenderengine_gl_sources",
60 srcs: [
Peiyong Lin7e219eb2018-12-03 05:40:42 -080061 "gl/GLESRenderEngine.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070062 "gl/GLExtensions.cpp",
Peiyong Line5a9a7f2018-08-30 15:32:13 -070063 "gl/GLFramebuffer.cpp",
Peiyong Linf1bada92018-08-29 09:39:31 -070064 "gl/GLImage.cpp",
Vishnu Nairf19544f2020-02-03 11:23:26 -080065 "gl/GLShadowTexture.cpp",
Vishnu Nair16efdbf2019-12-10 11:55:42 -080066 "gl/GLShadowVertexGenerator.cpp",
67 "gl/GLSkiaShadowPort.cpp",
Lucas Dupinad663372020-03-19 12:44:36 -070068 "gl/GLVertexBuffer.cpp",
Alec Mouri16a99402019-07-29 16:37:30 -070069 "gl/ImageManager.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070070 "gl/Program.cpp",
71 "gl/ProgramCache.cpp",
Lucas Dupin19c8f0e2019-11-25 17:55:44 -080072 "gl/filters/BlurFilter.cpp",
Lucas Dupin19c8f0e2019-11-25 17:55:44 -080073 "gl/filters/GenericProgram.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070074 ],
75}
76
Ana Krulec9bc9dc62020-02-26 12:16:40 -080077filegroup {
78 name: "librenderengine_threaded_sources",
79 srcs: [
80 "threaded/RenderEngineThreaded.cpp",
81 ],
82}
83
John Reck67b1e2b2020-08-26 13:17:24 -070084filegroup {
85 name: "librenderengine_skia_sources",
86 srcs: [
Alec Mouric7f6c8b2020-11-09 18:35:20 -080087 "skia/AutoBackendTexture.cpp",
Leon Scroggins IIIb9216dc2021-03-08 17:19:01 -050088 "skia/Cache.cpp",
Alec Mouric0aae732021-01-12 13:32:18 -080089 "skia/ColorSpaces.cpp",
John Reck67b1e2b2020-08-26 13:17:24 -070090 "skia/SkiaRenderEngine.cpp",
91 "skia/SkiaGLRenderEngine.cpp",
Ana Krulec70d15b1b2020-12-01 10:05:15 -080092 "skia/debug/CaptureTimer.cpp",
93 "skia/debug/CommonPool.cpp",
94 "skia/debug/SkiaCapture.cpp",
Derek Sollenberger0e6d3562021-04-07 19:34:39 -040095 "skia/debug/SkiaMemoryReporter.cpp",
Robin Lee026680a2021-07-26 12:49:53 +020096 "skia/filters/KawaseBlurFilter.cpp",
Alec Mouri029d1952020-10-12 10:37:08 -070097 "skia/filters/LinearEffect.cpp",
Nader Jawad2dfc98b2021-04-08 20:35:39 -070098 "skia/filters/StretchShaderFactory.cpp"
John Reck67b1e2b2020-08-26 13:17:24 -070099 ],
100}
101
Peiyong Lincbc184f2018-08-22 13:24:10 -0700102cc_library_static {
103 name: "librenderengine",
104 defaults: ["librenderengine_defaults"],
105 double_loadable: true,
Peiyong Lincbc184f2018-08-22 13:24:10 -0700106 clang: true,
107 cflags: [
108 "-fvisibility=hidden",
109 "-Werror=format",
Ana Krulec70d15b1b2020-12-01 10:05:15 -0800110 "-Wno-unused-parameter",
Peiyong Lincbc184f2018-08-22 13:24:10 -0700111 ],
Peiyong Lincbc184f2018-08-22 13:24:10 -0700112 srcs: [
113 ":librenderengine_sources",
Peiyong Lin833074a2018-08-28 11:53:54 -0700114 ":librenderengine_gl_sources",
Ana Krulec9bc9dc62020-02-26 12:16:40 -0800115 ":librenderengine_threaded_sources",
John Reck67b1e2b2020-08-26 13:17:24 -0700116 ":librenderengine_skia_sources",
Peiyong Lincbc184f2018-08-22 13:24:10 -0700117 ],
Derek Sollenbergerc8d959d2021-02-10 12:53:02 -0500118 include_dirs: [
119 "external/skia/src/gpu",
120 ],
Leon Scroggins IIIe4169c82021-04-28 11:31:50 -0400121 whole_static_libs: ["libskia_renderengine"],
Peiyong Lincbc184f2018-08-22 13:24:10 -0700122 lto: {
123 thin: true,
124 },
125}
Lloyd Pique3823e7b2018-10-18 16:58:10 -0700126
127cc_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}