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# dexdump, similar in purpose to objdump. 17# 18LOCAL_PATH:= $(call my-dir) 19 20dexdump_src_files := DexDump.cpp 21dexdump_c_includes := dalvik 22 23dexdump_static_libraries_sdk := \ 24 libdex \ 25 libbase 26 27dexdump_static_libraries := \ 28 $(dexdump_static_libraries_sdk) \ 29 libutils \ 30 liblog 31 32## 33## 34## Build the device command line tool dexdump 35## 36## 37ifneq ($(SDK_ONLY),true) # SDK_only doesn't need device version 38 39include $(CLEAR_VARS) 40LOCAL_MODULE := dexdump 41LOCAL_SRC_FILES := $(dexdump_src_files) 42LOCAL_C_INCLUDES := $(dexdump_c_includes) 43LOCAL_SHARED_LIBRARIES := libz liblog libutils 44LOCAL_STATIC_LIBRARIES := $(dexdump_static_libraries_sdk) 45LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 46LOCAL_MODULE_TAGS := optional 47LOCAL_LDLIBS += 48LOCAL_32_BIT_ONLY := true 49LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 50include $(BUILD_EXECUTABLE) 51 52endif # !SDK_ONLY 53 54 55## 56## 57## Build the host command line tool dexdump 58## 59## 60include $(CLEAR_VARS) 61LOCAL_MODULE := dexdump 62LOCAL_MODULE_TAGS := optional 63LOCAL_SRC_FILES := $(dexdump_src_files) 64LOCAL_C_INCLUDES := $(dexdump_c_includes) 65LOCAL_STATIC_LIBRARIES := $(dexdump_static_libraries) 66ifneq ($(strip $(USE_MINGW)),) 67LOCAL_STATIC_LIBRARIES += libz 68else 69LOCAL_LDLIBS += -lpthread -lz 70endif 71# TODO: Move dexdump from libdex to libart and lose the 32-bit limitation. 72LOCAL_32_BIT_ONLY := true 73LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 74include $(BUILD_HOST_EXECUTABLE) 75