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 := \ 21 DexDump.cpp 22 23dexdump_c_includes := \ 24 dalvik 25 26dexdump_static_libraries := \ 27 libdex 28 29## 30## 31## Build the device command line tool dexdump 32## 33## 34ifneq ($(SDK_ONLY),true) # SDK_only doesn't need device version 35 36include $(CLEAR_VARS) 37LOCAL_MODULE := dexdump 38LOCAL_SRC_FILES := $(dexdump_src_files) 39LOCAL_C_INCLUDES := $(dexdump_c_includes) 40LOCAL_SHARED_LIBRARIES := libz liblog libutils 41LOCAL_STATIC_LIBRARIES := $(dexdump_static_libraries) 42LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) 43LOCAL_MODULE_TAGS := optional 44LOCAL_LDLIBS += 45LOCAL_32_BIT_ONLY := true 46include $(BUILD_EXECUTABLE) 47 48include $(CLEAR_VARS) 49LOCAL_MODULE := libdexdump_static 50LOCAL_SRC_FILES := $(dexdump_src_files) 51LOCAL_C_INCLUDES := $(dexdump_c_includes) 52LOCAL_STATIC_LIBRARIES := $(dexdump_static_libraries) 53LOCAL_SHARED_LIBRARIES := libutils 54LOCAL_MODULE_TAGS := optional 55LOCAL_32_BIT_ONLY := true 56include $(BUILD_STATIC_LIBRARY) 57 58endif # !SDK_ONLY 59 60 61## 62## 63## Build the host command line tool dexdump 64## 65## 66include $(CLEAR_VARS) 67LOCAL_MODULE := dexdump 68LOCAL_MODULE_TAGS := optional 69LOCAL_SRC_FILES := $(dexdump_src_files) 70LOCAL_C_INCLUDES := $(dexdump_c_includes) 71LOCAL_STATIC_LIBRARIES := $(dexdump_static_libraries) liblog libutils 72 73ifneq ($(strip $(USE_MINGW)),) 74LOCAL_STATIC_LIBRARIES += libz 75else 76LOCAL_LDLIBS += -lpthread -lz 77endif 78 79include $(BUILD_HOST_EXECUTABLE) 80