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