Aart Bik | 3e40f4a | 2015-07-07 17:09:41 -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 | 3e40f4a | 2015-07-07 17:09:41 -0700 | [diff] [blame] | 17 | LOCAL_PATH:= $(call my-dir) |
| 18 | |
| 19 | dexlist_src_files := dexlist.cc |
| 20 | dexlist_c_includes := art/runtime |
| 21 | dexlist_libraries := libart |
| 22 | |
| 23 | ## |
| 24 | ## Build the device command line tool dexlist. |
| 25 | ## |
| 26 | |
| 27 | ifneq ($(SDK_ONLY),true) # SDK_only doesn't need device version |
| 28 | include $(CLEAR_VARS) |
| 29 | LOCAL_CPP_EXTENSION := cc |
| 30 | LOCAL_SRC_FILES := $(dexlist_src_files) |
| 31 | LOCAL_C_INCLUDES := $(dexlist_c_includes) |
| 32 | LOCAL_CFLAGS += -Wall |
| 33 | LOCAL_SHARED_LIBRARIES += $(dexlist_libraries) |
Aart Bik | b1b45be | 2015-08-28 11:09:29 -0700 | [diff] [blame] | 34 | LOCAL_MODULE := dexlist |
Aart Bik | 3e40f4a | 2015-07-07 17:09:41 -0700 | [diff] [blame] | 35 | LOCAL_MODULE_TAGS := optional |
| 36 | LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) |
| 37 | include $(BUILD_EXECUTABLE) |
| 38 | endif # !SDK_ONLY |
| 39 | |
| 40 | ## |
| 41 | ## Build the host command line tool dexlist. |
| 42 | ## |
| 43 | |
| 44 | include $(CLEAR_VARS) |
| 45 | LOCAL_CPP_EXTENSION := cc |
| 46 | LOCAL_SRC_FILES := $(dexlist_src_files) |
| 47 | LOCAL_C_INCLUDES := $(dexlist_c_includes) |
| 48 | LOCAL_CFLAGS += -Wall |
| 49 | LOCAL_SHARED_LIBRARIES += $(dexlist_libraries) |
Aart Bik | b1b45be | 2015-08-28 11:09:29 -0700 | [diff] [blame] | 50 | LOCAL_MODULE := dexlist |
Ying Wang | 754a445 | 2015-07-21 12:05:30 -0700 | [diff] [blame] | 51 | LOCAL_MULTILIB := $(ART_MULTILIB_OVERRIDE_host) |
Aart Bik | 3e40f4a | 2015-07-07 17:09:41 -0700 | [diff] [blame] | 52 | include $(BUILD_HOST_EXECUTABLE) |