blob: 8c78cd0a514c3639008daf26c812f933a6db3459 [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)
Stephen Hinesb8ef6902012-05-03 12:27:24 -070019include $(LOCAL_PATH)/../../libbcc-config.mk
Logan Chien74396852011-07-12 15:50:26 +080020
21#=====================================================================
22# Common: libbccExecutionEngine
23#=====================================================================
24
25libbcc_executionengine_SRC_FILES := \
Stephen Hines2f6a4932012-05-03 12:27:13 -070026 BCCContext.cpp \
27 BCCContextImpl.cpp \
Zonr Changee690092012-04-12 12:19:15 +080028 BCCRuntimeSymbolResolver.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070029 Compiler.cpp \
30 CompilerConfig.cpp \
Zonr Changbf6498e2012-04-13 14:35:45 +080031 ELFObjectLoaderImpl.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070032 FileBase.cpp \
Daniel Malea094881f2011-12-14 17:39:16 -050033 GDBJIT.cpp \
34 GDBJITRegistrar.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070035 Initialization.cpp \
36 InputFile.cpp \
Zonr Changbf6498e2012-04-13 14:35:45 +080037 ObjectLoader.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070038 OutputFile.cpp \
39 RSCompiler.cpp \
40 RSCompilerDriver.cpp \
41 RSExecutable.cpp \
42 RSForEachExpand.cpp \
43 RSInfo.cpp \
44 RSInfoExtractor.cpp \
45 RSInfoReader.cpp \
46 RSInfoWriter.cpp \
47 RSScript.cpp \
48 BCCRuntimeStub.c \
49 Script.cpp \
50 Sha1Helper.cpp \
51 Source.cpp \
Zonr Changee690092012-04-12 12:19:15 +080052 SymbolResolverProxy.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070053 SymbolResolvers.cpp \
Stephen Hinesb8ef6902012-05-03 12:27:24 -070054 TargetCompilerConfigs.cpp
55
Logan Chien74396852011-07-12 15:50:26 +080056
57#=====================================================================
58# Device Static Library: libbccExecutionEngine
59#=====================================================================
60
61include $(CLEAR_VARS)
62
63LOCAL_MODULE := libbccExecutionEngine
64LOCAL_MODULE_TAGS := optional
65LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Logan Chien67005272011-07-14 19:51:54 +080066
Stephen Hinesb8ef6902012-05-03 12:27:24 -070067LOCAL_CFLAGS += $(libbcc_CFLAGS)
68LOCAL_CFLAGS += -DTARGET_BUILD
69
Zonr Changbf6498e2012-04-13 14:35:45 +080070LOCAL_C_INCLUDES := \
Stephen Hinesb8ef6902012-05-03 12:27:24 -070071 $(libbcc_C_INCLUDES) \
Zonr Changbf6498e2012-04-13 14:35:45 +080072 $(RSLOADER_ROOT_PATH) \
73 $(RSLOADER_ROOT_PATH)/include
Logan Chien74396852011-07-12 15:50:26 +080074LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
Stephen Hines2f6a4932012-05-03 12:27:13 -070075LOCAL_SHARED_LIBRARIES := libbcinfo
Logan Chien74396852011-07-12 15:50:26 +080076
Stephen Hinesb8ef6902012-05-03 12:27:24 -070077include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk
78include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk
79include $(LLVM_ROOT_PATH)/llvm-device-build.mk
Logan Chien74396852011-07-12 15:50:26 +080080include $(BUILD_STATIC_LIBRARY)
81
82
83#=====================================================================
84# Host Static Library: libbccExecutionEngine
85#=====================================================================
86
87include $(CLEAR_VARS)
88
89LOCAL_MODULE := libbccExecutionEngine
90LOCAL_MODULE_TAGS := optional
91LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Stephen Hinesb8ef6902012-05-03 12:27:24 -070092LOCAL_IS_HOST_MODULE := true
Logan Chien67005272011-07-14 19:51:54 +080093
Stephen Hinesb8ef6902012-05-03 12:27:24 -070094LOCAL_CFLAGS += $(libbcc_CFLAGS)
95LOCAL_CFLAGS += -D__HOST__
Zonr Changbf6498e2012-04-13 14:35:45 +080096LOCAL_C_INCLUDES := \
Stephen Hinesb8ef6902012-05-03 12:27:24 -070097 $(libbcc_C_INCLUDES) \
Zonr Changbf6498e2012-04-13 14:35:45 +080098 $(RSLOADER_ROOT_PATH) \
99 $(RSLOADER_ROOT_PATH)/include
Logan Chien67005272011-07-14 19:51:54 +0800100
Logan Chien74396852011-07-12 15:50:26 +0800101LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
Stephen Hines2f6a4932012-05-03 12:27:13 -0700102LOCAL_SHARED_LIBRARIES := libbcinfo
Logan Chien74396852011-07-12 15:50:26 +0800103
Stephen Hinesb8ef6902012-05-03 12:27:24 -0700104include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk
105include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk
106include $(LLVM_ROOT_PATH)/llvm-host-build.mk
Logan Chien74396852011-07-12 15:50:26 +0800107include $(BUILD_HOST_STATIC_LIBRARY)