blob: f3b2c3dc9bf176d21a28d2ad8e889d0ed6b88e3d [file] [log] [blame]
Logan Chien74396852011-07-12 15:50:26 +08001#
Zonr Changc09dee62012-04-12 17:15:30 +08002# Copyright (C) 2011-2012 The Android Open Source Project
Logan Chien74396852011-07-12 15:50:26 +08003#
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)
Logan Chien74396852011-07-12 15:50:26 +080019
20#=====================================================================
21# Common: libbccExecutionEngine
22#=====================================================================
23
24libbcc_executionengine_SRC_FILES := \
Stephen Hines2f6a4932012-05-03 12:27:13 -070025 BCCContext.cpp \
26 BCCContextImpl.cpp \
Zonr Changee690092012-04-12 12:19:15 +080027 BCCRuntimeSymbolResolver.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070028 Compiler.cpp \
29 CompilerConfig.cpp \
Zonr Changbf6498e2012-04-13 14:35:45 +080030 ELFObjectLoaderImpl.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070031 FileBase.cpp \
Daniel Malea094881f2011-12-14 17:39:16 -050032 GDBJIT.cpp \
33 GDBJITRegistrar.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070034 Initialization.cpp \
35 InputFile.cpp \
Zonr Changbf6498e2012-04-13 14:35:45 +080036 ObjectLoader.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070037 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 \
Zonr Changee690092012-04-12 12:19:15 +080051 SymbolResolverProxy.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070052 SymbolResolvers.cpp \
53 TargetCompilerConfigs.cpp \
54 bcc.cpp
Logan Chien74396852011-07-12 15:50:26 +080055
56#=====================================================================
57# Device Static Library: libbccExecutionEngine
58#=====================================================================
59
60include $(CLEAR_VARS)
61
62LOCAL_MODULE := libbccExecutionEngine
63LOCAL_MODULE_TAGS := optional
64LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Logan Chien67005272011-07-14 19:51:54 +080065
Zonr Changbf6498e2012-04-13 14:35:45 +080066LOCAL_C_INCLUDES := \
Zonr Changbf6498e2012-04-13 14:35:45 +080067 $(RSLOADER_ROOT_PATH) \
68 $(RSLOADER_ROOT_PATH)/include
Zonr Changfa52e202012-04-12 15:38:42 +080069
Logan Chien74396852011-07-12 15:50:26 +080070LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
Stephen Hines2f6a4932012-05-03 12:27:13 -070071LOCAL_SHARED_LIBRARIES := libbcinfo
Logan Chien74396852011-07-12 15:50:26 +080072
Zonr Changfa52e202012-04-12 15:38:42 +080073include $(LIBBCC_DEVICE_BUILD_MK)
74include $(LIBBCC_GEN_CONFIG_MK)
75include $(LLVM_DEVICE_BUILD_MK)
Logan Chien74396852011-07-12 15:50:26 +080076include $(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
Logan Chien67005272011-07-14 19:51:54 +080088
Zonr Changbf6498e2012-04-13 14:35:45 +080089LOCAL_C_INCLUDES := \
Zonr Changbf6498e2012-04-13 14:35:45 +080090 $(RSLOADER_ROOT_PATH) \
91 $(RSLOADER_ROOT_PATH)/include
Logan Chien67005272011-07-14 19:51:54 +080092
Logan Chien74396852011-07-12 15:50:26 +080093LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
Stephen Hines2f6a4932012-05-03 12:27:13 -070094LOCAL_SHARED_LIBRARIES := libbcinfo
Logan Chien74396852011-07-12 15:50:26 +080095
Zonr Changfa52e202012-04-12 15:38:42 +080096include $(LIBBCC_HOST_BUILD_MK)
97include $(LIBBCC_GEN_CONFIG_MK)
98include $(LLVM_HOST_BUILD_MK)
Logan Chien74396852011-07-12 15:50:26 +080099include $(BUILD_HOST_STATIC_LIBRARY)