1# Copyright (C) 2008 The Android Open Source Project 2# 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 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 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. 14 15# 16# dexopt, the DEX file optimizer. This is fully integrated with the VM, 17# so it must be linked against the full VM shared library. 18# 19LOCAL_PATH:= $(call my-dir) 20 21local_src_files := \ 22 OptMain.cpp 23 24local_c_includes := \ 25 dalvik \ 26 dalvik/libdex \ 27 dalvik/vm 28 29include $(CLEAR_VARS) 30ifeq ($(TARGET_CPU_SMP),true) 31 LOCAL_CFLAGS += -DANDROID_SMP=1 32else 33 LOCAL_CFLAGS += -DANDROID_SMP=0 34endif 35 36LOCAL_SRC_FILES := $(local_src_files) 37LOCAL_C_INCLUDES := $(local_c_includes) 38LOCAL_SHARED_LIBRARIES := libssl libdvm libcrypto libicuuc libicui18n libcutils libexpat liblog libz 39LOCAL_MODULE_TAGS := optional 40LOCAL_MODULE := dexopt 41 42LOCAL_C_INCLUDES += external/stlport/stlport bionic/ bionic/libstdc++/include 43LOCAL_SHARED_LIBRARIES += libstlport 44 45include $(BUILD_EXECUTABLE) 46 47ifeq ($(WITH_HOST_DALVIK),true) 48 include $(CLEAR_VARS) 49 LOCAL_SRC_FILES := $(local_src_files) 50 LOCAL_C_INCLUDES := $(local_c_includes) 51 LOCAL_SHARED_LIBRARIES := libssl-host libdvm libcrypto-host libicuuc-host libicui18n-host 52 LOCAL_STATIC_LIBRARIES := libcutils libexpat liblog libz 53 LOCAL_LDLIBS += -ldl -lpthread 54 LOCAL_CFLAGS += -DANDROID_SMP=1 55 LOCAL_MODULE_TAGS := optional 56 LOCAL_MODULE := dexopt 57 include $(BUILD_HOST_EXECUTABLE) 58endif 59