Android.mk revision c055e4e701f7c96f2a0b4cdd835bbf75427d5e68
1#
2# Copyright (C) 2011-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: libbccExecutionEngine
22#=====================================================================
23
24libbcc_executionengine_SRC_FILES := \
25  BCCRuntimeStub.c \
26  BCCRuntimeSymbolResolver.cpp \
27  ELFObjectLoaderImpl.cpp \
28  GDBJIT.cpp \
29  GDBJITRegistrar.cpp \
30  ObjectLoader.cpp \
31  SymbolResolverProxy.cpp \
32  SymbolResolvers.cpp
33
34#=====================================================================
35# Device Static Library: libbccExecutionEngine
36#=====================================================================
37
38include $(CLEAR_VARS)
39
40LOCAL_MODULE := libbccExecutionEngine
41LOCAL_MODULE_TAGS := optional
42LOCAL_MODULE_CLASS := STATIC_LIBRARIES
43
44LOCAL_C_INCLUDES := \
45  $(LIBBCC_ROOT_PATH) \
46  $(RSLOADER_ROOT_PATH) \
47  $(RSLOADER_ROOT_PATH)/include
48
49LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
50
51ifeq ($(strip $(TARGET_CPU_VARIANT)),cortex-a15)
52LOCAL_CFLAGS += -DHAS_HW_DIV
53endif
54
55include $(LIBBCC_DEVICE_BUILD_MK)
56include $(LIBBCC_GEN_CONFIG_MK)
57include $(LLVM_DEVICE_BUILD_MK)
58include $(BUILD_STATIC_LIBRARY)
59
60
61#=====================================================================
62# Host Static Library: libbccExecutionEngine
63#=====================================================================
64
65include $(CLEAR_VARS)
66
67LOCAL_MODULE := libbccExecutionEngine
68LOCAL_MODULE_TAGS := optional
69LOCAL_MODULE_CLASS := STATIC_LIBRARIES
70
71LOCAL_C_INCLUDES := \
72  $(LIBBCC_ROOT_PATH) \
73  $(RSLOADER_ROOT_PATH) \
74  $(RSLOADER_ROOT_PATH)/include
75
76LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
77
78include $(LIBBCC_HOST_BUILD_MK)
79include $(LIBBCC_GEN_CONFIG_MK)
80include $(LLVM_HOST_BUILD_MK)
81include $(BUILD_HOST_STATIC_LIBRARY)
82