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_SDK_VERSION := 8
     43 
     44 LOCAL_SHARED_LIBRARIES := liblog libandroid libEGL libGLESv1_CM
     45 
     46 
     47 
     48 LOCAL_MODULE := libnative-activity
     49 
     50 include $(BUILD_SHARED_LIBRARY)
     51 
     52 # ----------------------------------------------------------------
     53 # Packaging .ap (and Java code if there was some)
     54 
     55 include $(CLEAR_VARS)
     56 
     57 LOCAL_MODULE_TAGS := samples
     58 
     59 LOCAL_SRC_FILES := $(call all-java-files-under, src)
     60 
     61 LOCAL_PACKAGE_NAME := NativeActivity
     62 
     63 LOCAL_CERTIFICATE := shared
     64 
     65 LOCAL_JNI_SHARED_LIBRARIES := libnative-activity
     66 
     67 LOCAL_SDK_VERSION := current
     68 
     69 include $(BUILD_PACKAGE)
     70