Aart Bik | 69ae54a | 2015-07-01 14:52:26 -0700 | [diff] [blame] | 1 | # Copyright (C) 2015 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 | # TODO(ajcbik): Art-i-fy this makefile |
| 16 | |
Aart Bik | 22c26f5 | 2015-07-08 21:20:13 +0000 | [diff] [blame] | 17 | # TODO(ajcbik): rename dexdump2 into dexdump when Dalvik version is removed |
| 18 | |
Aart Bik | 69ae54a | 2015-07-01 14:52:26 -0700 | [diff] [blame] | 19 | LOCAL_PATH:= $(call my-dir) |
| 20 | |
| 21 | dexdump_src_files := dexdump_main.cc dexdump.cc |
| 22 | dexdump_c_includes := art/runtime |
| 23 | dexdump_libraries := libart |
| 24 | |
| 25 | ## |
| 26 | ## Build the device command line tool dexdump. |
| 27 | ## |
| 28 | |
| 29 | ifneq ($(SDK_ONLY),true) # SDK_only doesn't need device version |
| 30 | include $(CLEAR_VARS) |
| 31 | LOCAL_CPP_EXTENSION := cc |
| 32 | LOCAL_SRC_FILES := $(dexdump_src_files) |
| 33 | LOCAL_C_INCLUDES := $(dexdump_c_includes) |
| 34 | LOCAL_CFLAGS += -Wall |
| 35 | LOCAL_SHARED_LIBRARIES += $(dexdump_libraries) |
Aart Bik | 22c26f5 | 2015-07-08 21:20:13 +0000 | [diff] [blame] | 36 | LOCAL_MODULE := dexdump2 |
Aart Bik | 69ae54a | 2015-07-01 14:52:26 -0700 | [diff] [blame] | 37 | LOCAL_MODULE_TAGS := optional |
| 38 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
Aart Bik | 69ae54a | 2015-07-01 14:52:26 -0700 | [diff] [blame] | 39 | include $(BUILD_EXECUTABLE) |
| 40 | endif # !SDK_ONLY |
| 41 | |
| 42 | ## |
| 43 | ## Build the host command line tool dexdump. |
| 44 | ## |
| 45 | |
| 46 | include $(CLEAR_VARS) |
| 47 | LOCAL_CPP_EXTENSION := cc |
| 48 | LOCAL_SRC_FILES := $(dexdump_src_files) |
| 49 | LOCAL_C_INCLUDES := $(dexdump_c_includes) |
| 50 | LOCAL_CFLAGS += -Wall |
| 51 | LOCAL_SHARED_LIBRARIES += $(dexdump_libraries) |
Aart Bik | 22c26f5 | 2015-07-08 21:20:13 +0000 | [diff] [blame] | 52 | LOCAL_MODULE := dexdump2 |
Aart Bik | 69ae54a | 2015-07-01 14:52:26 -0700 | [diff] [blame] | 53 | LOCAL_MODULE_TAGS := optional |
| 54 | include $(BUILD_HOST_EXECUTABLE) |