blob: 026067b9f6d53dc11614c85617942c790b2964c9 [file] [log] [blame]
The Android Open Source Projectf6c38712009-03-03 19:28:47 -08001# 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 := \
Andy McFaddenc6b25c72010-06-22 11:01:20 -070021 DexDump.c
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080022
23dexdump_c_includes := \
24 dalvik \
25 $(JNI_H_INCLUDE)
26
27dexdump_shared_libraries :=
28
29dexdump_static_libraries := \
30 libdex
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 := $(dexdump_shared_libraries) libz liblog
44LOCAL_STATIC_LIBRARIES := $(dexdump_static_libraries)
45LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
The Android Open Source Projectf4112492009-03-09 11:52:11 -070046LOCAL_MODULE_TAGS := debug
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080047LOCAL_LDLIBS +=
48include $(BUILD_EXECUTABLE)
49
50endif # !SDK_ONLY
51
52
53##
54##
55## Build the host command line tool dexdump
56##
57##
58ifneq ($(TARGET_SIMULATOR),true) # not 64 bit clean
59include $(CLEAR_VARS)
60LOCAL_MODULE := dexdump
61LOCAL_SRC_FILES := $(dexdump_src_files)
62LOCAL_C_INCLUDES := $(dexdump_c_includes)
63LOCAL_SHARED_LIBRARIES := $(dexdump_shared_libraries)
64LOCAL_STATIC_LIBRARIES := $(dexdump_static_libraries) liblog
Raphaeld9b87a92010-04-13 15:19:21 -070065
66ifneq ($(strip $(USE_MINGW)),)
67LOCAL_STATIC_LIBRARIES += libz
68else
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080069LOCAL_LDLIBS += -lpthread -lz
Raphaeld9b87a92010-04-13 15:19:21 -070070endif
71
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080072include $(BUILD_HOST_EXECUTABLE)
73endif # !TARGET_SIMULATOR