Home | History | Annotate | Download | only in gl2_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 := GL2JNI
     17 
     18 LOCAL_JNI_SHARED_LIBRARIES := libgl2jni
     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 -Wno-error=unused-parameter
     34 
     35 LOCAL_SRC_FILES:= \
     36   gl_code.cpp
     37 
     38 LOCAL_SHARED_LIBRARIES := \
     39 	libutils \
     40 	liblog \
     41 	libEGL \
     42 	libGLESv2
     43 
     44 LOCAL_MODULE := libgl2jni
     45 
     46 
     47 
     48 include $(BUILD_SHARED_LIBRARY)
     49