Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 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 | |
Logan Chien | eb56784 | 2011-07-14 19:58:42 +0800 | [diff] [blame] | 22 | LLVM_ROOT_PATH := external/llvm |
| 23 | LIBBCC_ROOT_PATH := frameworks/compile/libbcc |
| 24 | RSLOADER_ROOT_PATH := frameworks/compile/linkloader |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 25 | |
| 26 | |
| 27 | #===================================================================== |
Logan Chien | eb56784 | 2011-07-14 19:58:42 +0800 | [diff] [blame] | 28 | # Configurations |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 29 | #===================================================================== |
| 30 | |
Stephen Hines | 3699962 | 2012-03-11 19:15:51 -0700 | [diff] [blame] | 31 | libbcc_DEBUG_MC_DISASSEMBLER := 0 |
Logan Chien | eb56784 | 2011-07-14 19:58:42 +0800 | [diff] [blame] | 32 | |
| 33 | libbcc_USE_LOGGER := 1 |
| 34 | libbcc_USE_FUNC_LOGGER := 0 |
| 35 | libbcc_DEBUG_BCC_REFLECT := 0 |
Stephen Hines | 3699962 | 2012-03-11 19:15:51 -0700 | [diff] [blame] | 36 | libbcc_DEBUG_MC_REFLECT := 0 |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 37 | |
| 38 | |
| 39 | #===================================================================== |
Logan Chien | 4885cf8 | 2011-07-20 10:18:05 +0800 | [diff] [blame] | 40 | # Automatic Configurations |
| 41 | #===================================================================== |
| 42 | |
Stephen Hines | 3699962 | 2012-03-11 19:15:51 -0700 | [diff] [blame] | 43 | ifeq ($(libbcc_DEBUG_MC_DISASSEMBLER),0) |
Logan Chien | 4885cf8 | 2011-07-20 10:18:05 +0800 | [diff] [blame] | 44 | libbcc_USE_DISASSEMBLER := 0 |
| 45 | else |
| 46 | libbcc_USE_DISASSEMBLER := 1 |
| 47 | endif |
| 48 | |
| 49 | |
| 50 | #===================================================================== |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 51 | # Common Variables |
| 52 | #===================================================================== |
| 53 | |
| 54 | libbcc_CFLAGS := -Wall -Wno-unused-parameter -Werror |
| 55 | ifneq ($(TARGET_BUILD_VARIANT),eng) |
| 56 | libbcc_CFLAGS += -D__DISABLE_ASSERTS |
Daniel Malea | 094881f | 2011-12-14 17:39:16 -0500 | [diff] [blame] | 57 | else |
| 58 | libbcc_CFLAGS += -DANDROID_ENGINEERING_BUILD |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 59 | endif |
| 60 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 61 | # Include File Search Path |
| 62 | libbcc_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) |