blob: 78850ddabb58194855d53130883742891b96e489 [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)
19include $(LOCAL_PATH)/../../libbcc-config.mk
20
21#=====================================================================
22# Common: libbccExecutionEngine
23#=====================================================================
24
25libbcc_executionengine_SRC_FILES := \
Zonr Changc09dee62012-04-12 17:15:30 +080026 BCCContext.cpp \
Logan Chien74396852011-07-12 15:50:26 +080027 Compiler.cpp \
Logan Chien74396852011-07-12 15:50:26 +080028 FileHandle.cpp \
Daniel Malea094881f2011-12-14 17:39:16 -050029 GDBJIT.cpp \
30 GDBJITRegistrar.cpp \
Stephen Hines0e567862012-03-11 20:26:40 -070031 MCCacheWriter.cpp \
32 MCCacheReader.cpp \
Logan Chien74396852011-07-12 15:50:26 +080033 Runtime.c \
34 RuntimeStub.c \
35 Script.cpp \
Logan Chiend2a5f302011-07-19 20:32:25 +080036 ScriptCached.cpp \
Stephen Hines0e567862012-03-11 20:26:40 -070037 ScriptCompiled.cpp \
38 Sha1Helper.cpp \
39 SourceInfo.cpp
Logan Chiend2a5f302011-07-19 20:32:25 +080040
Logan Chien74396852011-07-12 15:50:26 +080041
42#=====================================================================
43# Device Static Library: libbccExecutionEngine
44#=====================================================================
45
46include $(CLEAR_VARS)
47
48LOCAL_MODULE := libbccExecutionEngine
49LOCAL_MODULE_TAGS := optional
50LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Logan Chien67005272011-07-14 19:51:54 +080051
52LOCAL_CFLAGS += $(libbcc_CFLAGS)
Logan Chien74396852011-07-12 15:50:26 +080053LOCAL_CFLAGS += -DTARGET_BUILD
Logan Chien67005272011-07-14 19:51:54 +080054
Logan Chien74396852011-07-12 15:50:26 +080055LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES)
56LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
Stephen Hines569986d2012-03-09 19:58:45 -080057LOCAL_SHARED_LIBRARIES := libbcinfo
Logan Chien74396852011-07-12 15:50:26 +080058
Logan Chieneb567842011-07-14 19:58:42 +080059include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk
Logan Chien3bb77072011-09-17 16:53:53 +080060include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk
Logan Chien74396852011-07-12 15:50:26 +080061include $(LLVM_ROOT_PATH)/llvm-device-build.mk
62include $(BUILD_STATIC_LIBRARY)
63
64
65#=====================================================================
66# Host Static Library: libbccExecutionEngine
67#=====================================================================
68
69include $(CLEAR_VARS)
70
71LOCAL_MODULE := libbccExecutionEngine
72LOCAL_MODULE_TAGS := optional
73LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Logan Chien57991d72011-07-14 19:57:14 +080074LOCAL_IS_HOST_MODULE := true
Logan Chien67005272011-07-14 19:51:54 +080075
76LOCAL_CFLAGS += $(libbcc_CFLAGS)
Andrew Hsieh998ec832011-11-21 02:36:11 -080077LOCAL_CFLAGS += -D__HOST__
Logan Chien74396852011-07-12 15:50:26 +080078LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES)
Logan Chien67005272011-07-14 19:51:54 +080079
Logan Chien74396852011-07-12 15:50:26 +080080LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
Stephen Hines569986d2012-03-09 19:58:45 -080081LOCAL_SHARED_LIBRARIES := libbcinfo
Logan Chien74396852011-07-12 15:50:26 +080082
Logan Chieneb567842011-07-14 19:58:42 +080083include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk
Logan Chien3bb77072011-09-17 16:53:53 +080084include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk
Logan Chien74396852011-07-12 15:50:26 +080085include $(LLVM_ROOT_PATH)/llvm-host-build.mk
86include $(BUILD_HOST_STATIC_LIBRARY)