Home | History | Annotate | Download | only in native-activity
      1 # Copyright (C) 2010 The Android Open Source Project
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
      4 # you may not use this file except in compliance with the License.
      5 # You may obtain a copy of the License at
      6 #
      7 #      http://www.apache.org/licenses/LICENSE-2.0
      8 #
      9 # Unless required by applicable law or agreed to in writing, software
     10 # distributed under the License is distributed on an "AS IS" BASIS,
     11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
     14 
     15 LOCAL_PATH:= $(call my-dir)
     16 
     17 ##################################################################
     18 #
     19 # NOTE: This is a helper to build this sample code using the
     20 # Android platform build system, inside of its source tree.  This
     21 # is NOT part of the NDK and is not for use with the NDK build
     22 # system.
     23 #
     24 ##################################################################
     25 
     26 # ----------------------------------------------------------------
     27 # Native code.
     28 
     29 include $(CLEAR_VARS)
     30 
     31 LOCAL_MODULE_TAGS := samples
     32 
     33 LOCAL_C_INCLUDES += \
     34 		$(TOPDIR)frameworks/base/native/include \
     35 		$(TOPDIR)frameworks/base/opengl/include \
     36 		$(TOPDIR)development/ndk/sources/android/native_app_glue
     37 
     38 LOCAL_SRC_FILES := \
     39 	jni/main.c \
     40 	../../../../sources/android/native_app_glue/android_native_app_glue.c
     41 
     42 LOCAL_NDK_VERSION := 4
     43 LOCAL_SDK_VERSION := 8
     44 
     45 LOCAL_SHARED_LIBRARIES := liblog libandroid libEGL libGLESv1_CM
     46 
     47 
     48 
     49 LOCAL_MODULE := libnative-activity
     50 
     51 include $(BUILD_SHARED_LIBRARY)
     52 
     53 # ----------------------------------------------------------------
     54 # Packaging .ap (and Java code if there was some)
     55 
     56 include $(CLEAR_VARS)
     57 
     58 LOCAL_MODULE_TAGS := samples
     59 
     60 LOCAL_SRC_FILES := $(call all-java-files-under, src)
     61 
     62 LOCAL_PACKAGE_NAME := NativeActivity
     63 
     64 LOCAL_CERTIFICATE := shared
     65 
     66 LOCAL_JNI_SHARED_LIBRARIES := libnative-activity
     67 
     68 LOCAL_SDK_VERSION := current
     69 
     70 include $(BUILD_PACKAGE)
     71