Android.mk revision 18f5eb94759bb0ded32472ff7499815119bb9701
1#
2# Copyright (C) 2012 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
18LOCAL_PATH := $(call my-dir)
19
20#=====================================================================
21# Common: libbccSupport
22#=====================================================================
23
24libbcc_support_SRC_FILES := \
25  CompilerConfig.cpp \
26  Disassembler.cpp \
27  FileBase.cpp \
28  Initialization.cpp \
29  InputFile.cpp \
30  OutputFile.cpp \
31  Sha1Util.cpp \
32  sha1.c \
33
34#=====================================================================
35# Device Static Library: libbccSupport
36#=====================================================================
37ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
38include $(CLEAR_VARS)
39
40LOCAL_MODULE := libbccSupport
41LOCAL_MODULE_TAGS := optional
42LOCAL_MODULE_CLASS := STATIC_LIBRARIES
43
44LOCAL_SRC_FILES := \
45  $(libbcc_support_SRC_FILES)
46
47include $(LIBBCC_DEVICE_BUILD_MK)
48include $(LLVM_DEVICE_BUILD_MK)
49include $(BUILD_STATIC_LIBRARY)
50endif
51
52#=====================================================================
53# Host Static Library: libbccSupport
54#=====================================================================
55
56include $(CLEAR_VARS)
57
58LOCAL_MODULE := libbccSupport
59LOCAL_MODULE_TAGS := optional
60LOCAL_MODULE_CLASS := STATIC_LIBRARIES
61
62LOCAL_SRC_FILES := \
63  $(libbcc_support_SRC_FILES)
64
65include $(LIBBCC_HOST_BUILD_MK)
66include $(LLVM_HOST_BUILD_MK)
67include $(BUILD_HOST_STATIC_LIBRARY)
68