Home | History | Annotate | Download | only in Support
      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: libbccSupport
     22 #=====================================================================
     23 
     24 libbcc_support_SRC_FILES := \
     25   CompilerConfig.cpp \
     26   Disassembler.cpp \
     27   FileBase.cpp \
     28   Initialization.cpp \
     29   InputFile.cpp \
     30   LinkerConfig.cpp \
     31   OutputFile.cpp \
     32   Sha1Util.cpp \
     33   TargetCompilerConfigs.cpp \
     34   TargetLinkerConfigs.cpp
     35 
     36 #=====================================================================
     37 # Device Static Library: libbccSupport
     38 #=====================================================================
     39 
     40 include $(CLEAR_VARS)
     41 
     42 LOCAL_MODULE := libbccSupport
     43 LOCAL_MODULE_TAGS := optional
     44 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
     45 
     46 # Bionic already includes SHA-1 routines.
     47 LOCAL_SRC_FILES := $(libbcc_support_SRC_FILES)
     48 
     49 include $(LIBBCC_DEVICE_BUILD_MK)
     50 include $(LIBBCC_GEN_CONFIG_MK)
     51 include $(MCLD_DEVICE_BUILD_MK)
     52 #include $(LLVM_DEVICE_BUILD_MK)
     53 include $(BUILD_STATIC_LIBRARY)
     54 
     55 
     56 #=====================================================================
     57 # Host Static Library: libbccSupport
     58 #=====================================================================
     59 
     60 include $(CLEAR_VARS)
     61 
     62 LOCAL_MODULE := libbccSupport
     63 LOCAL_MODULE_TAGS := optional
     64 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
     65 
     66 LOCAL_SRC_FILES := \
     67   sha1.c \
     68   $(libbcc_support_SRC_FILES)
     69 
     70 include $(LIBBCC_HOST_BUILD_MK)
     71 include $(LIBBCC_GEN_CONFIG_MK)
     72 include $(MCLD_HOST_BUILD_MK)
     73 #include $(LLVM_HOST_BUILD_MK)
     74 include $(BUILD_HOST_STATIC_LIBRARY)
     75