blob: f5bf015bad4ae025c0c4d4a0e10339b1f326628b [file] [log] [blame]
Dan Willemsen222c70f2019-02-10 16:42:07 -08001//
2// Build the software OpenGL ES library
3//
4
5cc_defaults {
6 name: "libGLES_android_defaults",
7
8 cflags: [
9 "-DLOG_TAG=\"libagl\"",
10 "-DGL_GLEXT_PROTOTYPES",
11 "-DEGL_EGLEXT_PROTOTYPES",
12 "-fvisibility=hidden",
13 "-Wall",
14 "-Werror",
15 ],
16
17 shared_libs: [
18 "libcutils",
19 "libhardware",
20 "libutils",
21 "liblog",
22 "libpixelflinger",
23 "libETC1",
24 "libui",
25 "libnativewindow",
26 ],
27
Christopher Ferris70d8ca72019-09-26 08:27:25 -070028 header_libs: [
29 "bionic_libc_platform_headers",
30 ],
Dan Willemsen222c70f2019-02-10 16:42:07 -080031
32 arch: {
33 arm: {
34 cflags: ["-fstrict-aliasing"],
35 },
36
37 mips: {
38 cflags: [
39 "-fstrict-aliasing",
40 // The graphics code can generate division by zero
41 "-mno-check-zero-division",
42 ],
43 },
44 },
45}
46
47cc_library_shared {
48 name: "libGLES_android",
49 defaults: ["libGLES_android_defaults"],
50
51 whole_static_libs: ["libGLES_android_arm"],
52
53 srcs: [
54 "egl.cpp",
55 "state.cpp",
56 "texture.cpp",
57 "Tokenizer.cpp",
58 "TokenManager.cpp",
59 "TextureObjectManager.cpp",
60 "BufferObjectManager.cpp",
61 ],
62
63 arch: {
64 arm: {
65 srcs: [
66 "fixed_asm.S",
67 "iterators.S",
68 ],
69 },
70
71 mips: {
72 rev6: {
73 srcs: ["arch-mips/fixed_asm.S"],
74 },
75 },
76 },
77
78 relative_install_path: "egl",
79}
80
81cc_library_static {
82 name: "libGLES_android_arm",
83 defaults: ["libGLES_android_defaults"],
84
85 srcs: [
86 "array.cpp",
87 "fp.cpp",
88 "light.cpp",
89 "matrix.cpp",
90 "mipmap.cpp",
91 "primitives.cpp",
92 "vertex.cpp",
93 ],
94
95 arch: {
96 arm: {
97 instruction_set: "arm",
98 },
99 },
100}