OSDN Git Service

Fix broken url in offline preview docs
[android-x86/build.git] / core / prebuilt.mk
1 ###########################################################
2 ## Standard rules for copying files that are prebuilt
3 ##
4 ## Additional inputs from base_rules.make:
5 ## None.
6 ## 
7 ###########################################################
8
9 ifneq ($(LOCAL_PREBUILT_LIBS),)
10 $(error dont use LOCAL_PREBUILT_LIBS anymore LOCAL_PATH=$(LOCAL_PATH))
11 endif
12 ifneq ($(LOCAL_PREBUILT_EXECUTABLES),)
13 $(error dont use LOCAL_PREBUILT_EXECUTABLES anymore LOCAL_PATH=$(LOCAL_PATH))
14 endif
15 ifneq ($(LOCAL_PREBUILT_JAVA_LIBRARIES),)
16 $(error dont use LOCAL_PREBUILT_JAVA_LIBRARIES anymore LOCAL_PATH=$(LOCAL_PATH))
17 endif
18
19 include $(BUILD_SYSTEM)/base_rules.mk
20
21 # Deal with the OSX library timestamp issue when installing
22 # a prebuilt simulator library.
23 ifneq ($(filter STATIC_LIBRARIES SHARED_LIBRARIES,$(LOCAL_MODULE_CLASS)),)
24   prebuilt_module_is_a_library := true
25 else
26   prebuilt_module_is_a_library :=
27 endif
28
29 $(LOCAL_BUILT_MODULE) : $(LOCAL_PATH)/$(LOCAL_SRC_FILES) | $(ACP)
30         $(transform-prebuilt-to-target)
31 ifneq ($(prebuilt_module_is_a_library),)
32   ifneq ($(LOCAL_IS_HOST_MODULE),)
33         $(transform-host-ranlib-copy-hack)
34   else
35         $(transform-ranlib-copy-hack)
36   endif
37 endif