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