1 # 2 # Copyright (C) 2011 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 include $(LOCAL_PATH)/../libbcc-config.mk 20 21 22 #===================================================================== 23 # Device Static Library: libbccHelper 24 #===================================================================== 25 26 include $(CLEAR_VARS) 27 28 LOCAL_MODULE := libbccHelper 29 LOCAL_MODULE_TAGS := optional 30 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 31 32 LOCAL_CFLAGS += $(libbcc_CFLAGS) 33 LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) 34 35 LOCAL_SRC_FILES := sha1.c 36 37 include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk 38 include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk 39 include $(LLVM_ROOT_PATH)/llvm-device-build.mk 40 include $(BUILD_STATIC_LIBRARY) 41 42 43 #===================================================================== 44 # Host Static Library: libbccHelper 45 #===================================================================== 46 47 include $(CLEAR_VARS) 48 49 LOCAL_MODULE := libbccHelper 50 LOCAL_MODULE_TAGS := optional 51 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 52 LOCAL_IS_HOST_MODULE := true 53 54 LOCAL_CFLAGS += $(libbcc_CFLAGS) 55 LOCAL_CFLAGS += -D__HOST__ 56 57 LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) 58 59 LOCAL_SRC_FILES := \ 60 DebugHelper.c \ 61 sha1.c 62 63 include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk 64 include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk 65 include $(LLVM_ROOT_PATH)/llvm-host-build.mk 66 include $(BUILD_HOST_STATIC_LIBRARY) 67