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