Home | History | Annotate | Download | only in gl_jni
      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 
      7 # Build activity
      8 
      9 LOCAL_PATH:= $(call my-dir)
     10 include $(CLEAR_VARS)
     11 
     12 LOCAL_MODULE_TAGS := optional
     13 
     14 LOCAL_SRC_FILES := $(call all-subdir-java-files)
     15 
     16 LOCAL_PACKAGE_NAME := GLJNI
     17 LOCAL_SDK_VERSION := current
     18 
     19 LOCAL_JNI_SHARED_LIBRARIES := libgljni
     20 
     21 include $(BUILD_PACKAGE)
     22 
     23 #########################################################################
     24 # Build JNI Shared Library
     25 #########################################################################
     26 
     27 LOCAL_PATH:= $(LOCAL_PATH)/jni
     28 
     29 include $(CLEAR_VARS)
     30 
     31 # Optional tag would mean it doesn't get installed by default
     32 LOCAL_MODULE_TAGS := optional
     33 
     34 LOCAL_CFLAGS := -Werror -Wno-error=unused-parameter
     35 
     36 LOCAL_SRC_FILES:= \
     37   gl_code.cpp
     38 
     39 LOCAL_SHARED_LIBRARIES := \
     40 	liblog \
     41 	libEGL \
     42 	libGLESv1_CM
     43 
     44 LOCAL_MODULE := libgljni
     45 
     46 LOCAL_SDK_VERSION := current
     47 
     48 LOCAL_ARM_MODE := arm
     49 
     50 
     51 
     52 include $(BUILD_SHARED_LIBRARY)
     53