Dan Bornstein | 3f30fc0 | 2009-07-21 16:08:39 -0700 | [diff] [blame] | 1 | # 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 Project | 7f844dd | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 14 | |
Dan Bornstein | 3f30fc0 | 2009-07-21 16:08:39 -0700 | [diff] [blame] | 15 | |
| 16 | LOCAL_PATH := $(call my-dir) |
| 17 | |
Elliott Hughes | 73d3c2e | 2012-05-03 17:06:04 -0700 | [diff] [blame] | 18 | local_src_files := \ |
Brian Carlstrom | dd8af23 | 2012-05-13 23:56:07 -0700 | [diff] [blame] | 19 | JNIHelp.cpp \ |
| 20 | JniConstants.cpp \ |
| 21 | toStringArray.cpp |
Dan Bornstein | 3f30fc0 | 2009-07-21 16:08:39 -0700 | [diff] [blame] | 22 | |
| 23 | |
| 24 | # |
| 25 | # Build for the target (device). |
| 26 | # |
| 27 | |
| 28 | include $(CLEAR_VARS) |
Elliott Hughes | 73d3c2e | 2012-05-03 17:06:04 -0700 | [diff] [blame] | 29 | LOCAL_SRC_FILES := $(local_src_files) |
| 30 | LOCAL_SHARED_LIBRARIES := liblog |
Jesse Wilson | 51c0f5b | 2010-09-16 15:56:25 -0700 | [diff] [blame] | 31 | LOCAL_MODULE_TAGS := optional |
The Android Open Source Project | 7f844dd | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 32 | LOCAL_MODULE := libnativehelper |
| 33 | |
Brian Carlstrom | dd8af23 | 2012-05-13 23:56:07 -0700 | [diff] [blame] | 34 | LOCAL_C_INCLUDES := external/stlport/stlport bionic/ bionic/libstdc++/include libcore/include |
Elliott Hughes | 73d3c2e | 2012-05-03 17:06:04 -0700 | [diff] [blame] | 35 | LOCAL_SHARED_LIBRARIES += libstlport |
| 36 | |
The Android Open Source Project | 7f844dd | 2009-03-03 19:28:47 -0800 | [diff] [blame] | 37 | include $(BUILD_SHARED_LIBRARY) |
Dan Bornstein | 3f30fc0 | 2009-07-21 16:08:39 -0700 | [diff] [blame] | 38 | |
| 39 | |
| 40 | # |
| 41 | # Build for the host. |
| 42 | # |
| 43 | |
Elliott Hughes | 73d3c2e | 2012-05-03 17:06:04 -0700 | [diff] [blame] | 44 | include $(CLEAR_VARS) |
| 45 | LOCAL_MODULE := libnativehelper |
| 46 | LOCAL_MODULE_TAGS := optional |
| 47 | LOCAL_SRC_FILES := $(local_src_files) |
Brian Carlstrom | dd8af23 | 2012-05-13 23:56:07 -0700 | [diff] [blame] | 48 | LOCAL_C_INCLUDES := libcore/include |
Elliott Hughes | 73d3c2e | 2012-05-03 17:06:04 -0700 | [diff] [blame] | 49 | LOCAL_SHARED_LIBRARIES := liblog |
| 50 | include $(BUILD_HOST_SHARED_LIBRARY) |