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
47 # Build for the target (device).
52 LOCAL_SRC_FILES := $(src_files)
53 LOCAL_C_INCLUDES := $(c_includes)
54 LOCAL_STATIC_LIBRARIES := $(static_libraries)
55 LOCAL_SHARED_LIBRARIES := $(shared_libraries) libcutils libexpat liblog libutils libz
57 LOCAL_MODULE := libnativehelper
59 include $(BUILD_SHARED_LIBRARY)
66 ifeq ($(WITH_HOST_DALVIK),true)
70 LOCAL_SRC_FILES := $(src_files)
71 LOCAL_C_INCLUDES := $(c_includes)
72 LOCAL_WHOLE_STATIC_LIBRARIES := $(static_libraries:%=%-host)
74 ifeq ($(HOST_OS)-$(HOST_ARCH),darwin-x86)
75 # OSX has a lot of libraries built in, which we don't have to
76 # bother building; just include them on the ld line.
77 LOCAL_LDLIBS := -lexpat -lssl -lz -lcrypto -licucore -lsqlite3
78 LOCAL_WHOLE_STATIC_LIBRARIES += libutils
80 LOCAL_SHARED_LIBRARIES := $(shared_libraries)
81 LOCAL_STATIC_LIBRARIES := libcutils libexpat liblog libutils libz
84 LOCAL_MODULE := libnativehelper
85 include $(BUILD_HOST_STATIC_LIBRARY)