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 libcore
30 # need to be mentioned here as well.
31 # TODO: fix this requirement
46 # Build for the target (device).
51 LOCAL_SRC_FILES := $(src_files)
52 LOCAL_C_INCLUDES := $(c_includes)
53 LOCAL_STATIC_LIBRARIES := $(static_libraries)
54 LOCAL_SHARED_LIBRARIES := $(shared_libraries) libcutils libexpat liblog libstlport libz
55 LOCAL_MODULE_TAGS := optional
56 LOCAL_MODULE := libnativehelper
58 include $(BUILD_SHARED_LIBRARY)
65 ifeq ($(WITH_HOST_DALVIK),true)
69 LOCAL_SRC_FILES := $(src_files)
70 LOCAL_C_INCLUDES := $(c_includes)
71 LOCAL_WHOLE_STATIC_LIBRARIES := $(static_libraries:%=%-host)
73 ifeq ($(HOST_OS)-$(HOST_ARCH),darwin-x86)
74 # OSX has a lot of libraries built in, which we don't have to
75 # bother building; just include them on the ld line.
76 LOCAL_LDLIBS := -lexpat -lssl -lz -lcrypto -licucore
78 LOCAL_SHARED_LIBRARIES := $(shared_libraries)
79 LOCAL_STATIC_LIBRARIES := libcutils libexpat liblog libz
82 LOCAL_MODULE_TAGS := optional
83 LOCAL_MODULE := libnativehelper
84 include $(BUILD_HOST_STATIC_LIBRARY)