Android.mk revision e6362661bb058a73c63efb11f4f25a63e77cac8c
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  FileBase.cpp \
27  Initialization.cpp \
28  InputFile.cpp \
29  OutputFile.cpp \
30  Sha1Util.cpp \
31  TargetCompilerConfigs.cpp
32
33ifeq ($(libbcc_USE_DISASSEMBLER),1)
34libbcc_support_SRC_FILES += Disassembler.cpp
35endif
36
37#=====================================================================
38# Device Static Library: libbccSupport
39#=====================================================================
40
41include $(CLEAR_VARS)
42
43LOCAL_MODULE := libbccSupport
44LOCAL_MODULE_TAGS := optional
45LOCAL_MODULE_CLASS := STATIC_LIBRARIES
46
47# Bionic already includes SHA-1 routines.
48LOCAL_SRC_FILES := $(libbcc_support_SRC_FILES)
49
50include $(LIBBCC_DEVICE_BUILD_MK)
51include $(LIBBCC_GEN_CONFIG_MK)
52include $(MCLD_DEVICE_BUILD_MK)
53include $(LLVM_DEVICE_BUILD_MK)
54include $(BUILD_STATIC_LIBRARY)
55
56
57#=====================================================================
58# Host Static Library: libbccSupport
59#=====================================================================
60
61include $(CLEAR_VARS)
62
63LOCAL_MODULE := libbccSupport
64LOCAL_MODULE_TAGS := optional
65LOCAL_MODULE_CLASS := STATIC_LIBRARIES
66
67LOCAL_SRC_FILES := \
68  sha1.c \
69  $(libbcc_support_SRC_FILES)
70
71include $(LIBBCC_HOST_BUILD_MK)
72include $(LIBBCC_GEN_CONFIG_MK)
73include $(MCLD_HOST_BUILD_MK)
74include $(LLVM_HOST_BUILD_MK)
75include $(BUILD_HOST_STATIC_LIBRARY)
76