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 
     18 LOCAL_JNI_SHARED_LIBRARIES := libgljni
     19 
     20 include $(BUILD_PACKAGE)
     21 
     22 #########################################################################
     23 # Build JNI Shared Library
     24 #########################################################################
     25 
     26 LOCAL_PATH:= $(LOCAL_PATH)/jni
     27 
     28 include $(CLEAR_VARS)
     29 
     30 # Optional tag would mean it doesn't get installed by default
     31 LOCAL_MODULE_TAGS := optional
     32 
     33 LOCAL_CFLAGS := -Werror
     34 
     35 LOCAL_SRC_FILES:= \
     36   gl_code.cpp
     37 
     38 LOCAL_SHARED_LIBRARIES := \
     39 	libutils \
     40 	libEGL \
     41 	libGLESv1_CM
     42 
     43 LOCAL_MODULE := libgljni
     44 
     45 LOCAL_ARM_MODE := arm
     46 
     47 
     48 
     49 include $(BUILD_SHARED_LIBRARY)
     50