Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 1 | # |
| 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 | |
| 18 | LOCAL_PATH := $(call my-dir) |
| 19 | include $(LOCAL_PATH)/../../libbcc-config.mk |
| 20 | |
| 21 | #===================================================================== |
| 22 | # Common: libbccExecutionEngine |
| 23 | #===================================================================== |
| 24 | |
| 25 | libbcc_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 | |
| 36 | ifeq ($(libbcc_USE_CACHE),1) |
| 37 | libbcc_executionengine_SRC_FILES += \ |
| 38 | CacheReader.cpp \ |
| 39 | CacheWriter.cpp \ |
| 40 | ScriptCached.cpp \ |
| 41 | Sha1Helper.cpp \ |
| 42 | MCCacheWriter.cpp \ |
| 43 | MCCacheReader.cpp |
| 44 | endif |
| 45 | |
| 46 | |
| 47 | #===================================================================== |
| 48 | # Device Static Library: libbccExecutionEngine |
| 49 | #===================================================================== |
| 50 | |
| 51 | include $(CLEAR_VARS) |
| 52 | |
| 53 | LOCAL_MODULE := libbccExecutionEngine |
| 54 | LOCAL_MODULE_TAGS := optional |
| 55 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame^] | 56 | |
| 57 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 58 | LOCAL_CFLAGS += -DTARGET_BUILD |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame^] | 59 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 60 | LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) |
| 61 | LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) |
| 62 | |
| 63 | include $(LLVM_ROOT_PATH)/llvm-device-build.mk |
| 64 | include $(BUILD_STATIC_LIBRARY) |
| 65 | |
| 66 | |
| 67 | #===================================================================== |
| 68 | # Host Static Library: libbccExecutionEngine |
| 69 | #===================================================================== |
| 70 | |
| 71 | include $(CLEAR_VARS) |
| 72 | |
| 73 | LOCAL_MODULE := libbccExecutionEngine |
| 74 | LOCAL_MODULE_TAGS := optional |
| 75 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame^] | 76 | |
| 77 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 78 | LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame^] | 79 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 80 | LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) |
| 81 | |
| 82 | include $(LLVM_ROOT_PATH)/llvm-host-build.mk |
| 83 | include $(BUILD_HOST_STATIC_LIBRARY) |