1 # 2 # Copyright (C) 2010 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 ifeq (darwin,$(BUILD_OS)) 18 else 19 20 LOCAL_PATH := $(call my-dir) 21 22 # Executable for host 23 # ======================================================== 24 include $(CLEAR_VARS) 25 26 LOCAL_MODULE := bcc 27 28 LOCAL_SRC_FILES := \ 29 main.cpp 30 31 LOCAL_SHARED_LIBRARIES := \ 32 libbcc 33 34 LOCAL_C_INCLUDES := \ 35 $(LOCAL_PATH)/../../include 36 37 LOCAL_MODULE_TAGS := tests eng 38 39 LOCAL_LDLIBS = -ldl 40 41 LOCAL_CFLAGS += -D__HOST__ -Wall -Werror 42 43 include $(BUILD_HOST_EXECUTABLE) 44 45 # Executable for target 46 # ======================================================== 47 include $(CLEAR_VARS) 48 49 LOCAL_MODULE := bcc 50 51 LOCAL_SRC_FILES := \ 52 main.cpp 53 54 LOCAL_SHARED_LIBRARIES := libdl libstlport libbcinfo libbcc 55 56 LOCAL_C_INCLUDES := \ 57 $(LOCAL_PATH)/../../include 58 59 LOCAL_MODULE_TAGS := optional 60 61 include external/stlport/libstlport.mk 62 include $(BUILD_EXECUTABLE) 63 64 endif 65