1 # Copyright (C) 2008 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)
22 dalvikvm_src_files := \
25 dalvikvm_c_includes := \
31 # Build for the target (device).
36 LOCAL_SRC_FILES := $(dalvikvm_src_files)
37 LOCAL_C_INCLUDES := $(dalvikvm_c_includes)
39 LOCAL_SHARED_LIBRARIES := \
44 LOCAL_MODULE := dalvikvm
46 include $(BUILD_EXECUTABLE)
53 ifeq ($(WITH_HOST_DALVIK),true)
56 LOCAL_SRC_FILES := $(dalvikvm_src_files)
57 LOCAL_C_INCLUDES := $(dalvikvm_c_includes)
59 ifeq ($(HOST_OS)-$(HOST_ARCH),darwin-x86)
60 # OS X comes with all these libraries, so there is no need
61 # to build any of them. Note: OpenSSL consists of libssl
63 LOCAL_LDLIBS := -lffi -lssl -lcrypto -lz -lsqlite3
65 LOCAL_LDLIBS += -ldl -lpthread
66 LOCAL_SHARED_LIBRARIES += libdvm libcrypto libicuuc libicui18n libssl
67 # LOCAL_STATIC_LIBRARIES += libcutils liblog libdex libexpat libnativehelper libutils libz
70 LOCAL_MODULE := dalvikvm
72 include $(BUILD_HOST_EXECUTABLE)