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 \ |
| 30 | CompilerConfig.cpp \ |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 31 | ELFObjectLoaderImpl.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 32 | FileBase.cpp \ |
Daniel Malea | 094881f | 2011-12-14 17:39:16 -0500 | [diff] [blame] | 33 | GDBJIT.cpp \ |
| 34 | GDBJITRegistrar.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 35 | Initialization.cpp \ |
| 36 | InputFile.cpp \ |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 37 | ObjectLoader.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 38 | OutputFile.cpp \ |
| 39 | RSCompiler.cpp \ |
| 40 | RSCompilerDriver.cpp \ |
| 41 | RSExecutable.cpp \ |
| 42 | RSForEachExpand.cpp \ |
| 43 | RSInfo.cpp \ |
| 44 | RSInfoExtractor.cpp \ |
| 45 | RSInfoReader.cpp \ |
| 46 | RSInfoWriter.cpp \ |
| 47 | RSScript.cpp \ |
| 48 | BCCRuntimeStub.c \ |
| 49 | Script.cpp \ |
| 50 | Sha1Helper.cpp \ |
| 51 | Source.cpp \ |
Zonr Chang | ee69009 | 2012-04-12 12:19:15 +0800 | [diff] [blame] | 52 | SymbolResolverProxy.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 53 | SymbolResolvers.cpp \ |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame^] | 54 | TargetCompilerConfigs.cpp |
| 55 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 56 | |
| 57 | #===================================================================== |
| 58 | # Device Static Library: libbccExecutionEngine |
| 59 | #===================================================================== |
| 60 | |
| 61 | include $(CLEAR_VARS) |
| 62 | |
| 63 | LOCAL_MODULE := libbccExecutionEngine |
| 64 | LOCAL_MODULE_TAGS := optional |
| 65 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 66 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame^] | 67 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
| 68 | LOCAL_CFLAGS += -DTARGET_BUILD |
| 69 | |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 70 | LOCAL_C_INCLUDES := \ |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame^] | 71 | $(libbcc_C_INCLUDES) \ |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 72 | $(RSLOADER_ROOT_PATH) \ |
| 73 | $(RSLOADER_ROOT_PATH)/include |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 74 | LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 75 | LOCAL_SHARED_LIBRARIES := libbcinfo |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 76 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame^] | 77 | include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk |
| 78 | include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk |
| 79 | include $(LLVM_ROOT_PATH)/llvm-device-build.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 80 | include $(BUILD_STATIC_LIBRARY) |
| 81 | |
| 82 | |
| 83 | #===================================================================== |
| 84 | # Host Static Library: libbccExecutionEngine |
| 85 | #===================================================================== |
| 86 | |
| 87 | include $(CLEAR_VARS) |
| 88 | |
| 89 | LOCAL_MODULE := libbccExecutionEngine |
| 90 | LOCAL_MODULE_TAGS := optional |
| 91 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame^] | 92 | LOCAL_IS_HOST_MODULE := true |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 93 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame^] | 94 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
| 95 | LOCAL_CFLAGS += -D__HOST__ |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 96 | LOCAL_C_INCLUDES := \ |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame^] | 97 | $(libbcc_C_INCLUDES) \ |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 98 | $(RSLOADER_ROOT_PATH) \ |
| 99 | $(RSLOADER_ROOT_PATH)/include |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 100 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 101 | LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 102 | LOCAL_SHARED_LIBRARIES := libbcinfo |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 103 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame^] | 104 | include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk |
| 105 | include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk |
| 106 | include $(LLVM_ROOT_PATH)/llvm-host-build.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 107 | include $(BUILD_HOST_STATIC_LIBRARY) |