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 | RSInfo.cpp \ |
| 38 | RSInfoExtractor.cpp \ |
| 39 | RSInfoReader.cpp \ |
| 40 | RSInfoWriter.cpp \ |
| 41 | RSScript.cpp \ |
| 42 | BCCRuntimeStub.c \ |
| 43 | Script.cpp \ |
Stephen Hines | 4a68b1c | 2012-05-03 12:28:14 -0700 | [diff] [blame] | 44 | ScriptCached.cpp \ |
| 45 | ScriptCompiled.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 46 | Sha1Helper.cpp \ |
| 47 | Source.cpp \ |
Zonr Chang | ee69009 | 2012-04-12 12:19:15 +0800 | [diff] [blame] | 48 | SymbolResolverProxy.cpp \ |
Stephen Hines | ffbfa10 | 2012-05-03 12:29:00 -0700 | [diff] [blame] | 49 | SymbolResolvers.cpp |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 50 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 51 | |
| 52 | #===================================================================== |
| 53 | # Device Static Library: libbccExecutionEngine |
| 54 | #===================================================================== |
| 55 | |
| 56 | include $(CLEAR_VARS) |
| 57 | |
| 58 | LOCAL_MODULE := libbccExecutionEngine |
| 59 | LOCAL_MODULE_TAGS := optional |
| 60 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 61 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 62 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
| 63 | LOCAL_CFLAGS += -DTARGET_BUILD |
| 64 | |
Stephen Hines | addca8f | 2012-05-03 12:29:09 -0700 | [diff] [blame^] | 65 | LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 66 | LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 67 | LOCAL_SHARED_LIBRARIES := libbcinfo |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 68 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 69 | include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk |
| 70 | include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk |
| 71 | include $(LLVM_ROOT_PATH)/llvm-device-build.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 72 | include $(BUILD_STATIC_LIBRARY) |
| 73 | |
| 74 | |
| 75 | #===================================================================== |
| 76 | # Host Static Library: libbccExecutionEngine |
| 77 | #===================================================================== |
| 78 | |
| 79 | include $(CLEAR_VARS) |
| 80 | |
| 81 | LOCAL_MODULE := libbccExecutionEngine |
| 82 | LOCAL_MODULE_TAGS := optional |
| 83 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 84 | LOCAL_IS_HOST_MODULE := true |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 85 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 86 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
| 87 | LOCAL_CFLAGS += -D__HOST__ |
Stephen Hines | addca8f | 2012-05-03 12:29:09 -0700 | [diff] [blame^] | 88 | LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 89 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 90 | LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 91 | LOCAL_SHARED_LIBRARIES := libbcinfo |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 92 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 93 | include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk |
| 94 | include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk |
| 95 | include $(LLVM_ROOT_PATH)/llvm-host-build.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 96 | include $(BUILD_HOST_STATIC_LIBRARY) |