Android.mk revision bfa9fc93c88510184399bb98e0faa8cc474061fb
1bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines#
2bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# Copyright (C) 2013 The Android Open Source Project
3bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines#
4bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# Licensed under the Apache License, Version 2.0 (the "License");
5bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# you may not use this file except in compliance with the License.
6bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# You may obtain a copy of the License at
7bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines#
8bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines#      http://www.apache.org/licenses/LICENSE-2.0
9bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines#
10bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# Unless required by applicable law or agreed to in writing, software
11bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# distributed under the License is distributed on an "AS IS" BASIS,
12bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# See the License for the specific language governing permissions and
14bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# limitations under the License.
15bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines#
16bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines
17bfa9fc93c88510184399bb98e0faa8cc474061fbStephen HinesLOCAL_PATH := $(call my-dir)
18bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines
19bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# Don't build for unbundled branches
20bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hinesifeq (,$(TARGET_BUILD_APPS))
21bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines
22bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# Executable for host
23bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines# ========================================================
24bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hinesinclude $(CLEAR_VARS)
25bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines
26bfa9fc93c88510184399bb98e0faa8cc474061fbStephen HinesLOCAL_MODULE := bcc_strip_attr
27bfa9fc93c88510184399bb98e0faa8cc474061fbStephen HinesLOCAL_MODULE_CLASS := EXECUTABLES
28bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines
29bfa9fc93c88510184399bb98e0faa8cc474061fbStephen HinesLOCAL_SHARED_LIBRARIES := libLLVM
30bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines
31bfa9fc93c88510184399bb98e0faa8cc474061fbStephen HinesLOCAL_C_INCLUDES := \
32bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines  $(LOCAL_PATH)/../../include
33bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines
34bfa9fc93c88510184399bb98e0faa8cc474061fbStephen HinesLOCAL_LDLIBS += -lpthread -lm -ldl
35bfa9fc93c88510184399bb98e0faa8cc474061fbStephen HinesLOCAL_SRC_FILES := bcc_strip_attr.cpp
36bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines
37bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hinesinclude $(LIBBCC_HOST_BUILD_MK)
38bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hinesinclude $(LIBBCC_GEN_CONFIG_MK)
39bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hinesinclude $(LLVM_HOST_BUILD_MK)
40bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hinesinclude $(BUILD_HOST_EXECUTABLE)
41bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hines
42bfa9fc93c88510184399bb98e0faa8cc474061fbStephen Hinesendif  # Don't build for unbundled branches
43