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) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 19 | |
| 20 | #===================================================================== |
| 21 | # Common: libbccExecutionEngine |
| 22 | #===================================================================== |
| 23 | |
| 24 | libbcc_executionengine_SRC_FILES := \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame^] | 25 | BCCContext.cpp \ |
| 26 | BCCContextImpl.cpp \ |
Zonr Chang | ee69009 | 2012-04-12 12:19:15 +0800 | [diff] [blame] | 27 | BCCRuntimeSymbolResolver.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame^] | 28 | Compiler.cpp \ |
| 29 | CompilerConfig.cpp \ |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 30 | ELFObjectLoaderImpl.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame^] | 31 | FileBase.cpp \ |
Daniel Malea | 094881f | 2011-12-14 17:39:16 -0500 | [diff] [blame] | 32 | GDBJIT.cpp \ |
| 33 | GDBJITRegistrar.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame^] | 34 | Initialization.cpp \ |
| 35 | InputFile.cpp \ |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 36 | ObjectLoader.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame^] | 37 | OutputFile.cpp \ |
| 38 | RSCompiler.cpp \ |
| 39 | RSCompilerDriver.cpp \ |
| 40 | RSExecutable.cpp \ |
| 41 | RSForEachExpand.cpp \ |
| 42 | RSInfo.cpp \ |
| 43 | RSInfoExtractor.cpp \ |
| 44 | RSInfoReader.cpp \ |
| 45 | RSInfoWriter.cpp \ |
| 46 | RSScript.cpp \ |
| 47 | BCCRuntimeStub.c \ |
| 48 | Script.cpp \ |
| 49 | Sha1Helper.cpp \ |
| 50 | Source.cpp \ |
Zonr Chang | ee69009 | 2012-04-12 12:19:15 +0800 | [diff] [blame] | 51 | SymbolResolverProxy.cpp \ |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame^] | 52 | SymbolResolvers.cpp \ |
| 53 | TargetCompilerConfigs.cpp \ |
| 54 | bcc.cpp |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 55 | |
| 56 | #===================================================================== |
| 57 | # Device Static Library: libbccExecutionEngine |
| 58 | #===================================================================== |
| 59 | |
| 60 | include $(CLEAR_VARS) |
| 61 | |
| 62 | LOCAL_MODULE := libbccExecutionEngine |
| 63 | LOCAL_MODULE_TAGS := optional |
| 64 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 65 | |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 66 | LOCAL_C_INCLUDES := \ |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 67 | $(RSLOADER_ROOT_PATH) \ |
| 68 | $(RSLOADER_ROOT_PATH)/include |
Zonr Chang | fa52e20 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 69 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 70 | LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame^] | 71 | LOCAL_SHARED_LIBRARIES := libbcinfo |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 72 | |
Zonr Chang | fa52e20 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 73 | include $(LIBBCC_DEVICE_BUILD_MK) |
| 74 | include $(LIBBCC_GEN_CONFIG_MK) |
| 75 | include $(LLVM_DEVICE_BUILD_MK) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 76 | include $(BUILD_STATIC_LIBRARY) |
| 77 | |
| 78 | |
| 79 | #===================================================================== |
| 80 | # Host Static Library: libbccExecutionEngine |
| 81 | #===================================================================== |
| 82 | |
| 83 | include $(CLEAR_VARS) |
| 84 | |
| 85 | LOCAL_MODULE := libbccExecutionEngine |
| 86 | LOCAL_MODULE_TAGS := optional |
| 87 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 88 | |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 89 | LOCAL_C_INCLUDES := \ |
Zonr Chang | bf6498e | 2012-04-13 14:35:45 +0800 | [diff] [blame] | 90 | $(RSLOADER_ROOT_PATH) \ |
| 91 | $(RSLOADER_ROOT_PATH)/include |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 92 | |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 93 | LOCAL_SRC_FILES := $(libbcc_executionengine_SRC_FILES) |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame^] | 94 | LOCAL_SHARED_LIBRARIES := libbcinfo |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 95 | |
Zonr Chang | fa52e20 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 96 | include $(LIBBCC_HOST_BUILD_MK) |
| 97 | include $(LIBBCC_GEN_CONFIG_MK) |
| 98 | include $(LLVM_HOST_BUILD_MK) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 99 | include $(BUILD_HOST_STATIC_LIBRARY) |