Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 1 | cc_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 Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | cc_defaults { |
| 14 | name: "librenderengine_defaults", |
| 15 | defaults: ["renderengine_defaults"], |
| 16 | cflags: [ |
| 17 | "-DGL_GLEXT_PROTOTYPES", |
| 18 | "-DEGL_EGLEXT_PROTOTYPES", |
| 19 | ], |
| 20 | shared_libs: [ |
Yiwei Zhang | 5434a78 | 2018-12-05 18:06:32 -0800 | [diff] [blame] | 21 | "libbase", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 22 | "libcutils", |
| 23 | "libEGL", |
| 24 | "libGLESv1_CM", |
| 25 | "libGLESv2", |
| 26 | "libgui", |
| 27 | "liblog", |
Peiyong Lin | 46080ef | 2018-10-26 18:43:14 -0700 | [diff] [blame] | 28 | "libnativewindow", |
Alec Mouri | 16a9940 | 2019-07-29 16:37:30 -0700 | [diff] [blame] | 29 | "libprocessgroup", |
Alec Mouri | 0d5e1eb | 2018-11-10 20:40:12 -0800 | [diff] [blame] | 30 | "libsync", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 31 | "libui", |
| 32 | "libutils", |
| 33 | ], |
| 34 | local_include_dirs: ["include"], |
| 35 | export_include_dirs: ["include"], |
| 36 | } |
| 37 | |
| 38 | filegroup { |
| 39 | name: "librenderengine_sources", |
| 40 | srcs: [ |
| 41 | "Description.cpp", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 42 | "Mesh.cpp", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 43 | "RenderEngine.cpp", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 44 | "Texture.cpp", |
| 45 | ], |
| 46 | } |
| 47 | |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 48 | filegroup { |
| 49 | name: "librenderengine_gl_sources", |
| 50 | srcs: [ |
Peiyong Lin | 7e219eb | 2018-12-03 05:40:42 -0800 | [diff] [blame] | 51 | "gl/GLESRenderEngine.cpp", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 52 | "gl/GLExtensions.cpp", |
Peiyong Lin | e5a9a7f | 2018-08-30 15:32:13 -0700 | [diff] [blame] | 53 | "gl/GLFramebuffer.cpp", |
Peiyong Lin | f1bada9 | 2018-08-29 09:39:31 -0700 | [diff] [blame] | 54 | "gl/GLImage.cpp", |
Vishnu Nair | f19544f | 2020-02-03 11:23:26 -0800 | [diff] [blame] | 55 | "gl/GLShadowTexture.cpp", |
Vishnu Nair | 16efdbf | 2019-12-10 11:55:42 -0800 | [diff] [blame] | 56 | "gl/GLShadowVertexGenerator.cpp", |
| 57 | "gl/GLSkiaShadowPort.cpp", |
Lucas Dupin | ad66337 | 2020-03-19 12:44:36 -0700 | [diff] [blame] | 58 | "gl/GLVertexBuffer.cpp", |
Alec Mouri | 16a9940 | 2019-07-29 16:37:30 -0700 | [diff] [blame] | 59 | "gl/ImageManager.cpp", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 60 | "gl/Program.cpp", |
| 61 | "gl/ProgramCache.cpp", |
Lucas Dupin | 19c8f0e | 2019-11-25 17:55:44 -0800 | [diff] [blame] | 62 | "gl/filters/BlurFilter.cpp", |
Lucas Dupin | 19c8f0e | 2019-11-25 17:55:44 -0800 | [diff] [blame] | 63 | "gl/filters/GenericProgram.cpp", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 64 | ], |
| 65 | } |
| 66 | |
Ana Krulec | 9bc9dc6 | 2020-02-26 12:16:40 -0800 | [diff] [blame] | 67 | filegroup { |
| 68 | name: "librenderengine_threaded_sources", |
| 69 | srcs: [ |
| 70 | "threaded/RenderEngineThreaded.cpp", |
| 71 | ], |
| 72 | } |
| 73 | |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 74 | filegroup { |
| 75 | name: "librenderengine_skia_sources", |
| 76 | srcs: [ |
Alec Mouri | c7f6c8b | 2020-11-09 18:35:20 -0800 | [diff] [blame] | 77 | "skia/AutoBackendTexture.cpp", |
Alec Mouri | c0aae73 | 2021-01-12 13:32:18 -0800 | [diff] [blame] | 78 | "skia/ColorSpaces.cpp", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 79 | "skia/SkiaRenderEngine.cpp", |
| 80 | "skia/SkiaGLRenderEngine.cpp", |
Ana Krulec | 70d15b1b | 2020-12-01 10:05:15 -0800 | [diff] [blame] | 81 | "skia/debug/CaptureTimer.cpp", |
| 82 | "skia/debug/CommonPool.cpp", |
| 83 | "skia/debug/SkiaCapture.cpp", |
Lucas Dupin | f4cb4a0 | 2020-09-22 14:19:26 -0700 | [diff] [blame] | 84 | "skia/filters/BlurFilter.cpp", |
Alec Mouri | 029d195 | 2020-10-12 10:37:08 -0700 | [diff] [blame] | 85 | "skia/filters/LinearEffect.cpp", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 86 | ], |
| 87 | } |
| 88 | |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 89 | cc_library_static { |
| 90 | name: "librenderengine", |
| 91 | defaults: ["librenderengine_defaults"], |
| 92 | double_loadable: true, |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 93 | clang: true, |
| 94 | cflags: [ |
| 95 | "-fvisibility=hidden", |
| 96 | "-Werror=format", |
Ana Krulec | 70d15b1b | 2020-12-01 10:05:15 -0800 | [diff] [blame] | 97 | "-Wno-unused-parameter", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 98 | ], |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 99 | srcs: [ |
| 100 | ":librenderengine_sources", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 101 | ":librenderengine_gl_sources", |
Ana Krulec | 9bc9dc6 | 2020-02-26 12:16:40 -0800 | [diff] [blame] | 102 | ":librenderengine_threaded_sources", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 103 | ":librenderengine_skia_sources", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 104 | ], |
Derek Sollenberger | c8d959d | 2021-02-10 12:53:02 -0500 | [diff] [blame] | 105 | include_dirs: [ |
| 106 | "external/skia/src/gpu", |
| 107 | ], |
| 108 | whole_static_libs: ["libskia"], |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 109 | lto: { |
| 110 | thin: true, |
| 111 | }, |
| 112 | } |
Lloyd Pique | 3823e7b | 2018-10-18 16:58:10 -0700 | [diff] [blame] | 113 | |
| 114 | cc_library_static { |
| 115 | name: "librenderengine_mocks", |
| 116 | defaults: ["librenderengine_defaults"], |
| 117 | srcs: [ |
| 118 | "mock/Framebuffer.cpp", |
| 119 | "mock/Image.cpp", |
| 120 | "mock/RenderEngine.cpp", |
| 121 | ], |
| 122 | static_libs: [ |
| 123 | "libgtest", |
| 124 | "libgmock", |
| 125 | ], |
| 126 | local_include_dirs: ["include"], |
| 127 | export_include_dirs: ["include"], |
| 128 | } |