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