修改拨动开关
[mytuuics.git] / dalvik / dalvikvm / Android.mk
blob734f6f55b4e188ebcc7b73f3d28432a81bebe333
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)
19 # Common definitions.
22 dalvikvm_src_files := \
23 Main.cpp
25 dalvikvm_c_includes := \
26 $(JNI_H_INCLUDE) \
27 dalvik/include
31 # Build for the target (device).
34 include $(CLEAR_VARS)
36 LOCAL_SRC_FILES := $(dalvikvm_src_files)
37 LOCAL_C_INCLUDES := $(dalvikvm_c_includes)
39 LOCAL_SHARED_LIBRARIES := \
40 libdvm \
41 libssl \
42 libz
44 LOCAL_MODULE_TAGS := optional
45 LOCAL_MODULE := dalvikvm
47 include $(BUILD_EXECUTABLE)
51 # Build for the host.
54 ifeq ($(WITH_HOST_DALVIK),true)
56 include $(CLEAR_VARS)
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
63 # and libcrypto.
64 LOCAL_LDLIBS := -lffi -lssl -lcrypto -lz
65 else
66 LOCAL_LDLIBS += -ldl -lpthread
67 LOCAL_SHARED_LIBRARIES += libdvm libcrypto libicuuc libicui18n libssl
68 endif
70 LOCAL_MODULE_TAGS := optional
71 LOCAL_MODULE := dalvikvm
73 include $(BUILD_HOST_EXECUTABLE)
75 endif