blob: 6ec6c97dce8187771043b9e094e39c1ec6e5be93 [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 Bik3e40f4a2015-07-07 17:09:41 -070017LOCAL_PATH:= $(call my-dir)
18
19dexlist_src_files := dexlist.cc
20dexlist_c_includes := art/runtime
21dexlist_libraries := libart
22
23##
24## Build the device command line tool dexlist.
25##
26
27ifneq ($(SDK_ONLY),true) # SDK_only doesn't need device version
28include $(CLEAR_VARS)
29LOCAL_CPP_EXTENSION := cc
30LOCAL_SRC_FILES := $(dexlist_src_files)
31LOCAL_C_INCLUDES := $(dexlist_c_includes)
32LOCAL_CFLAGS += -Wall
33LOCAL_SHARED_LIBRARIES += $(dexlist_libraries)
Aart Bikb1b45be2015-08-28 11:09:29 -070034LOCAL_MODULE := dexlist
Aart Bik3e40f4a2015-07-07 17:09:41 -070035LOCAL_MODULE_TAGS := optional
36LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
37include $(BUILD_EXECUTABLE)
38endif # !SDK_ONLY
39
40##
41## Build the host command line tool dexlist.
42##
43
44include $(CLEAR_VARS)
45LOCAL_CPP_EXTENSION := cc
46LOCAL_SRC_FILES := $(dexlist_src_files)
47LOCAL_C_INCLUDES := $(dexlist_c_includes)
48LOCAL_CFLAGS += -Wall
49LOCAL_SHARED_LIBRARIES += $(dexlist_libraries)
Aart Bikb1b45be2015-08-28 11:09:29 -070050LOCAL_MODULE := dexlist
Ying Wang754a4452015-07-21 12:05:30 -070051LOCAL_MULTILIB := $(ART_MULTILIB_OVERRIDE_host)
Aart Bik3e40f4a2015-07-07 17:09:41 -070052include $(BUILD_HOST_EXECUTABLE)