blob: 430f8722f1a030c51023778f9dba4501f4a2539d [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 \
Stephen Hines2f6a4932012-05-03 12:27:13 -070030 FileBase.cpp \
Daniel Malea094881f2011-12-14 17:39:16 -050031 GDBJIT.cpp \
32 GDBJITRegistrar.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070033 InputFile.cpp \
Stephen Hines4a68b1c2012-05-03 12:28:14 -070034 MCCacheWriter.cpp \
35 MCCacheReader.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070036 OutputFile.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070037 RSInfo.cpp \
38 RSInfoExtractor.cpp \
39 RSInfoReader.cpp \
40 RSInfoWriter.cpp \
41 RSScript.cpp \
42 BCCRuntimeStub.c \
43 Script.cpp \
Stephen Hines4a68b1c2012-05-03 12:28:14 -070044 ScriptCached.cpp \
45 ScriptCompiled.cpp \
Stephen Hines2f6a4932012-05-03 12:27:13 -070046 Sha1Helper.cpp \
47 Source.cpp \
Zonr Changee690092012-04-12 12:19:15 +080048 SymbolResolverProxy.cpp \
Stephen Hinesffbfa102012-05-03 12:29:00 -070049 SymbolResolvers.cpp
Stephen Hinesb8ef6902012-05-03 12:27:24 -070050
Logan Chien74396852011-07-12 15:50:26 +080051
52#=====================================================================
53# Device Static Library: libbccExecutionEngine
54#=====================================================================
55
56include $(CLEAR_VARS)
57
58LOCAL_MODULE := libbccExecutionEngine
59LOCAL_MODULE_TAGS := optional
60LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Logan Chien67005272011-07-14 19:51:54 +080061
Stephen Hinesb8ef6902012-05-03 12:27:24 -070062LOCAL_CFLAGS += $(libbcc_CFLAGS)
63LOCAL_CFLAGS += -DTARGET_BUILD
64
Stephen Hinesaddca8f2012-05-03 12:29:09 -070065LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES)
Logan Chien74396852011-07-12 15:50:26 +080066LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
Stephen Hines2f6a4932012-05-03 12:27:13 -070067LOCAL_SHARED_LIBRARIES := libbcinfo
Logan Chien74396852011-07-12 15:50:26 +080068
Stephen Hinesb8ef6902012-05-03 12:27:24 -070069include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk
70include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk
71include $(LLVM_ROOT_PATH)/llvm-device-build.mk
Logan Chien74396852011-07-12 15:50:26 +080072include $(BUILD_STATIC_LIBRARY)
73
74
75#=====================================================================
76# Host Static Library: libbccExecutionEngine
77#=====================================================================
78
79include $(CLEAR_VARS)
80
81LOCAL_MODULE := libbccExecutionEngine
82LOCAL_MODULE_TAGS := optional
83LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Stephen Hinesb8ef6902012-05-03 12:27:24 -070084LOCAL_IS_HOST_MODULE := true
Logan Chien67005272011-07-14 19:51:54 +080085
Stephen Hinesb8ef6902012-05-03 12:27:24 -070086LOCAL_CFLAGS += $(libbcc_CFLAGS)
87LOCAL_CFLAGS += -D__HOST__
Stephen Hinesaddca8f2012-05-03 12:29:09 -070088LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES)
Logan Chien67005272011-07-14 19:51:54 +080089
Logan Chien74396852011-07-12 15:50:26 +080090LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
Stephen Hines2f6a4932012-05-03 12:27:13 -070091LOCAL_SHARED_LIBRARIES := libbcinfo
Logan Chien74396852011-07-12 15:50:26 +080092
Stephen Hinesb8ef6902012-05-03 12:27:24 -070093include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk
94include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk
95include $(LLVM_ROOT_PATH)/llvm-host-build.mk
Logan Chien74396852011-07-12 15:50:26 +080096include $(BUILD_HOST_STATIC_LIBRARY)