blob: 2acb7f1b3b4c41fcd1dea39fd6a90288b7d3b1db [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
Logan Chien67005272011-07-14 19:51:54 +080056
57LOCAL_CFLAGS += $(libbcc_CFLAGS)
Logan Chien74396852011-07-12 15:50:26 +080058LOCAL_CFLAGS += -DTARGET_BUILD
Logan Chien67005272011-07-14 19:51:54 +080059
Logan Chien74396852011-07-12 15:50:26 +080060LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES)
61LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES)
62
63include $(LLVM_ROOT_PATH)/llvm-device-build.mk
64include $(BUILD_STATIC_LIBRARY)
65
66
67#=====================================================================
68# Host Static Library: libbccExecutionEngine
69#=====================================================================
70
71include $(CLEAR_VARS)
72
73LOCAL_MODULE := libbccExecutionEngine
74LOCAL_MODULE_TAGS := optional
75LOCAL_MODULE_CLASS := STATIC_LIBRARIES
Logan Chien67005272011-07-14 19:51:54 +080076
77LOCAL_CFLAGS += $(libbcc_CFLAGS)
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)
81
82include $(LLVM_ROOT_PATH)/llvm-host-build.mk
83include $(BUILD_HOST_STATIC_LIBRARY)