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#===================================================================== 19# Root Path for Other Projects 20#===================================================================== 21 22LLVM_ROOT_PATH := external/llvm 23LIBBCC_ROOT_PATH := frameworks/compile/libbcc 24RSLOADER_ROOT_PATH := frameworks/compile/linkloader 25 26 27#===================================================================== 28# Configurations 29#===================================================================== 30 31libbcc_DEBUG_MC_DISASSEMBLER := 0 32 33libbcc_USE_LOGGER := 1 34libbcc_USE_FUNC_LOGGER := 0 35libbcc_DEBUG_BCC_REFLECT := 0 36libbcc_DEBUG_MC_REFLECT := 0 37 38 39#===================================================================== 40# Automatic Configurations 41#===================================================================== 42 43ifeq ($(libbcc_DEBUG_MC_DISASSEMBLER),0) 44libbcc_USE_DISASSEMBLER := 0 45else 46libbcc_USE_DISASSEMBLER := 1 47endif 48 49 50#===================================================================== 51# Common Variables 52#===================================================================== 53 54libbcc_CFLAGS := -Wall -Wno-unused-parameter -Werror 55ifneq ($(TARGET_BUILD_VARIANT),eng) 56libbcc_CFLAGS += -D__DISABLE_ASSERTS 57else 58libbcc_CFLAGS += -DANDROID_ENGINEERING_BUILD 59endif 60 61# Include File Search Path 62libbcc_C_INCLUDES := \ 63 $(RSLOADER_ROOT_PATH)/android \ 64 $(LIBBCC_ROOT_PATH)/lib \ 65 $(LIBBCC_ROOT_PATH)/helper \ 66 $(LIBBCC_ROOT_PATH)/include \ 67 $(LIBBCC_ROOT_PATH) 68