Add support for JNI libraries to soong_app_prebuilt.mk
Use install_jni_libs_internal.mk to install JNI libraries alongside preinstalled APKs. APKs with embedded JNI libraries are handled within Soong. Bug: 80095087 Test: m checkbuild Change-Id: I2ecf10b6771dff14c940cc6e6442eb2ae43a75b0
This commit is contained in:
parent
4d36fcba8c
commit
0fa751ba68
|
@ -318,6 +318,7 @@ LOCAL_PACK_MODULE_RELOCATIONS_$(TARGET_ARCH):=
|
||||||
LOCAL_PREBUILT_JNI_LIBS_$(TARGET_ARCH):=
|
LOCAL_PREBUILT_JNI_LIBS_$(TARGET_ARCH):=
|
||||||
LOCAL_REQUIRED_MODULES_$(TARGET_ARCH):=
|
LOCAL_REQUIRED_MODULES_$(TARGET_ARCH):=
|
||||||
LOCAL_SHARED_LIBRARIES_$(TARGET_ARCH):=
|
LOCAL_SHARED_LIBRARIES_$(TARGET_ARCH):=
|
||||||
|
LOCAL_SOONG_JNI_LIBS_$(TARGET_ARCH):=
|
||||||
LOCAL_SRC_FILES_EXCLUDE_$(TARGET_ARCH):=
|
LOCAL_SRC_FILES_EXCLUDE_$(TARGET_ARCH):=
|
||||||
LOCAL_SRC_FILES_$(TARGET_ARCH):=
|
LOCAL_SRC_FILES_$(TARGET_ARCH):=
|
||||||
LOCAL_STATIC_LIBRARIES_$(TARGET_ARCH):=
|
LOCAL_STATIC_LIBRARIES_$(TARGET_ARCH):=
|
||||||
|
@ -340,6 +341,7 @@ LOCAL_PACK_MODULE_RELOCATIONS_$(TARGET_2ND_ARCH):=
|
||||||
LOCAL_PREBUILT_JNI_LIBS_$(TARGET_2ND_ARCH):=
|
LOCAL_PREBUILT_JNI_LIBS_$(TARGET_2ND_ARCH):=
|
||||||
LOCAL_REQUIRED_MODULES_$(TARGET_2ND_ARCH):=
|
LOCAL_REQUIRED_MODULES_$(TARGET_2ND_ARCH):=
|
||||||
LOCAL_SHARED_LIBRARIES_$(TARGET_2ND_ARCH):=
|
LOCAL_SHARED_LIBRARIES_$(TARGET_2ND_ARCH):=
|
||||||
|
LOCAL_SOONG_JNI_LIBS_$(TARGET_2ND_ARCH):=
|
||||||
LOCAL_SRC_FILES_EXCLUDE_$(TARGET_2ND_ARCH):=
|
LOCAL_SRC_FILES_EXCLUDE_$(TARGET_2ND_ARCH):=
|
||||||
LOCAL_SRC_FILES_$(TARGET_2ND_ARCH):=
|
LOCAL_SRC_FILES_$(TARGET_2ND_ARCH):=
|
||||||
LOCAL_STATIC_LIBRARIES_$(TARGET_2ND_ARCH):=
|
LOCAL_STATIC_LIBRARIES_$(TARGET_2ND_ARCH):=
|
||||||
|
|
|
@ -74,6 +74,25 @@ else
|
||||||
$(eval $(call copy-one-file,$(LOCAL_PREBUILT_MODULE_FILE),$(LOCAL_BUILT_MODULE)))
|
$(eval $(call copy-one-file,$(LOCAL_PREBUILT_MODULE_FILE),$(LOCAL_BUILT_MODULE)))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# embedded JNI will already have been handled by soong
|
||||||
|
my_embed_jni :=
|
||||||
|
my_prebuilt_jni_libs :=
|
||||||
|
ifdef LOCAL_SOONG_JNI_LIBS_$(TARGET_ARCH)
|
||||||
|
my_2nd_arch_prefix :=
|
||||||
|
LOCAL_JNI_SHARED_LIBRARIES := $(LOCAL_SOONG_JNI_LIBS_$(TARGET_ARCH))
|
||||||
|
include $(BUILD_SYSTEM)/install_jni_libs_internal.mk
|
||||||
|
endif
|
||||||
|
ifdef TARGET_2ND_ARCH
|
||||||
|
ifdef LOCAL_SOONG_JNI_LIBS_$(TARGET_2ND_ARCH)
|
||||||
|
my_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX)
|
||||||
|
LOCAL_JNI_SHARED_LIBRARIES := $(LOCAL_SOONG_JNI_LIBS_$(TARGET_2ND_ARCH))
|
||||||
|
include $(BUILD_SYSTEM)/install_jni_libs_internal.mk
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
LOCAL_SHARED_JNI_LIBRARIES :=
|
||||||
|
my_embed_jni :=
|
||||||
|
my_prebuilt_jni_libs :=
|
||||||
|
my_2nd_arch_prefix :=
|
||||||
|
|
||||||
PACKAGES := $(PACKAGES) $(LOCAL_MODULE)
|
PACKAGES := $(PACKAGES) $(LOCAL_MODULE)
|
||||||
ifdef LOCAL_CERTIFICATE
|
ifdef LOCAL_CERTIFICATE
|
||||||
|
|
Loading…
Reference in New Issue