Home | History | Annotate | Download | only in Renderscript
      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 
     18 LOCAL_PATH := $(call my-dir)
     19 
     20 #=====================================================================
     21 # Common: libbccRenderscript
     22 #=====================================================================
     23 
     24 libbcc_renderscript_SRC_FILES := \
     25   RSCompilerDriver.cpp \
     26   RSEmbedInfo.cpp \
     27   RSForEachExpand.cpp \
     28   RSGlobalInfoPass.cpp \
     29   RSInvariant.cpp \
     30   RSScript.cpp \
     31   RSInvokeHelperPass.cpp \
     32   RSIsThreadablePass.cpp \
     33   RSScreenFunctionsPass.cpp \
     34   RSStubsWhiteList.cpp \
     35   RSScriptGroupFusion.cpp \
     36   RSX86CallConvPass.cpp
     37 
     38 #=====================================================================
     39 # Device Static Library: libbccRenderscript
     40 #=====================================================================
     41 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     42 include $(CLEAR_VARS)
     43 
     44 LOCAL_MODULE := libbccRenderscript
     45 LOCAL_MODULE_TAGS := optional
     46 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
     47 
     48 LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
     49 
     50 include $(LIBBCC_DEVICE_BUILD_MK)
     51 include $(LLVM_DEVICE_BUILD_MK)
     52 include $(BUILD_STATIC_LIBRARY)
     53 endif
     54 
     55 #=====================================================================
     56 # Host Static Library: libbccRenderscript
     57 #=====================================================================
     58 
     59 include $(CLEAR_VARS)
     60 
     61 LOCAL_MODULE := libbccRenderscript
     62 LOCAL_MODULE_TAGS := optional
     63 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
     64 LOCAL_IS_HOST_MODULE := true
     65 
     66 LOCAL_SRC_FILES := $(libbcc_renderscript_SRC_FILES)
     67 
     68 include $(LIBBCC_HOST_BUILD_MK)
     69 include $(LLVM_HOST_BUILD_MK)
     70 include $(BUILD_HOST_STATIC_LIBRARY)
     71