-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "wayne: Update vndk-sp build mechanism and library set.""
This reverts commit f40c0a7. Change-Id: I2149adfb3787458d6091ca96e198b37f0bab6e08
- Loading branch information
1 parent
ed93546
commit ec36531
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
LOCAL_PATH := $(call my-dir) | ||
|
||
include $(LOCAL_PATH)/vndk-sp-libs.mk | ||
|
||
define define-vndk-sp-lib | ||
include $$(CLEAR_VARS) | ||
LOCAL_MODULE := $1.vndk-sp-gen | ||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES | ||
LOCAL_PREBUILT_MODULE_FILE := $$(TARGET_OUT_INTERMEDIATE_LIBRARIES)/$1.so | ||
LOCAL_STRIP_MODULE := false | ||
LOCAL_MULTILIB := first | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_INSTALLED_MODULE_STEM := $1.so | ||
LOCAL_MODULE_SUFFIX := .so | ||
LOCAL_MODULE_RELATIVE_PATH := vndk-sp | ||
include $$(BUILD_PREBUILT) | ||
|
||
ifneq ($$(TARGET_2ND_ARCH),) | ||
ifneq ($$(TARGET_TRANSLATE_2ND_ARCH),true) | ||
include $$(CLEAR_VARS) | ||
LOCAL_MODULE := $1.vndk-sp-gen | ||
LOCAL_MODULE_CLASS := SHARED_LIBRARIES | ||
LOCAL_PREBUILT_MODULE_FILE := $$($$(TARGET_2ND_ARCH_VAR_PREFIX)TARGET_OUT_INTERMEDIATE_LIBRARIES)/$1.so | ||
LOCAL_STRIP_MODULE := false | ||
LOCAL_MULTILIB := 32 | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_INSTALLED_MODULE_STEM := $1.so | ||
LOCAL_MODULE_SUFFIX := .so | ||
LOCAL_MODULE_RELATIVE_PATH := vndk-sp | ||
include $$(BUILD_PREBUILT) | ||
endif # TARGET_TRANSLATE_2ND_ARCH is not true | ||
endif # TARGET_2ND_ARCH is not empty | ||
endef | ||
|
||
$(foreach lib,$(VNDK_SP_LIBRARIES),\ | ||
$(eval $(call define-vndk-sp-lib,$(lib)))) | ||
|
||
include $(CLEAR_VARS) | ||
LOCAL_MODULE := vndk-sp | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_REQUIRED_MODULES := $(addsuffix .vndk-sp-gen,$(VNDK_SP_LIBRARIES)) | ||
include $(BUILD_PHONY_PACKAGE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
VNDK_SP_LIBRARIES := \ | ||
android.hardware.graphics.allocator@2.0 \ | ||
android.hardware.graphics.mapper@2.0 \ | ||
android.hardware.graphics.common@1.0 \ | ||
android.hardware.renderscript@1.0 \ | ||
android.hidl.base@1.0 \ | ||
android.hidl.memory@1.0 \ | ||
libRSCpuRef \ | ||
libRSDriver \ | ||
libRS_internal \ | ||
libbacktrace \ | ||
libbase \ | ||
libbcinfo \ | ||
libblas \ | ||
libc++ \ | ||
libcompiler_rt \ | ||
libcutils \ | ||
libft2 \ | ||
libhardware \ | ||
libhidlbase \ | ||
libhidlmemory \ | ||
libhidltransport \ | ||
libhwbinder \ | ||
libion \ | ||
liblzma \ | ||
libpng \ | ||
libunwind \ | ||
libutils \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters