1 # Copyright (C) 2009 The Android Open Source Project
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 LOCAL_PATH := $(call my-dir)
19 # Common definitions for host and device.
29 # Any shared/static libs required by libjavacore
30 # need to be mentioned here as well.
31 # TODO: fix this requirement
50 # Build for the target (device).
55 LOCAL_SRC_FILES := $(src_files)
56 LOCAL_C_INCLUDES := $(c_includes)
57 LOCAL_STATIC_LIBRARIES := $(static_libraries)
58 LOCAL_SHARED_LIBRARIES := $(shared_libraries)
60 # liblog and libcutils are shared for target.
61 LOCAL_SHARED_LIBRARIES += \
64 LOCAL_MODULE := libnativehelper
66 include $(BUILD_SHARED_LIBRARY)
73 ifeq ($(WITH_HOST_DALVIK),true)
77 LOCAL_SRC_FILES := $(src_files)
78 LOCAL_C_INCLUDES := $(c_includes)
79 LOCAL_WHOLE_STATIC_LIBRARIES := $(static_libraries:%=%-host)
81 ifeq ($(HOST_OS)-$(HOST_ARCH),darwin-x86)
82 # OSX has a lot of libraries built in, which we don't have to
83 # bother building; just include them on the ld line.
84 LOCAL_LDLIBS := -lexpat -lssl -lz -lcrypto -licucore -lsqlite3
85 LOCAL_WHOLE_STATIC_LIBRARIES += libutils
87 LOCAL_SHARED_LIBRARIES := $(shared_libraries)
90 # liblog and libcutils are static for host.
91 LOCAL_STATIC_LIBRARIES += \
94 LOCAL_MODULE := libnativehelper-host
96 include $(BUILD_HOST_STATIC_LIBRARY)