Merge "Convert LOCAL_LOCAL_JNI_SHARED_LIBRARIES to LOCAL_REQUIRED_MODULES in a full build"
This commit is contained in:
commit
e4ff0b0042
1 changed files with 9 additions and 0 deletions
|
@ -87,6 +87,15 @@ ifeq ($(filter tests, $(LOCAL_MODULE_TAGS)),)
|
|||
LOCAL_AAPT_FLAGS := $(LOCAL_AAPT_FLAGS) -z
|
||||
endif
|
||||
|
||||
# Convert LOCAL_JNI_SHARED_LIBRARIES to LOCAL_REQUIRED_MODULES in full build,
|
||||
# for preloaded apks don't like embedded jni libraries.
|
||||
ifndef TARGET_BUILD_APPS
|
||||
ifdef LOCAL_JNI_SHARED_LIBRARIES
|
||||
LOCAL_REQUIRED_MODULES += $(LOCAL_JNI_SHARED_LIBRARIES)
|
||||
LOCAL_JNI_SHARED_LIBRARIES :=
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (,$(LOCAL_ASSET_DIR))
|
||||
LOCAL_ASSET_DIR := $(LOCAL_PATH)/assets
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue