blob: 90e6fabc632a3558b9aa5a6dcde8d4ce7e86358d [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
Stephen Hines36999622012-03-11 19:15:51 -070031libbcc_DEBUG_MC_DISASSEMBLER := 0
Logan Chieneb567842011-07-14 19:58:42 +080032
Logan Chieneb567842011-07-14 19:58:42 +080033libbcc_USE_FUNC_LOGGER := 0
34libbcc_DEBUG_BCC_REFLECT := 0
Stephen Hines36999622012-03-11 19:15:51 -070035libbcc_DEBUG_MC_REFLECT := 0
Logan Chien74396852011-07-12 15:50:26 +080036
37
38#=====================================================================
Logan Chien4885cf82011-07-20 10:18:05 +080039# Automatic Configurations
40#=====================================================================
41
Stephen Hines36999622012-03-11 19:15:51 -070042ifeq ($(libbcc_DEBUG_MC_DISASSEMBLER),0)
Logan Chien4885cf82011-07-20 10:18:05 +080043libbcc_USE_DISASSEMBLER := 0
44else
45libbcc_USE_DISASSEMBLER := 1
46endif
47
48
49#=====================================================================
Logan Chien74396852011-07-12 15:50:26 +080050# Common Variables
51#=====================================================================
52
53libbcc_CFLAGS := -Wall -Wno-unused-parameter -Werror
54ifneq ($(TARGET_BUILD_VARIANT),eng)
55libbcc_CFLAGS += -D__DISABLE_ASSERTS
Daniel Malea094881f2011-12-14 17:39:16 -050056else
57libbcc_CFLAGS += -DANDROID_ENGINEERING_BUILD
Logan Chien74396852011-07-12 15:50:26 +080058endif
59
Logan Chien74396852011-07-12 15:50:26 +080060# Include File Search Path
61libbcc_C_INCLUDES := \
62 $(RSLOADER_ROOT_PATH)/android \
63 $(LIBBCC_ROOT_PATH)/lib \
64 $(LIBBCC_ROOT_PATH)/helper \
65 $(LIBBCC_ROOT_PATH)/include \
66 $(LIBBCC_ROOT_PATH)