1# 2# Copyright (C) 2011-2012 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 20#===================================================================== 21# Common: libbccExecutionEngine 22#===================================================================== 23 24libbcc_executionengine_SRC_FILES := \ 25 ELFObjectLoaderImpl.cpp \ 26 GDBJIT.cpp \ 27 GDBJITRegistrar.cpp \ 28 ObjectLoader.cpp \ 29 SymbolResolverProxy.cpp \ 30 SymbolResolvers.cpp 31 32#===================================================================== 33# Device Static Library: libbccExecutionEngine 34#===================================================================== 35 36include $(CLEAR_VARS) 37 38LOCAL_MODULE := libbccExecutionEngine 39LOCAL_MODULE_TAGS := optional 40LOCAL_MODULE_CLASS := STATIC_LIBRARIES 41 42LOCAL_C_INCLUDES := \ 43 $(LIBBCC_ROOT_PATH) \ 44 $(RSLOADER_ROOT_PATH) \ 45 $(RSLOADER_ROOT_PATH)/include 46 47LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) 48 49ifeq ($(strip $(TARGET_CPU_VARIANT)),cortex-a15) 50LOCAL_CFLAGS += -DHAS_HW_DIV 51endif 52 53include $(LIBBCC_DEVICE_BUILD_MK) 54include $(LIBBCC_GEN_CONFIG_MK) 55include $(LLVM_DEVICE_BUILD_MK) 56include $(BUILD_STATIC_LIBRARY) 57 58 59#===================================================================== 60# Host Static Library: libbccExecutionEngine 61#===================================================================== 62 63include $(CLEAR_VARS) 64 65LOCAL_MODULE := libbccExecutionEngine 66LOCAL_MODULE_TAGS := optional 67LOCAL_MODULE_CLASS := STATIC_LIBRARIES 68 69LOCAL_C_INCLUDES := \ 70 $(LIBBCC_ROOT_PATH) \ 71 $(RSLOADER_ROOT_PATH) \ 72 $(RSLOADER_ROOT_PATH)/include 73 74LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) 75 76include $(LIBBCC_HOST_BUILD_MK) 77include $(LIBBCC_GEN_CONFIG_MK) 78include $(LLVM_HOST_BUILD_MK) 79include $(BUILD_HOST_STATIC_LIBRARY) 80