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_TAGS
:= optional
45 LOCAL_MODULE
:= dalvikvm
47 include $(BUILD_EXECUTABLE
)
54 ifeq ($(WITH_HOST_DALVIK
),true
)
57 LOCAL_SRC_FILES
:= $(dalvikvm_src_files
)
58 LOCAL_C_INCLUDES
:= $(dalvikvm_c_includes
)
60 ifeq ($(HOST_OS
)-$(HOST_ARCH
),darwin-x86
)
61 # OS X comes with all these libraries, so there is no need
62 # to build any of them. Note: OpenSSL consists of libssl
64 LOCAL_LDLIBS
:= -lffi
-lssl
-lcrypto
-lz
66 LOCAL_LDLIBS
+= -ldl
-lpthread
67 LOCAL_SHARED_LIBRARIES
+= libdvm libcrypto libicuuc libicui18n libssl
70 LOCAL_MODULE_TAGS
:= optional
71 LOCAL_MODULE
:= dalvikvm
73 include $(BUILD_HOST_EXECUTABLE
)