blob: 13752f21d48605e9df4c898a9320783d4bbbb53e [file] [log] [blame]
Peiyong Lincbc184f2018-08-22 13:24:10 -07001// TODO(b/112585051) Add to VNDK once moved to libs/
2cc_defaults {
3 name: "renderengine_defaults",
4 cflags: [
5 "-DLOG_TAG=\"RenderEngine\"",
6 "-Wall",
7 "-Werror",
8 "-Wthread-safety",
9 "-Wunused",
10 "-Wunreachable-code",
11 ],
12 cppflags: ["-std=c++1z"],
13}
14
15cc_defaults {
16 name: "librenderengine_defaults",
17 defaults: ["renderengine_defaults"],
18 cflags: [
19 "-DGL_GLEXT_PROTOTYPES",
20 "-DEGL_EGLEXT_PROTOTYPES",
21 ],
22 shared_libs: [
23 "android.hardware.configstore-utils",
24 "android.hardware.configstore@1.0",
25 "android.hardware.configstore@1.1",
26 "android.hardware.configstore@1.2",
27 "libcutils",
28 "libEGL",
29 "libGLESv1_CM",
30 "libGLESv2",
31 "libgui",
32 "liblog",
33 "libui",
34 "libutils",
35 ],
36 local_include_dirs: ["include"],
37 export_include_dirs: ["include"],
38}
39
40filegroup {
41 name: "librenderengine_sources",
42 srcs: [
43 "Description.cpp",
44 "GLES20RenderEngine.cpp",
45 "GLExtensions.cpp",
46 "Image.cpp",
47 "Mesh.cpp",
48 "Program.cpp",
49 "ProgramCache.cpp",
50 "RenderEngine.cpp",
51 "Surface.cpp",
52 "Texture.cpp",
53 ],
54}
55
56cc_library_static {
57 name: "librenderengine",
58 defaults: ["librenderengine_defaults"],
59 double_loadable: true,
60
61 clang: true,
62 cflags: [
63 "-fvisibility=hidden",
64 "-Werror=format",
65 ],
66 cppflags: [
67 "-fwhole-program-vtables", // requires ThinLTO
68 ],
69 srcs: [
70 ":librenderengine_sources",
71 ],
72 lto: {
73 thin: true,
74 },
75}