John Stultz | 98e17f6 | 2018-04-11 15:33:22 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | define add-vndk-sp-lib |
| 4 | include $$(CLEAR_VARS) |
| 5 | LOCAL_MODULE := $1.vndk-sp |
| 6 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 7 | LOCAL_PREBUILT_MODULE_FILE := $$(TARGET_OUT)/lib/$1.so |
| 8 | LOCAL_MULTILIB := 32 |
| 9 | LOCAL_MODULE_TAGS := optional |
| 10 | LOCAL_INSTALLED_MODULE_STEM := $1.so |
| 11 | LOCAL_MODULE_SUFFIX := .so |
| 12 | LOCAL_MODULE_RELATIVE_PATH := vndk-sp |
| 13 | include $$(BUILD_PREBUILT) |
| 14 | |
| 15 | include $$(CLEAR_VARS) |
| 16 | LOCAL_MODULE := $1.vndk-sp |
| 17 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 18 | LOCAL_PREBUILT_MODULE_FILE := $$(TARGET_OUT)/lib64/$1.so |
| 19 | LOCAL_MULTILIB := 64 |
| 20 | LOCAL_MODULE_TAGS := optional |
| 21 | LOCAL_INSTALLED_MODULE_STEM := $1.so |
| 22 | LOCAL_MODULE_SUFFIX := .so |
| 23 | LOCAL_MODULE_RELATIVE_PATH := vndk-sp |
| 24 | include $$(BUILD_PREBUILT) |
| 25 | endef |
| 26 | |
| 27 | $(foreach lib,$(VNDK_SP_LIBRARIES),\ |
| 28 | $(eval $(call add-vndk-sp-lib,$(lib)))) |