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