Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 1 | # |
Zonr Chang | c09dee6 | 2012-04-12 17:15:30 +0800 | [diff] [blame^] | 2 | # Copyright (C) 2011-2012 The Android Open Source Project |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 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 := \ |
Zonr Chang | c09dee6 | 2012-04-12 17:15:30 +0800 | [diff] [blame^] | 26 | BCCContext.cpp \ |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 27 | Compiler.cpp \ |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 28 | FileHandle.cpp \ |
Daniel Malea | 094881f | 2011-12-14 17:39:16 -0500 | [diff] [blame] | 29 | GDBJIT.cpp \ |
| 30 | GDBJITRegistrar.cpp \ |
Stephen Hines | 0e56786 | 2012-03-11 20:26:40 -0700 | [diff] [blame] | 31 | MCCacheWriter.cpp \ |
| 32 | MCCacheReader.cpp \ |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 33 | Runtime.c \ |
| 34 | RuntimeStub.c \ |
| 35 | Script.cpp \ |
Logan Chien | d2a5f30 | 2011-07-19 20:32:25 +0800 | [diff] [blame] | 36 | ScriptCached.cpp \ |
Stephen Hines | 0e56786 | 2012-03-11 20:26:40 -0700 | [diff] [blame] | 37 | ScriptCompiled.cpp \ |
| 38 | Sha1Helper.cpp \ |
| 39 | SourceInfo.cpp |
Logan Chien | d2a5f30 | 2011-07-19 20:32:25 +0800 | [diff] [blame] | 40 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 41 | |
| 42 | #===================================================================== |
| 43 | # Device Static Library: libbccExecutionEngine |
| 44 | #===================================================================== |
| 45 | |
| 46 | include $(CLEAR_VARS) |
| 47 | |
| 48 | LOCAL_MODULE := libbccExecutionEngine |
| 49 | LOCAL_MODULE_TAGS := optional |
| 50 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 51 | |
| 52 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 53 | LOCAL_CFLAGS += -DTARGET_BUILD |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 54 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 55 | LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) |
| 56 | LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) |
Stephen Hines | 569986d | 2012-03-09 19:58:45 -0800 | [diff] [blame] | 57 | LOCAL_SHARED_LIBRARIES := libbcinfo |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 58 | |
Logan Chien | eb56784 | 2011-07-14 19:58:42 +0800 | [diff] [blame] | 59 | include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk |
Logan Chien | 3bb7707 | 2011-09-17 16:53:53 +0800 | [diff] [blame] | 60 | include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 61 | include $(LLVM_ROOT_PATH)/llvm-device-build.mk |
| 62 | include $(BUILD_STATIC_LIBRARY) |
| 63 | |
| 64 | |
| 65 | #===================================================================== |
| 66 | # Host Static Library: libbccExecutionEngine |
| 67 | #===================================================================== |
| 68 | |
| 69 | include $(CLEAR_VARS) |
| 70 | |
| 71 | LOCAL_MODULE := libbccExecutionEngine |
| 72 | LOCAL_MODULE_TAGS := optional |
| 73 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Logan Chien | 57991d7 | 2011-07-14 19:57:14 +0800 | [diff] [blame] | 74 | LOCAL_IS_HOST_MODULE := true |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 75 | |
| 76 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
Andrew Hsieh | 998ec83 | 2011-11-21 02:36:11 -0800 | [diff] [blame] | 77 | LOCAL_CFLAGS += -D__HOST__ |
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) |
Stephen Hines | 569986d | 2012-03-09 19:58:45 -0800 | [diff] [blame] | 81 | LOCAL_SHARED_LIBRARIES := libbcinfo |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 82 | |
Logan Chien | eb56784 | 2011-07-14 19:58:42 +0800 | [diff] [blame] | 83 | include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk |
Logan Chien | 3bb7707 | 2011-09-17 16:53:53 +0800 | [diff] [blame] | 84 | include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 85 | include $(LLVM_ROOT_PATH)/llvm-host-build.mk |
| 86 | include $(BUILD_HOST_STATIC_LIBRARY) |