Android.mk revision 67005271fbab5e4919cc2119f6e234642ec409bd
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 bcc.cpp \ 27 Compiler.cpp \ 28 ContextManager.cpp \ 29 FileHandle.cpp \ 30 Runtime.c \ 31 RuntimeStub.c \ 32 Script.cpp \ 33 ScriptCompiled.cpp \ 34 SourceInfo.cpp 35 36ifeq ($(libbcc_USE_CACHE),1) 37libbcc_executionengine_SRC_FILES += \ 38 CacheReader.cpp \ 39 CacheWriter.cpp \ 40 ScriptCached.cpp \ 41 Sha1Helper.cpp \ 42 MCCacheWriter.cpp \ 43 MCCacheReader.cpp 44endif 45 46 47#===================================================================== 48# Device Static Library: libbccExecutionEngine 49#===================================================================== 50 51include $(CLEAR_VARS) 52 53LOCAL_MODULE := libbccExecutionEngine 54LOCAL_MODULE_TAGS := optional 55LOCAL_MODULE_CLASS := STATIC_LIBRARIES 56 57LOCAL_CFLAGS += $(libbcc_CFLAGS) 58LOCAL_CFLAGS += -DTARGET_BUILD 59 60LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) 61LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) 62 63include $(LLVM_ROOT_PATH)/llvm-device-build.mk 64include $(BUILD_STATIC_LIBRARY) 65 66 67#===================================================================== 68# Host Static Library: libbccExecutionEngine 69#===================================================================== 70 71include $(CLEAR_VARS) 72 73LOCAL_MODULE := libbccExecutionEngine 74LOCAL_MODULE_TAGS := optional 75LOCAL_MODULE_CLASS := STATIC_LIBRARIES 76 77LOCAL_CFLAGS += $(libbcc_CFLAGS) 78LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) 79 80LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) 81 82include $(LLVM_ROOT_PATH)/llvm-host-build.mk 83include $(BUILD_HOST_STATIC_LIBRARY) 84