libbcc-config.mk revision 9ddeb6b4afb1c3366fd4f95d6d31b3e221f46c85
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_USE_MCJIT := 1 32 33libbcc_USE_CACHE := 1 34 35libbcc_DEBUG_MCJIT_DISASSEMBLER := 0 36 37libbcc_USE_LOGGER := 1 38libbcc_USE_FUNC_LOGGER := 0 39libbcc_DEBUG_BCC_REFLECT := 0 40libbcc_DEBUG_MCJIT_REFLECT := 0 41 42 43#===================================================================== 44# Automatic Configurations 45#===================================================================== 46 47ifeq ($(libbcc_USE_MCJIT),0) 48libbcc_DEBUG_MCJIT_DISASSEMBLER := 0 49endif 50 51ifeq ($(libbcc_DEBUG_MCJIT_DISASSEMBLER),0) 52libbcc_USE_DISASSEMBLER := 0 53else 54libbcc_USE_DISASSEMBLER := 1 55endif 56 57 58#===================================================================== 59# Common Variables 60#===================================================================== 61 62libbcc_CFLAGS := -Wall -Wno-unused-parameter -Werror 63ifneq ($(TARGET_BUILD_VARIANT),eng) 64libbcc_CFLAGS += -D__DISABLE_ASSERTS 65else 66libbcc_CFLAGS += -DANDROID_ENGINEERING_BUILD 67endif 68 69# Include File Search Path 70libbcc_C_INCLUDES := \ 71 $(RSLOADER_ROOT_PATH)/android \ 72 $(LIBBCC_ROOT_PATH)/lib \ 73 $(LIBBCC_ROOT_PATH)/helper \ 74 $(LIBBCC_ROOT_PATH)/include \ 75 $(LIBBCC_ROOT_PATH) 76