1# 2# Copyright (C) 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: libbccRenderscript 22#===================================================================== 23 24libbcc_renderscript_SRC_FILES := \ 25 RSAddDebugInfoPass.cpp \ 26 RSCompilerDriver.cpp \ 27 RSEmbedInfo.cpp \ 28 RSKernelExpand.cpp \ 29 RSGlobalInfoPass.cpp \ 30 RSInvariant.cpp \ 31 RSScript.cpp \ 32 RSInvokeHelperPass.cpp \ 33 RSIsThreadablePass.cpp \ 34 RSScreenFunctionsPass.cpp \ 35 RSStubsWhiteList.cpp \ 36 RSScriptGroupFusion.cpp \ 37 RSX86CallConvPass.cpp \ 38 RSX86TranslateGEPPass.cpp 39 40#===================================================================== 41# Device Static Library: libbccRenderscript 42#===================================================================== 43ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 44include $(CLEAR_VARS) 45 46LOCAL_MODULE := libbccRenderscript 47LOCAL_MODULE_CLASS := STATIC_LIBRARIES 48 49LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES) 50 51include $(LIBBCC_DEVICE_BUILD_MK) 52include $(LLVM_DEVICE_BUILD_MK) 53include $(LLVM_GEN_ATTRIBUTES_MK) 54include $(LLVM_GEN_INTRINSICS_MK) 55include $(BUILD_STATIC_LIBRARY) 56endif 57 58#===================================================================== 59# Host Static Library: libbccRenderscript 60#===================================================================== 61 62include $(CLEAR_VARS) 63 64LOCAL_MODULE := libbccRenderscript 65LOCAL_MODULE_HOST_OS := darwin linux windows 66LOCAL_MODULE_CLASS := STATIC_LIBRARIES 67LOCAL_IS_HOST_MODULE := true 68 69LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES) 70 71include $(LIBBCC_HOST_BUILD_MK) 72include $(LLVM_HOST_BUILD_MK) 73include $(LLVM_GEN_ATTRIBUTES_MK) 74include $(LLVM_GEN_INTRINSICS_MK) 75include $(BUILD_HOST_STATIC_LIBRARY) 76