Android.mk revision d2a5f305f48c47b9e98a0d7ccdd0cf027bdcfe18
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) 19include $(LOCAL_PATH)/../../libbcc-config.mk 20 21#===================================================================== 22# Common: libbccExecutionEngine 23#===================================================================== 24 25libbcc_executionengine_SRC_FILES := \ 26 Compiler.cpp \ 27 FileHandle.cpp \ 28 Runtime.c \ 29 RuntimeStub.c \ 30 Script.cpp \ 31 ScriptCompiled.cpp \ 32 SourceInfo.cpp 33 34ifeq ($(libbcc_USE_OLD_JIT),1) 35libbcc_executionengine_SRC_FILES += \ 36 OldJIT/ContextManager.cpp 37endif 38 39ifeq ($(libbcc_USE_CACHE),1) 40ifeq ($(libbcc_USE_OLD_JIT),1) 41libbcc_executionengine_SRC_FILES += \ 42 OldJIT/CacheReader.cpp \ 43 OldJIT/CacheWriter.cpp 44endif 45 46ifeq ($(libbcc_USE_MCJIT),1) 47libbcc_executionengine_SRC_FILES += \ 48 MCCacheWriter.cpp \ 49 MCCacheReader.cpp 50endif 51 52libbcc_executionengine_SRC_FILES += \ 53 ScriptCached.cpp \ 54 Sha1Helper.cpp 55endif 56 57 58#===================================================================== 59# Device Static Library: libbccExecutionEngine 60#===================================================================== 61 62include $(CLEAR_VARS) 63 64LOCAL_MODULE := libbccExecutionEngine 65LOCAL_MODULE_TAGS := optional 66LOCAL_MODULE_CLASS := STATIC_LIBRARIES 67 68LOCAL_CFLAGS += $(libbcc_CFLAGS) 69LOCAL_CFLAGS += -DTARGET_BUILD 70 71LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) 72LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) 73 74include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk 75include $(LLVM_ROOT_PATH)/llvm-device-build.mk 76include $(BUILD_STATIC_LIBRARY) 77 78 79#===================================================================== 80# Host Static Library: libbccExecutionEngine 81#===================================================================== 82 83include $(CLEAR_VARS) 84 85LOCAL_MODULE := libbccExecutionEngine 86LOCAL_MODULE_TAGS := optional 87LOCAL_MODULE_CLASS := STATIC_LIBRARIES 88LOCAL_IS_HOST_MODULE := true 89 90LOCAL_CFLAGS += $(libbcc_CFLAGS) 91LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) 92 93LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) 94 95include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk 96include $(LLVM_ROOT_PATH)/llvm-host-build.mk 97include $(BUILD_HOST_STATIC_LIBRARY) 98