blob: 3dcb49895dae257e61251b9546017eec9dd7117c [file] [log] [blame]
Peiyong Lincbc184f2018-08-22 13:24:10 -07001cc_defaults {
2 name: "renderengine_defaults",
3 cflags: [
4 "-DLOG_TAG=\"RenderEngine\"",
5 "-Wall",
6 "-Werror",
7 "-Wthread-safety",
8 "-Wunused",
9 "-Wunreachable-code",
10 ],
Peiyong Lincbc184f2018-08-22 13:24:10 -070011}
12
13cc_defaults {
14 name: "librenderengine_defaults",
15 defaults: ["renderengine_defaults"],
16 cflags: [
17 "-DGL_GLEXT_PROTOTYPES",
18 "-DEGL_EGLEXT_PROTOTYPES",
19 ],
20 shared_libs: [
Yiwei Zhang5434a782018-12-05 18:06:32 -080021 "libbase",
Peiyong Lincbc184f2018-08-22 13:24:10 -070022 "libcutils",
23 "libEGL",
24 "libGLESv1_CM",
25 "libGLESv2",
26 "libgui",
27 "liblog",
Peiyong Lin46080ef2018-10-26 18:43:14 -070028 "libnativewindow",
Alec Mouri16a99402019-07-29 16:37:30 -070029 "libprocessgroup",
Alec Mouri0d5e1eb2018-11-10 20:40:12 -080030 "libsync",
Peiyong Lincbc184f2018-08-22 13:24:10 -070031 "libui",
32 "libutils",
33 ],
34 local_include_dirs: ["include"],
35 export_include_dirs: ["include"],
36}
37
38filegroup {
39 name: "librenderengine_sources",
40 srcs: [
41 "Description.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070042 "Mesh.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070043 "RenderEngine.cpp",
Peiyong Lincbc184f2018-08-22 13:24:10 -070044 "Texture.cpp",
45 ],
46}
47
Peiyong Lin833074a2018-08-28 11:53:54 -070048filegroup {
49 name: "librenderengine_gl_sources",
50 srcs: [
Peiyong Lin7e219eb2018-12-03 05:40:42 -080051 "gl/GLESRenderEngine.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070052 "gl/GLExtensions.cpp",
Peiyong Line5a9a7f2018-08-30 15:32:13 -070053 "gl/GLFramebuffer.cpp",
Peiyong Linf1bada92018-08-29 09:39:31 -070054 "gl/GLImage.cpp",
Vishnu Nairf19544f2020-02-03 11:23:26 -080055 "gl/GLShadowTexture.cpp",
Vishnu Nair16efdbf2019-12-10 11:55:42 -080056 "gl/GLShadowVertexGenerator.cpp",
57 "gl/GLSkiaShadowPort.cpp",
Lucas Dupinad663372020-03-19 12:44:36 -070058 "gl/GLVertexBuffer.cpp",
Alec Mouri16a99402019-07-29 16:37:30 -070059 "gl/ImageManager.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070060 "gl/Program.cpp",
61 "gl/ProgramCache.cpp",
Lucas Dupin19c8f0e2019-11-25 17:55:44 -080062 "gl/filters/BlurFilter.cpp",
Lucas Dupin19c8f0e2019-11-25 17:55:44 -080063 "gl/filters/GenericProgram.cpp",
Peiyong Lin833074a2018-08-28 11:53:54 -070064 ],
65}
66
Ana Krulec9bc9dc62020-02-26 12:16:40 -080067filegroup {
68 name: "librenderengine_threaded_sources",
69 srcs: [
70 "threaded/RenderEngineThreaded.cpp",
71 ],
72}
73
Peiyong Lincbc184f2018-08-22 13:24:10 -070074cc_library_static {
75 name: "librenderengine",
76 defaults: ["librenderengine_defaults"],
Peiyong Lin338ea4f2018-11-03 17:04:37 -070077 vendor_available: true,
78 vndk: {
79 enabled: true,
80 },
Peiyong Lincbc184f2018-08-22 13:24:10 -070081 double_loadable: true,
Peiyong Lincbc184f2018-08-22 13:24:10 -070082 clang: true,
83 cflags: [
84 "-fvisibility=hidden",
85 "-Werror=format",
86 ],
Peiyong Lincbc184f2018-08-22 13:24:10 -070087 srcs: [
88 ":librenderengine_sources",
Peiyong Lin833074a2018-08-28 11:53:54 -070089 ":librenderengine_gl_sources",
Ana Krulec9bc9dc62020-02-26 12:16:40 -080090 ":librenderengine_threaded_sources",
Peiyong Lincbc184f2018-08-22 13:24:10 -070091 ],
92 lto: {
93 thin: true,
94 },
95}
Lloyd Pique3823e7b2018-10-18 16:58:10 -070096
97cc_library_static {
98 name: "librenderengine_mocks",
99 defaults: ["librenderengine_defaults"],
100 srcs: [
101 "mock/Framebuffer.cpp",
102 "mock/Image.cpp",
103 "mock/RenderEngine.cpp",
104 ],
105 static_libs: [
106 "libgtest",
107 "libgmock",
108 ],
109 local_include_dirs: ["include"],
110 export_include_dirs: ["include"],
111}