Android.mk revision 150a70be696f5a93446bb0c5da558699103520e6
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
17local_cflags_for_libbcinfo := -Wall -Wno-unused-parameter -Werror
18ifneq ($(TARGET_BUILD_VARIANT),eng)
19local_cflags_for_libbcinfo += -D__DISABLE_ASSERTS
20endif
21
22LOCAL_PATH := $(call my-dir)
23
24LLVM_ROOT_PATH := external/llvm
25
26include $(CLEAR_VARS)
27
28LOCAL_MODULE := libbcinfo
29LOCAL_MODULE_CLASS := SHARED_LIBRARIES
30LOCAL_MODULE_TAGS := optional
31intermediates := $(local-intermediates-dir)
32
33LOCAL_SRC_FILES := bcinfo.cpp
34
35LOCAL_CFLAGS += $(local_cflags_for_libbcinfo)
36
37LOCAL_C_INCLUDES := \
38  $(LOCAL_PATH)/../include
39
40LOCAL_STATIC_LIBRARIES += \
41  libLLVMBitReader \
42  libLLVMBitWriter \
43  libLLVMCore \
44  libLLVMSupport \
45
46LOCAL_SHARED_LIBRARIES := libcutils libstlport
47
48include $(LLVM_ROOT_PATH)/llvm-device-build.mk
49include $(BUILD_SHARED_LIBRARY)
50