Android.mk revision 2f6a493aea1b6e5ad318a759fedb58713a5a374c
1# 2# Copyright (C) 2011 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16# 17 18LOCAL_PATH := $(call my-dir) 19 20ifeq ($(libbcc_USE_DISASSEMBLER),1) 21 22#===================================================================== 23# Common: libbccDisassembler 24#===================================================================== 25 26libbcc_disassembler_SRC_FILES := \ 27 Disassembler.cpp 28 29 30#===================================================================== 31# Device Static Library: libbccDisassembler 32#===================================================================== 33 34include $(CLEAR_VARS) 35 36LOCAL_MODULE := libbccDisassembler 37LOCAL_MODULE_TAGS := optional 38LOCAL_MODULE_CLASS := STATIC_LIBRARIES 39 40LOCAL_SRC_FILES := $(libbcc_disassembler_SRC_FILES) 41 42include $(LIBBCC_DEVICE_BUILD_MK) 43include $(LIBBCC_GEN_CONFIG_MK) 44include $(LLVM_DEVICE_BUILD_MK) 45include $(BUILD_STATIC_LIBRARY) 46 47 48#===================================================================== 49# Host Static Library: libbccDisassembler 50#===================================================================== 51 52include $(CLEAR_VARS) 53 54LOCAL_MODULE := libbccDisassembler 55LOCAL_MODULE_TAGS := optional 56LOCAL_MODULE_CLASS := STATIC_LIBRARIES 57LOCAL_IS_HOST_MODULE := true 58 59LOCAL_SRC_FILES := $(libbcc_disassembler_SRC_FILES) 60 61include $(LIBBCC_HOST_BUILD_MK) 62include $(LIBBCC_GEN_CONFIG_MK) 63include $(LLVM_HOST_BUILD_MK) 64include $(BUILD_HOST_STATIC_LIBRARY) 65 66endif # $(libbcc_USE_DISASSEMBLER) 67