Android.mk 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #########################################################################
  2. # OpenGL ES JNI sample
  3. # This makefile builds both an activity and a shared library.
  4. #########################################################################
  5. TOP_LOCAL_PATH:= $(call my-dir)
  6. # Build activity
  7. LOCAL_PATH:= $(call my-dir)
  8. include $(CLEAR_VARS)
  9. LOCAL_MODULE_TAGS := optional
  10. LOCAL_SRC_FILES := $(call all-subdir-java-files)
  11. LOCAL_PACKAGE_NAME := GL2JNI
  12. LOCAL_JNI_SHARED_LIBRARIES := libgl2jni
  13. include $(BUILD_PACKAGE)
  14. #########################################################################
  15. # Build JNI Shared Library
  16. #########################################################################
  17. LOCAL_PATH:= $(LOCAL_PATH)/jni
  18. include $(CLEAR_VARS)
  19. # Optional tag would mean it doesn't get installed by default
  20. LOCAL_MODULE_TAGS := optional
  21. LOCAL_CFLAGS := -Werror -Wno-error=unused-parameter
  22. LOCAL_SRC_FILES:= \
  23. gl_code.cpp
  24. LOCAL_SHARED_LIBRARIES := \
  25. libutils \
  26. liblog \
  27. libEGL \
  28. libGLESv2
  29. LOCAL_MODULE := libgl2jni
  30. include $(BUILD_SHARED_LIBRARY)