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