1 # 2 # Copyright (C) 2010 The Android Open Source Project 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 LOCAL_PATH:= $(call my-dir) 18 19 ifneq (,$(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK))) 20 21 ################################## 22 include $(CLEAR_VARS) 23 24 # We can't simple call $(BUILD_PREBUILT) here, because $(ACP) is not 25 # available yet.. 26 27 LOCAL_MODULE := acp 28 LOCAL_IS_HOST_MODULE := true 29 LOCAL_MODULE_CLASS := EXECUTABLES 30 LOCAL_MODULE_TAGS := optional 31 32 $(ACP): $(LOCAL_PATH)/$(HOST_OS)/acp$(HOST_EXECUTABLE_SUFFIX) 33 @echo "Copy: acp ($@)" 34 $(copy-file-to-target-with-cp) 35 $(hide) chmod 755 $@ 36 37 ################################## 38 include $(CLEAR_VARS) 39 40 LOCAL_MODULE := aidl 41 LOCAL_SRC_FILES := $(HOST_OS)/aidl$(HOST_EXECUTABLE_SUFFIX) 42 LOCAL_MODULE_CLASS := EXECUTABLES 43 LOCAL_MODULE_TAGS := optional 44 LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) 45 LOCAL_BUILT_MODULE_STEM := aidl$(HOST_EXECUTABLE_SUFFIX) 46 LOCAL_IS_HOST_MODULE := true 47 48 include $(BUILD_PREBUILT) 49 50 ################################## 51 include $(CLEAR_VARS) 52 53 LOCAL_MODULE := aapt 54 LOCAL_SRC_FILES := $(HOST_OS)/aapt$(HOST_EXECUTABLE_SUFFIX) 55 LOCAL_MODULE_CLASS := EXECUTABLES 56 LOCAL_MODULE_TAGS := optional 57 LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) 58 LOCAL_BUILT_MODULE_STEM := aapt$(HOST_EXECUTABLE_SUFFIX) 59 LOCAL_IS_HOST_MODULE := true 60 61 include $(BUILD_PREBUILT) 62 63 ################################## 64 65 include $(CLEAR_VARS) 66 67 LOCAL_MODULE := zipalign 68 LOCAL_SRC_FILES := $(HOST_OS)/zipalign$(HOST_EXECUTABLE_SUFFIX) 69 LOCAL_MODULE_CLASS := EXECUTABLES 70 LOCAL_MODULE_TAGS := optional 71 LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) 72 LOCAL_BUILT_MODULE_STEM := zipalign$(HOST_EXECUTABLE_SUFFIX) 73 LOCAL_IS_HOST_MODULE := true 74 75 include $(BUILD_PREBUILT) 76 77 ################################## 78 include $(CLEAR_VARS) 79 80 LOCAL_MODULE := signapk 81 LOCAL_SRC_FILES := lib/signapk.jar 82 LOCAL_MODULE_CLASS := JAVA_LIBRARIES 83 LOCAL_MODULE_TAGS := optional 84 LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX) 85 LOCAL_BUILT_MODULE_STEM := signapk$(COMMON_JAVA_PACKAGE_SUFFIX) 86 LOCAL_IS_HOST_MODULE := true 87 88 include $(BUILD_PREBUILT) 89 90 ################################## 91 include $(CLEAR_VARS) 92 93 LOCAL_MODULE := dx 94 LOCAL_SRC_FILES := lib/dx.jar 95 LOCAL_MODULE_CLASS := JAVA_LIBRARIES 96 LOCAL_MODULE_TAGS := optional 97 LOCAL_MODULE_SUFFIX := $(COMMON_JAVA_PACKAGE_SUFFIX) 98 LOCAL_BUILT_MODULE_STEM := dx$(COMMON_JAVA_PACKAGE_SUFFIX) 99 LOCAL_IS_HOST_MODULE := true 100 101 include $(BUILD_PREBUILT) 102 103 ################################## 104 include $(CLEAR_VARS) 105 106 # We have to call copy-file-to-new-target instead of simply including 107 # $(BUILD_PREBUILT) here, because we must put dx.jar as dependecy of dx. 108 109 LOCAL_MODULE := dx 110 LOCAL_IS_HOST_MODULE := true 111 LOCAL_MODULE_CLASS := EXECUTABLES 112 LOCAL_MODULE_TAGS := optional 113 114 include $(BUILD_SYSTEM)/base_rules.mk 115 116 $(LOCAL_BUILT_MODULE): $(HOST_OUT_JAVA_LIBRARIES)/dx$(COMMON_JAVA_PACKAGE_SUFFIX) 117 $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/dx | $(ACP) 118 @echo "Copy: $(PRIVATE_MODULE) ($@)" 119 $(copy-file-to-new-target) 120 $(hide) chmod 755 $@ 121 122 ################################## 123 124 endif # TARGET_BUILD_APPS or TARGET_BUILD_PDK 125 126 # Only use these prebuilts in unbundled branches 127 # Don't use prebuilts in PDK 128 129 ifneq (,$(TARGET_BUILD_APPS)) 130 131 ################################## 132 include $(CLEAR_VARS) 133 134 LOCAL_MODULE := llvm-rs-cc 135 LOCAL_SRC_FILES := $(HOST_OS)/llvm-rs-cc$(HOST_EXECUTABLE_SUFFIX) 136 LOCAL_MODULE_CLASS := EXECUTABLES 137 LOCAL_MODULE_TAGS := optional 138 LOCAL_REQUIRED_MODULES := libLLVM libclang 139 LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) 140 LOCAL_BUILT_MODULE_STEM := llvm-rs-cc$(HOST_EXECUTABLE_SUFFIX) 141 LOCAL_IS_HOST_MODULE := true 142 143 include $(BUILD_PREBUILT) 144 145 ################################## 146 include $(CLEAR_VARS) 147 148 LOCAL_MODULE := bcc_compat 149 LOCAL_SRC_FILES := $(HOST_OS)/$(LOCAL_MODULE)$(HOST_EXECUTABLE_SUFFIX) 150 LOCAL_MODULE_CLASS := EXECUTABLES 151 LOCAL_MODULE_TAGS := optional 152 LOCAL_REQUIRED_MODULES := libbcc libbcinfo 153 LOCAL_MODULE_SUFFIX := $(HOST_EXECUTABLE_SUFFIX) 154 LOCAL_BUILT_MODULE_STEM := $(LOCAL_MODULE)$(HOST_EXECUTABLE_SUFFIX) 155 LOCAL_IS_HOST_MODULE := true 156 157 include $(BUILD_PREBUILT) 158 159 ################################## 160 include $(CLEAR_VARS) 161 162 LOCAL_MODULE := libbcc 163 LOCAL_SRC_FILES := $(HOST_OS)/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) 164 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 165 LOCAL_MODULE_TAGS := optional 166 LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) 167 LOCAL_IS_HOST_MODULE := true 168 169 include $(BUILD_PREBUILT) 170 171 ################################## 172 include $(CLEAR_VARS) 173 174 LOCAL_MODULE := libbcinfo 175 LOCAL_SRC_FILES := $(HOST_OS)/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) 176 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 177 LOCAL_MODULE_TAGS := optional 178 LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) 179 LOCAL_IS_HOST_MODULE := true 180 181 include $(BUILD_PREBUILT) 182 183 ################################## 184 185 include $(CLEAR_VARS) 186 187 LOCAL_MODULE := libLLVM 188 LOCAL_SRC_FILES := $(HOST_OS)/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) 189 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 190 LOCAL_MODULE_TAGS := optional 191 LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) 192 LOCAL_IS_HOST_MODULE := true 193 194 include $(BUILD_PREBUILT) 195 196 ################################## 197 include $(CLEAR_VARS) 198 199 LOCAL_MODULE := libclang 200 LOCAL_SRC_FILES := $(HOST_OS)/$(LOCAL_MODULE)$(HOST_SHLIB_SUFFIX) 201 LOCAL_MODULE_CLASS := SHARED_LIBRARIES 202 LOCAL_MODULE_TAGS := optional 203 LOCAL_MODULE_SUFFIX := $(HOST_SHLIB_SUFFIX) 204 LOCAL_IS_HOST_MODULE := true 205 206 include $(BUILD_PREBUILT) 207 208 ################################## 209 210 endif # TARGET_BUILD_APPS only 211