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 # dexdump, similar in purpose to objdump.
18 LOCAL_PATH:= $(call my-dir)
20 dexdump_src_files := \
23 dexdump_c_includes := \
27 dexdump_shared_libraries :=
29 dexdump_static_libraries := \
34 ## Build the device command line tool dexdump
37 ifneq ($(SDK_ONLY),true) # SDK_only doesn't need device version
40 LOCAL_MODULE := dexdump
41 LOCAL_SRC_FILES := $(dexdump_src_files)
42 LOCAL_C_INCLUDES := $(dexdump_c_includes)
43 LOCAL_SHARED_LIBRARIES := $(dexdump_shared_libraries) libz liblog
44 LOCAL_STATIC_LIBRARIES := $(dexdump_static_libraries)
45 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
46 LOCAL_MODULE_TAGS := optional
48 include $(BUILD_EXECUTABLE)
55 ## Build the host command line tool dexdump
58 ifneq ($(TARGET_SIMULATOR),true) # not 64 bit clean
60 LOCAL_MODULE := dexdump
61 LOCAL_MODULE_TAGS := optional
62 LOCAL_SRC_FILES := $(dexdump_src_files)
63 LOCAL_C_INCLUDES := $(dexdump_c_includes)
64 LOCAL_SHARED_LIBRARIES := $(dexdump_shared_libraries)
65 LOCAL_STATIC_LIBRARIES := $(dexdump_static_libraries) liblog
67 ifneq ($(strip $(USE_MINGW)),)
68 LOCAL_STATIC_LIBRARIES += libz
70 LOCAL_LDLIBS += -lpthread -lz
73 include $(BUILD_HOST_EXECUTABLE)
74 endif # !TARGET_SIMULATOR