blob: a9d9bf31388db8891a08577b7a1a92b5f648a7da [file] [log] [blame]
Logan Chien74396852011-07-12 15:50:26 +08001#
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
Logan Chieneb567842011-07-14 19:58:42 +080022LLVM_ROOT_PATH := external/llvm
23LIBBCC_ROOT_PATH := frameworks/compile/libbcc
24RSLOADER_ROOT_PATH := frameworks/compile/linkloader
Logan Chien74396852011-07-12 15:50:26 +080025
26
27#=====================================================================
Logan Chieneb567842011-07-14 19:58:42 +080028# Configurations
Logan Chien74396852011-07-12 15:50:26 +080029#=====================================================================
30
Logan Chieneb567842011-07-14 19:58:42 +080031libbcc_USE_OLD_JIT := 0
32libbcc_USE_MCJIT := 1
Logan Chien74396852011-07-12 15:50:26 +080033
Logan Chieneb567842011-07-14 19:58:42 +080034libbcc_USE_CACHE := 1
35
36libbcc_USE_DISASSEMBLER := 1
37libbcc_DEBUG_OLD_JIT_DISASSEMBLE := 0
38libbcc_DEBUG_MC_JIT_DISASSEMBLE := 0
39
40libbcc_USE_LOGGER := 1
41libbcc_USE_FUNC_LOGGER := 0
42libbcc_DEBUG_BCC_REFLECT := 0
43libbcc_DEBUG_MCJIT_REFLECT := 0
Logan Chien74396852011-07-12 15:50:26 +080044
45
46#=====================================================================
47# Common Variables
48#=====================================================================
49
50libbcc_CFLAGS := -Wall -Wno-unused-parameter -Werror
51ifneq ($(TARGET_BUILD_VARIANT),eng)
52libbcc_CFLAGS += -D__DISABLE_ASSERTS
53endif
54
55# Include File Search Path
56libbcc_C_INCLUDES := \
57 $(RSLOADER_ROOT_PATH)/android \
58 $(LIBBCC_ROOT_PATH)/lib \
59 $(LIBBCC_ROOT_PATH)/helper \
60 $(LIBBCC_ROOT_PATH)/include \
61 $(LIBBCC_ROOT_PATH)