• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: libbccAndroidBitcode
22#=====================================================================
23
24libbcc_androidbitcode_SRC_FILES := \
25  ABCCompiler.cpp \
26  ABCExpandVAArgPass.cpp \
27  ABCCompilerDriver.cpp
28
29libbcc_arm_androidbitcode_SRC_FILES := \
30  ARM/ARMABCCompilerDriver.cpp \
31  ARM/ARMABCExpandVAArg.cpp
32
33libbcc_mips_androidbitcode_SRC_FILES := \
34  Mips/MipsABCCompilerDriver.cpp \
35  Mips/MipsABCExpandVAArg.cpp
36
37libbcc_x86_androidbitcode_SRC_FILES := \
38  X86/X86ABCCompilerDriver.cpp \
39  X86/X86ABCExpandVAArg.cpp
40
41
42#=====================================================================
43# Device Static Library: libbccAndroidBitcode
44#=====================================================================
45
46include $(CLEAR_VARS)
47
48LOCAL_MODULE := libbccAndroidBitcode
49LOCAL_MODULE_TAGS := optional
50LOCAL_MODULE_CLASS := STATIC_LIBRARIES
51LOCAL_SRC_FILES := $(libbcc_androidbitcode_SRC_FILES)
52
53ifeq ($(TARGET_ARCH),arm)
54  LOCAL_SRC_FILES += $(libbcc_arm_androidbitcode_SRC_FILES)
55else
56  ifeq ($(TARGET_ARCH),mips)
57    LOCAL_SRC_FILES += $(libbcc_mips_androidbitcode_SRC_FILES)
58  else
59    ifeq ($(TARGET_ARCH),x86) # We don't support x86-64 right now
60      LOCAL_SRC_FILES += $(libbcc_x86_androidbitcode_SRC_FILES)
61    else
62      $(error Unsupported TARGET_ARCH $(TARGET_ARCH))
63    endif
64  endif
65endif
66
67include $(LIBBCC_DEVICE_BUILD_MK)
68include $(LIBBCC_GEN_CONFIG_MK)
69include $(MCLD_DEVICE_BUILD_MK)
70include $(BUILD_STATIC_LIBRARY)
71
72#=====================================================================
73# Host Static Library: libbccAndroidBitcode
74#=====================================================================
75
76include $(CLEAR_VARS)
77
78LOCAL_MODULE := libbccAndroidBitcode
79LOCAL_MODULE_TAGS := optional
80LOCAL_MODULE_CLASS := STATIC_LIBRARIES
81LOCAL_SRC_FILES := \
82  $(libbcc_androidbitcode_SRC_FILES) \
83  $(libbcc_arm_androidbitcode_SRC_FILES) \
84  $(libbcc_mips_androidbitcode_SRC_FILES) \
85  $(libbcc_x86_androidbitcode_SRC_FILES) \
86
87include $(LIBBCC_HOST_BUILD_MK)
88include $(LIBBCC_GEN_CONFIG_MK)
89include $(MCLD_HOST_BUILD_MK)
90include $(BUILD_HOST_STATIC_LIBRARY)
91