• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15LOCAL_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
29include $(CLEAR_VARS)
30
31LOCAL_MODULE_TAGS := samples
32
33LOCAL_C_INCLUDES += \
34		$(TOPDIR)frameworks/base/native/include \
35		$(TOPDIR)frameworks/base/opengl/include \
36		$(TOPDIR)development/ndk/sources/android/native_app_glue
37
38LOCAL_SRC_FILES := \
39	jni/main.c \
40	../../../../sources/android/native_app_glue/android_native_app_glue.c
41
42LOCAL_SDK_VERSION := 8
43
44LOCAL_SHARED_LIBRARIES := liblog libandroid libEGL libGLESv1_CM
45
46
47
48LOCAL_MODULE := libnative-activity
49
50include $(BUILD_SHARED_LIBRARY)
51
52# ----------------------------------------------------------------
53# Packaging .ap (and Java code if there was some)
54
55include $(CLEAR_VARS)
56
57LOCAL_MODULE_TAGS := samples
58
59LOCAL_SRC_FILES := $(call all-java-files-under, src)
60
61LOCAL_PACKAGE_NAME := NativeActivity
62
63LOCAL_CERTIFICATE := shared
64
65LOCAL_JNI_SHARED_LIBRARIES := libnative-activity
66
67LOCAL_SDK_VERSION := current
68
69include $(BUILD_PACKAGE)
70