blob: 7ef45ddd89d41dd0cfd4ac2485e0b0d32371c2d3 [file] [log] [blame]
Logan Chien74396852011-07-12 15:50:26 +08001#
2# Copyright (C) 2011 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)
19include $(LOCAL_PATH)/../../libbcc-config.mk
20
21#=====================================================================
22# Common: libbccExecutionEngine
23#=====================================================================
24
25libbcc_executionengine_SRC_FILES := \
26 bcc.cpp \
27 Compiler.cpp \
28 ContextManager.cpp \
29 FileHandle.cpp \
30 Runtime.c \
31 RuntimeStub.c \
32 Script.cpp \
33 ScriptCompiled.cpp \
34 SourceInfo.cpp
35
36ifeq ($(libbcc_USE_CACHE),1)
37libbcc_executionengine_SRC_FILES += \
38 CacheReader.cpp \
39 CacheWriter.cpp \
40 ScriptCached.cpp \
41 Sha1Helper.cpp \
42 MCCacheWriter.cpp \
43 MCCacheReader.cpp
44endif
45
46
47#=====================================================================
48# Device Static Library: libbccExecutionEngine
49#=====================================================================
50
51include $(CLEAR_VARS)
52
53LOCAL_MODULE := libbccExecutionEngine
54LOCAL_MODULE_TAGS := optional
55LOCAL_MODULE_CLASS := STATIC_LIBRARIES
56LOCAL_CFLAGS += $(local_cflags_for_libbcc)
57LOCAL_CFLAGS += -DTARGET_BUILD
58LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES)
59LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
60
61include $(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
74LOCAL_CFLAGS += $(local_cflags_for_libbcc)
75LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES)
76LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
77
78include $(LLVM_ROOT_PATH)/llvm-host-build.mk
79include $(BUILD_HOST_STATIC_LIBRARY)