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 | ], |
Alec Mouri | c7f6c8b | 2020-11-09 18:35:20 -0800 | [diff] [blame^] | 34 | include_dirs: [ |
| 35 | "external/skia/src/gpu", |
| 36 | ], |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 37 | whole_static_libs: ["libskia"], |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 38 | local_include_dirs: ["include"], |
| 39 | export_include_dirs: ["include"], |
| 40 | } |
| 41 | |
| 42 | filegroup { |
| 43 | name: "librenderengine_sources", |
| 44 | srcs: [ |
| 45 | "Description.cpp", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 46 | "Mesh.cpp", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 47 | "RenderEngine.cpp", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 48 | "Texture.cpp", |
| 49 | ], |
| 50 | } |
| 51 | |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 52 | filegroup { |
| 53 | name: "librenderengine_gl_sources", |
| 54 | srcs: [ |
Peiyong Lin | 7e219eb | 2018-12-03 05:40:42 -0800 | [diff] [blame] | 55 | "gl/GLESRenderEngine.cpp", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 56 | "gl/GLExtensions.cpp", |
Peiyong Lin | e5a9a7f | 2018-08-30 15:32:13 -0700 | [diff] [blame] | 57 | "gl/GLFramebuffer.cpp", |
Peiyong Lin | f1bada9 | 2018-08-29 09:39:31 -0700 | [diff] [blame] | 58 | "gl/GLImage.cpp", |
Vishnu Nair | f19544f | 2020-02-03 11:23:26 -0800 | [diff] [blame] | 59 | "gl/GLShadowTexture.cpp", |
Vishnu Nair | 16efdbf | 2019-12-10 11:55:42 -0800 | [diff] [blame] | 60 | "gl/GLShadowVertexGenerator.cpp", |
| 61 | "gl/GLSkiaShadowPort.cpp", |
Lucas Dupin | ad66337 | 2020-03-19 12:44:36 -0700 | [diff] [blame] | 62 | "gl/GLVertexBuffer.cpp", |
Alec Mouri | 16a9940 | 2019-07-29 16:37:30 -0700 | [diff] [blame] | 63 | "gl/ImageManager.cpp", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 64 | "gl/Program.cpp", |
| 65 | "gl/ProgramCache.cpp", |
Lucas Dupin | 19c8f0e | 2019-11-25 17:55:44 -0800 | [diff] [blame] | 66 | "gl/filters/BlurFilter.cpp", |
Lucas Dupin | 19c8f0e | 2019-11-25 17:55:44 -0800 | [diff] [blame] | 67 | "gl/filters/GenericProgram.cpp", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 68 | ], |
| 69 | } |
| 70 | |
Ana Krulec | 9bc9dc6 | 2020-02-26 12:16:40 -0800 | [diff] [blame] | 71 | filegroup { |
| 72 | name: "librenderengine_threaded_sources", |
| 73 | srcs: [ |
| 74 | "threaded/RenderEngineThreaded.cpp", |
| 75 | ], |
| 76 | } |
| 77 | |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 78 | filegroup { |
| 79 | name: "librenderengine_skia_sources", |
| 80 | srcs: [ |
Alec Mouri | c7f6c8b | 2020-11-09 18:35:20 -0800 | [diff] [blame^] | 81 | "skia/AutoBackendTexture.cpp", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 82 | "skia/SkiaRenderEngine.cpp", |
| 83 | "skia/SkiaGLRenderEngine.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", |
| 97 | ], |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 98 | srcs: [ |
| 99 | ":librenderengine_sources", |
Peiyong Lin | 833074a | 2018-08-28 11:53:54 -0700 | [diff] [blame] | 100 | ":librenderengine_gl_sources", |
Ana Krulec | 9bc9dc6 | 2020-02-26 12:16:40 -0800 | [diff] [blame] | 101 | ":librenderengine_threaded_sources", |
John Reck | 67b1e2b | 2020-08-26 13:17:24 -0700 | [diff] [blame] | 102 | ":librenderengine_skia_sources", |
Peiyong Lin | cbc184f | 2018-08-22 13:24:10 -0700 | [diff] [blame] | 103 | ], |
| 104 | lto: { |
| 105 | thin: true, |
| 106 | }, |
| 107 | } |
Lloyd Pique | 3823e7b | 2018-10-18 16:58:10 -0700 | [diff] [blame] | 108 | |
| 109 | cc_library_static { |
| 110 | name: "librenderengine_mocks", |
| 111 | defaults: ["librenderengine_defaults"], |
| 112 | srcs: [ |
| 113 | "mock/Framebuffer.cpp", |
| 114 | "mock/Image.cpp", |
| 115 | "mock/RenderEngine.cpp", |
| 116 | ], |
| 117 | static_libs: [ |
| 118 | "libgtest", |
| 119 | "libgmock", |
| 120 | ], |
| 121 | local_include_dirs: ["include"], |
| 122 | export_include_dirs: ["include"], |
| 123 | } |