blob: 11ba0a37d38ea7c64bbe637a70921bea8fc77b4c [file] [log] [blame]
Dan Bornstein3f30fc02009-07-21 16:08:39 -07001# Copyright (C) 2009 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.
The Android Open Source Project7f844dd2009-03-03 19:28:47 -080014
Dan Bornstein3f30fc02009-07-21 16:08:39 -070015
16LOCAL_PATH := $(call my-dir)
17
Elliott Hughes73d3c2e2012-05-03 17:06:04 -070018local_src_files := \
Brian Carlstromdd8af232012-05-13 23:56:07 -070019 JNIHelp.cpp \
20 JniConstants.cpp \
21 toStringArray.cpp
Dan Bornstein3f30fc02009-07-21 16:08:39 -070022
23
24#
25# Build for the target (device).
26#
27
28include $(CLEAR_VARS)
Elliott Hughes73d3c2e2012-05-03 17:06:04 -070029LOCAL_SRC_FILES := $(local_src_files)
30LOCAL_SHARED_LIBRARIES := liblog
Jesse Wilson51c0f5b2010-09-16 15:56:25 -070031LOCAL_MODULE_TAGS := optional
The Android Open Source Project7f844dd2009-03-03 19:28:47 -080032LOCAL_MODULE := libnativehelper
33
Brian Carlstromdd8af232012-05-13 23:56:07 -070034LOCAL_C_INCLUDES := external/stlport/stlport bionic/ bionic/libstdc++/include libcore/include
Elliott Hughes73d3c2e2012-05-03 17:06:04 -070035LOCAL_SHARED_LIBRARIES += libstlport
36
The Android Open Source Project7f844dd2009-03-03 19:28:47 -080037include $(BUILD_SHARED_LIBRARY)
Dan Bornstein3f30fc02009-07-21 16:08:39 -070038
39
40#
41# Build for the host.
42#
43
Elliott Hughes73d3c2e2012-05-03 17:06:04 -070044include $(CLEAR_VARS)
45LOCAL_MODULE := libnativehelper
46LOCAL_MODULE_TAGS := optional
47LOCAL_SRC_FILES := $(local_src_files)
Brian Carlstromdd8af232012-05-13 23:56:07 -070048LOCAL_C_INCLUDES := libcore/include
Elliott Hughes73d3c2e2012-05-03 17:06:04 -070049LOCAL_SHARED_LIBRARIES := liblog
50include $(BUILD_HOST_SHARED_LIBRARY)