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