Home | History | Annotate | Download | only in runtime
      1 #
      2 # Copyright (C) 2011-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 LOCAL_PATH := $(call my-dir)
     18 
     19 # C/LLVM-IR source files for the library
     20 clcore_base_files := \
     21     rs_allocation.c \
     22     rs_cl.c \
     23     rs_core.c \
     24     rs_element.c \
     25     rs_mesh.c \
     26     rs_program.c \
     27     rs_sample.c \
     28     rs_sampler.c \
     29     convert.ll \
     30     matrix.ll \
     31     pixel_packing.ll \
     32     math.ll \
     33     rsClamp.ll
     34 
     35 clcore_files := \
     36     $(clcore_base_files) \
     37     arch/generic.c
     38 
     39 clcore_neon_files := \
     40     $(clcore_base_files) \
     41     arch/neon.ll
     42 
     43 ifeq "REL" "$(PLATFORM_VERSION_CODENAME)"
     44   RS_VERSION := $(PLATFORM_SDK_VERSION)
     45 else
     46   # Increment by 1 whenever this is not a final release build, since we want to
     47   # be able to see the RS version number change during development.
     48   # See build/core/version_defaults.mk for more information about this.
     49   RS_VERSION := "(1 + $(PLATFORM_SDK_VERSION))"
     50 endif
     51 
     52 # Build the base version of the library
     53 include $(CLEAR_VARS)
     54 LOCAL_MODULE := libclcore.bc
     55 LOCAL_MODULE_TAGS := optional
     56 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
     57 LOCAL_SRC_FILES := $(clcore_files)
     58 
     59 include $(LOCAL_PATH)/build_bc_lib.mk
     60 
     61 # Build a NEON-enabled version of the library (if possible)
     62 ifeq ($(ARCH_ARM_HAVE_NEON),true)
     63 include $(CLEAR_VARS)
     64 LOCAL_MODULE := libclcore_neon.bc
     65 LOCAL_MODULE_TAGS := optional
     66 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
     67 LOCAL_SRC_FILES := $(clcore_neon_files)
     68 
     69 include $(LOCAL_PATH)/build_bc_lib.mk
     70 endif
     71