blob: 37cc848e58c78ea7f88fcbfa1cc0ff6982afeae8 [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
33libbcc_USE_LOGGER := 1
34libbcc_USE_FUNC_LOGGER := 0
35libbcc_DEBUG_BCC_REFLECT := 0
Stephen Hines36999622012-03-11 19:15:51 -070036libbcc_DEBUG_MC_REFLECT := 0
Logan Chien74396852011-07-12 15:50:26 +080037
38
39#=====================================================================
Logan Chien4885cf82011-07-20 10:18:05 +080040# Automatic Configurations
41#=====================================================================
42
Stephen Hines36999622012-03-11 19:15:51 -070043ifeq ($(libbcc_DEBUG_MC_DISASSEMBLER),0)
Logan Chien4885cf82011-07-20 10:18:05 +080044libbcc_USE_DISASSEMBLER := 0
45else
46libbcc_USE_DISASSEMBLER := 1
47endif
48
49
50#=====================================================================
Logan Chien74396852011-07-12 15:50:26 +080051# Common Variables
52#=====================================================================
53
54libbcc_CFLAGS := -Wall -Wno-unused-parameter -Werror
55ifneq ($(TARGET_BUILD_VARIANT),eng)
56libbcc_CFLAGS += -D__DISABLE_ASSERTS
Daniel Malea094881f2011-12-14 17:39:16 -050057else
58libbcc_CFLAGS += -DANDROID_ENGINEERING_BUILD
Logan Chien74396852011-07-12 15:50:26 +080059endif
60
Logan Chien74396852011-07-12 15:50:26 +080061# 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)