1// 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 28 header_libs: [ 29 "bionic_libc_platform_headers", 30 ], 31 32 arch: { 33 arm: { 34 cflags: ["-fstrict-aliasing"], 35 }, 36 }, 37} 38 39cc_library_shared { 40 name: "libGLES_android", 41 defaults: ["libGLES_android_defaults"], 42 43 whole_static_libs: ["libGLES_android_arm"], 44 45 srcs: [ 46 "egl.cpp", 47 "state.cpp", 48 "texture.cpp", 49 "Tokenizer.cpp", 50 "TokenManager.cpp", 51 "TextureObjectManager.cpp", 52 "BufferObjectManager.cpp", 53 ], 54 55 arch: { 56 arm: { 57 srcs: [ 58 "fixed_asm.S", 59 "iterators.S", 60 ], 61 }, 62 }, 63 64 relative_install_path: "egl", 65} 66 67cc_library_static { 68 name: "libGLES_android_arm", 69 defaults: ["libGLES_android_defaults"], 70 71 srcs: [ 72 "array.cpp", 73 "fp.cpp", 74 "light.cpp", 75 "matrix.cpp", 76 "mipmap.cpp", 77 "primitives.cpp", 78 "vertex.cpp", 79 ], 80 81 arch: { 82 arm: { 83 instruction_set: "arm", 84 }, 85 }, 86} 87