Android.mk revision 107f50d54d9606e495187d0e89225d3d9fdc1fa9
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 RSCompilerDriver.cpp \ 26 RSEmbedInfo.cpp \ 27 RSForEachExpand.cpp \ 28 RSInfo.cpp \ 29 RSInfoExtractor.cpp \ 30 RSInfoReader.cpp \ 31 RSInfoWriter.cpp \ 32 RSScript.cpp \ 33 RSInvokeHelperPass.cpp \ 34 RSScreenFunctionsPass.cpp \ 35 RSStubsWhiteList.cpp 36 37#===================================================================== 38# Device Static Library: libbccRenderscript 39#===================================================================== 40ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 41include $(CLEAR_VARS) 42 43LOCAL_MODULE := libbccRenderscript 44LOCAL_MODULE_TAGS := optional 45LOCAL_MODULE_CLASS := STATIC_LIBRARIES 46 47LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES) 48 49include $(LIBBCC_DEVICE_BUILD_MK) 50include $(LLVM_DEVICE_BUILD_MK) 51include $(BUILD_STATIC_LIBRARY) 52endif 53 54#===================================================================== 55# Host Static Library: libbccRenderscript 56#===================================================================== 57 58include $(CLEAR_VARS) 59 60LOCAL_MODULE := libbccRenderscript 61LOCAL_MODULE_TAGS := optional 62LOCAL_MODULE_CLASS := STATIC_LIBRARIES 63LOCAL_IS_HOST_MODULE := true 64 65LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES) 66 67include $(LIBBCC_HOST_BUILD_MK) 68include $(LLVM_HOST_BUILD_MK) 69include $(BUILD_HOST_STATIC_LIBRARY) 70