Home | History | Annotate | Download | only in Core
      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: libbccCore
     22 #=====================================================================
     23 
     24 libbcc_core_SRC_FILES := \
     25   BCCContext.cpp \
     26   BCCContextImpl.cpp \
     27   Compiler.cpp \
     28   Script.cpp \
     29   Source.cpp
     30 
     31 #=====================================================================
     32 # Device Static Library: libbccCore
     33 #=====================================================================
     34 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     35 include $(CLEAR_VARS)
     36 
     37 LOCAL_MODULE := libbccCore
     38 LOCAL_MODULE_TAGS := optional
     39 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
     40 
     41 LOCAL_SRC_FILES := $(libbcc_core_SRC_FILES)
     42 
     43 include $(LIBBCC_DEVICE_BUILD_MK)
     44 include $(LLVM_DEVICE_BUILD_MK)
     45 include $(BUILD_STATIC_LIBRARY)
     46 endif
     47 
     48 #=====================================================================
     49 # Host Static Library: libbccCore
     50 #=====================================================================
     51 
     52 include $(CLEAR_VARS)
     53 
     54 LOCAL_MODULE := libbccCore
     55 LOCAL_MODULE_TAGS := optional
     56 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
     57 
     58 LOCAL_SRC_FILES := $(libbcc_core_SRC_FILES)
     59 
     60 include $(LIBBCC_HOST_BUILD_MK)
     61 include $(LLVM_HOST_BUILD_MK)
     62 include $(BUILD_HOST_STATIC_LIBRARY)
     63