Android.mk revision ddf5661793de8fb4e16906b7f7822972fcb13c6d
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  BCCContext.cpp \
26  BCCContextImpl.cpp \
27  BCCRuntimeSymbolResolver.cpp \
28  Compiler.cpp \
29  CompilerConfig.cpp \
30  ELFObjectLoaderImpl.cpp \
31  FileBase.cpp \
32  GDBJIT.cpp \
33  GDBJITRegistrar.cpp \
34  Initialization.cpp \
35  InputFile.cpp \
36  ObjectLoader.cpp \
37  OutputFile.cpp \
38  RSCompiler.cpp \
39  RSCompilerDriver.cpp \
40  RSExecutable.cpp \
41  RSForEachExpand.cpp \
42  RSInfo.cpp \
43  RSInfoExtractor.cpp \
44  RSInfoReader.cpp \
45  RSInfoWriter.cpp \
46  RSScript.cpp \
47  BCCRuntimeStub.c \
48  Script.cpp \
49  Sha1Helper.cpp \
50  Source.cpp \
51  SymbolResolverProxy.cpp \
52  SymbolResolvers.cpp \
53  TargetCompilerConfigs.cpp \
54  bcc.cpp
55
56#=====================================================================
57# Device Static Library: libbccExecutionEngine
58#=====================================================================
59
60include $(CLEAR_VARS)
61
62LOCAL_MODULE := libbccExecutionEngine
63LOCAL_MODULE_TAGS := optional
64LOCAL_MODULE_CLASS := STATIC_LIBRARIES
65
66LOCAL_C_INCLUDES := \
67  $(RSLOADER_ROOT_PATH) \
68  $(RSLOADER_ROOT_PATH)/include
69
70LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
71LOCAL_SHARED_LIBRARIES := libbcinfo
72
73include $(LIBBCC_DEVICE_BUILD_MK)
74include $(LIBBCC_GEN_CONFIG_MK)
75include $(LLVM_DEVICE_BUILD_MK)
76include $(BUILD_STATIC_LIBRARY)
77
78
79#=====================================================================
80# Host Static Library: libbccExecutionEngine
81#=====================================================================
82
83include $(CLEAR_VARS)
84
85LOCAL_MODULE := libbccExecutionEngine
86LOCAL_MODULE_TAGS := optional
87LOCAL_MODULE_CLASS := STATIC_LIBRARIES
88
89LOCAL_C_INCLUDES := \
90  $(RSLOADER_ROOT_PATH) \
91  $(RSLOADER_ROOT_PATH)/include
92
93LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
94LOCAL_SHARED_LIBRARIES := libbcinfo
95
96include $(LIBBCC_HOST_BUILD_MK)
97include $(LIBBCC_GEN_CONFIG_MK)
98include $(LLVM_HOST_BUILD_MK)
99include $(BUILD_HOST_STATIC_LIBRARY)
100