152d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project#
252d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# Copyright (C) 2008 The Android Open Source Project
352d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project#
452d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# Licensed under the Apache License, Version 2.0 (the "License");
552d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# you may not use this file except in compliance with the License.
652d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# You may obtain a copy of the License at
752d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project#
852d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project#      http://www.apache.org/licenses/LICENSE-2.0
952d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project#
1052d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# Unless required by applicable law or agreed to in writing, software
1152d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# distributed under the License is distributed on an "AS IS" BASIS,
1252d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1352d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# See the License for the specific language governing permissions and
1452d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# limitations under the License.
1552d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project#
1652d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project
1752d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# This makefile supplies the rules for building a library of JNI code for
1852d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# use by our example of how to bundle a shared library with an APK.
1952d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project
2052d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source ProjectLOCAL_PATH:= $(call my-dir)
2152d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Projectinclude $(CLEAR_VARS)
2252d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project
2352d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source ProjectLOCAL_MODULE_TAGS := samples
2452d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project
2552d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# This is the target being built.
2652d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source ProjectLOCAL_MODULE:= libsimplejni
2752d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project
2852d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project
2952d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# All of the source files that we will compile.
3052d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source ProjectLOCAL_SRC_FILES:= \
3152d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project  native.cpp
3252d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project
3352d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# All of the shared libraries we link against.
3452d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source ProjectLOCAL_SHARED_LIBRARIES := \
3552d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project	libutils
3652d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project
3752d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# No static libraries.
3852d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source ProjectLOCAL_STATIC_LIBRARIES :=
3952d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project
4052d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# Also need the JNI headers.
4152d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source ProjectLOCAL_C_INCLUDES += \
4252d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project	$(JNI_H_INCLUDE)
4352d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project
4452d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project# No special compiler flags.
4552d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source ProjectLOCAL_CFLAGS +=
4652d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Project
4752d4c30ca52320ec92d1d1ddc8db3f07f69c4f98The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY)
48