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) |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 19 | include $(LOCAL_PATH)/../../libbcc-config.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 20 | |
| 21 | #===================================================================== |
| 22 | # Common: libbccExecutionEngine |
| 23 | #===================================================================== |
| 24 | |
| 25 | libbcc_executionengine_SRC_FILES := \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 26 | BCCContext.cpp \ |
| 27 | BCCContextImpl.cpp \ |
Zonr Chang | ee69009 | 2012-04-12 12:19:15 +0800 | [diff] [blame] | 28 | BCCRuntimeSymbolResolver.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 29 | Compiler.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 30 | FileBase.cpp \ |
Daniel Malea | 094881f | 2011-12-14 17:39:16 -0500 | [diff] [blame] | 31 | GDBJIT.cpp \ |
| 32 | GDBJITRegistrar.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 33 | InputFile.cpp \ |
Stephen Hines | 4a68b1c | 2012-05-03 12:28:14 -0700 | [diff] [blame] | 34 | MCCacheWriter.cpp \ |
| 35 | MCCacheReader.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 36 | OutputFile.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 37 | RSScript.cpp \ |
| 38 | BCCRuntimeStub.c \ |
| 39 | Script.cpp \ |
Stephen Hines | 4a68b1c | 2012-05-03 12:28:14 -0700 | [diff] [blame] | 40 | ScriptCached.cpp \ |
| 41 | ScriptCompiled.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 42 | Sha1Helper.cpp \ |
| 43 | Source.cpp \ |
Zonr Chang | ee69009 | 2012-04-12 12:19:15 +0800 | [diff] [blame] | 44 | SymbolResolverProxy.cpp \ |
Stephen Hines | ffbfa10 | 2012-05-03 12:29:00 -0700 | [diff] [blame] | 45 | SymbolResolvers.cpp |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 46 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 47 | |
| 48 | #===================================================================== |
| 49 | # Device Static Library: libbccExecutionEngine |
| 50 | #===================================================================== |
| 51 | |
| 52 | include $(CLEAR_VARS) |
| 53 | |
| 54 | LOCAL_MODULE := libbccExecutionEngine |
| 55 | LOCAL_MODULE_TAGS := optional |
| 56 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 57 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 58 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
| 59 | LOCAL_CFLAGS += -DTARGET_BUILD |
| 60 | |
Stephen Hines | addca8f | 2012-05-03 12:29:09 -0700 | [diff] [blame] | 61 | LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 62 | LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 63 | LOCAL_SHARED_LIBRARIES := libbcinfo |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 64 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 65 | include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk |
| 66 | include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk |
| 67 | include $(LLVM_ROOT_PATH)/llvm-device-build.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 68 | include $(BUILD_STATIC_LIBRARY) |
| 69 | |
| 70 | |
| 71 | #===================================================================== |
| 72 | # Host Static Library: libbccExecutionEngine |
| 73 | #===================================================================== |
| 74 | |
| 75 | include $(CLEAR_VARS) |
| 76 | |
| 77 | LOCAL_MODULE := libbccExecutionEngine |
| 78 | LOCAL_MODULE_TAGS := optional |
| 79 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 80 | LOCAL_IS_HOST_MODULE := true |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 81 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 82 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
| 83 | LOCAL_CFLAGS += -D__HOST__ |
Stephen Hines | addca8f | 2012-05-03 12:29:09 -0700 | [diff] [blame] | 84 | LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 85 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 86 | LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 87 | LOCAL_SHARED_LIBRARIES := libbcinfo |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 88 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 89 | include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk |
| 90 | include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk |
| 91 | include $(LLVM_ROOT_PATH)/llvm-host-build.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 92 | include $(BUILD_HOST_STATIC_LIBRARY) |