Android.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. LOCAL_PATH:= $(call my-dir)
  2. #
  3. # Build the software OpenGL ES library
  4. #
  5. include $(CLEAR_VARS)
  6. LOCAL_SRC_FILES:= \
  7. egl.cpp \
  8. state.cpp \
  9. texture.cpp \
  10. Tokenizer.cpp \
  11. TokenManager.cpp \
  12. TextureObjectManager.cpp \
  13. BufferObjectManager.cpp \
  14. array.cpp.arm \
  15. fp.cpp.arm \
  16. light.cpp.arm \
  17. matrix.cpp.arm \
  18. mipmap.cpp.arm \
  19. primitives.cpp.arm \
  20. vertex.cpp.arm
  21. LOCAL_CFLAGS += -DLOG_TAG=\"libagl\"
  22. LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
  23. LOCAL_CFLAGS += -fvisibility=hidden
  24. LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils liblog libpixelflinger libETC1 libui
  25. LOCAL_SRC_FILES_arm += fixed_asm.S iterators.S
  26. LOCAL_CFLAGS_arm += -fstrict-aliasing
  27. ifndef ARCH_MIPS_REV6
  28. LOCAL_SRC_FILES_mips += arch-mips/fixed_asm.S
  29. endif
  30. LOCAL_CFLAGS_mips += -fstrict-aliasing
  31. # The graphics code can generate division by zero
  32. LOCAL_CFLAGS_mips += -mno-check-zero-division
  33. # we need to access the private Bionic header <bionic_tls.h>
  34. LOCAL_C_INCLUDES += bionic/libc/private
  35. LOCAL_MODULE_RELATIVE_PATH := egl
  36. LOCAL_MODULE:= libGLES_android
  37. include $(BUILD_SHARED_LIBRARY)