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
51 # Build for the target (device).
56 LOCAL_SRC_FILES := $(src_files)
57 LOCAL_C_INCLUDES := $(c_includes)
58 LOCAL_STATIC_LIBRARIES := $(static_libraries)
59 LOCAL_SHARED_LIBRARIES := $(shared_libraries)
61 # liblog and libcutils are shared for target.
62 LOCAL_SHARED_LIBRARIES += \
65 LOCAL_MODULE := libnativehelper
67 include $(BUILD_SHARED_LIBRARY)
74 ifeq ($(WITH_HOST_DALVIK),true)
78 LOCAL_SRC_FILES := $(src_files)
79 LOCAL_C_INCLUDES := $(c_includes)
80 LOCAL_WHOLE_STATIC_LIBRARIES := $(static_libraries:%=%-host)
82 ifeq ($(HOST_OS)-$(HOST_ARCH),darwin-x86)
83 # OSX has a lot of libraries built in, which we don't have to
84 # bother building; just include them on the ld line.
85 LOCAL_LDLIBS := -lexpat -lssl -lz -lcrypto -licucore -lsqlite3
86 LOCAL_WHOLE_STATIC_LIBRARIES += libutils
88 LOCAL_SHARED_LIBRARIES := $(shared_libraries)
91 # liblog and libcutils are static for host.
92 LOCAL_STATIC_LIBRARIES += \
95 LOCAL_MODULE := libnativehelper-host
97 include $(BUILD_HOST_STATIC_LIBRARY)