blob: 9fbd8470b8a6abf7236ac1caa25567f555b5e94c [file] [log] [blame]
Aart Bik3e40f4a2015-07-07 17:09:41 -07001# 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 Bik22c26f52015-07-08 21:20:13 +000017# TODO(ajcbik): rename dexlist2 into dexlist when Dalvik version is removed
18
Aart Bik3e40f4a2015-07-07 17:09:41 -070019LOCAL_PATH:= $(call my-dir)
20
21dexlist_src_files := dexlist.cc
22dexlist_c_includes := art/runtime
23dexlist_libraries := libart
24
25##
26## Build the device command line tool dexlist.
27##
28
29ifneq ($(SDK_ONLY),true) # SDK_only doesn't need device version
30include $(CLEAR_VARS)
31LOCAL_CPP_EXTENSION := cc
32LOCAL_SRC_FILES := $(dexlist_src_files)
33LOCAL_C_INCLUDES := $(dexlist_c_includes)
34LOCAL_CFLAGS += -Wall
35LOCAL_SHARED_LIBRARIES += $(dexlist_libraries)
Aart Bik22c26f52015-07-08 21:20:13 +000036LOCAL_MODULE := dexlist2
Aart Bik3e40f4a2015-07-07 17:09:41 -070037LOCAL_MODULE_TAGS := optional
38LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
39include $(BUILD_EXECUTABLE)
40endif # !SDK_ONLY
41
42##
43## Build the host command line tool dexlist.
44##
45
46include $(CLEAR_VARS)
47LOCAL_CPP_EXTENSION := cc
48LOCAL_SRC_FILES := $(dexlist_src_files)
49LOCAL_C_INCLUDES := $(dexlist_c_includes)
50LOCAL_CFLAGS += -Wall
51LOCAL_SHARED_LIBRARIES += $(dexlist_libraries)
Aart Bik22c26f52015-07-08 21:20:13 +000052LOCAL_MODULE := dexlist2
Ying Wang754a4452015-07-21 12:05:30 -070053LOCAL_MULTILIB := $(ART_MULTILIB_OVERRIDE_host)
Aart Bik3e40f4a2015-07-07 17:09:41 -070054include $(BUILD_HOST_EXECUTABLE)