Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14a22504 authored by Jiyong Park's avatar Jiyong Park Committed by android-build-merger
Browse files

Merge "Prevent vendor libs from depending on private VNDK libraries" am:...

Merge "Prevent vendor libs from depending on private VNDK libraries" am: 492f67c0 am: 327a5119 am: b1d7b3a4
am: 2416dc8c

Change-Id: I3c641eab8cbb148df89824a899ed47b9f327db0b
parents 0f4fe049 2416dc8c
Loading
Loading
Loading
Loading
+16 −3
Original line number Original line Diff line number Diff line
@@ -1415,9 +1415,22 @@ my_link_type := native:ndk
my_warn_types :=
my_warn_types :=
my_allowed_types := native:ndk
my_allowed_types := native:ndk
else ifdef LOCAL_USE_VNDK
else ifdef LOCAL_USE_VNDK
    _name := $(patsubst %.vendor,%,$(LOCAL_MODULE))
    ifneq ($(filter $(_name),$(VNDK_CORE_LIBRARIES) $(VNDK_SAMEPROCESS_LIBRARIES) $(LLNDK_LIBRARIES)),)
        ifeq ($(filter $(_name),$(VNDK_PRIVATE_LIBRARIES)),)
            my_link_type := native:vndk
        else
            my_link_type := native:vndk_private
        endif
        my_warn_types :=
        my_allowed_types := native:vndk native:vndk_private
    else
        # Modules installed to /vendor cannot directly depend on modules marked
        # with vendor_available: false
        my_link_type := native:vendor
        my_link_type := native:vendor
        my_warn_types :=
        my_warn_types :=
my_allowed_types := native:vendor
        my_allowed_types := native:vendor native:vndk
    endif
else
else
my_link_type := native:platform
my_link_type := native:platform
my_warn_types :=
my_warn_types :=
+1 −1
Original line number Original line Diff line number Diff line
@@ -116,7 +116,7 @@ my_allowed_types := native:ndk
else
else
my_link_type := app:platform
my_link_type := app:platform
my_warn_types :=
my_warn_types :=
my_allowed_types := native:ndk native:platform native:vendor
my_allowed_types := native:ndk native:platform native:vendor native:vndk native:vndk_private
endif
endif


my_link_deps := $(addprefix SHARED_LIBRARIES:,$(LOCAL_JNI_SHARED_LIBRARIES))
my_link_deps := $(addprefix SHARED_LIBRARIES:,$(LOCAL_JNI_SHARED_LIBRARIES))
+10 −1
Original line number Original line Diff line number Diff line
@@ -176,7 +176,16 @@ export_cflags :=
ifdef LOCAL_SDK_VERSION
ifdef LOCAL_SDK_VERSION
my_link_type := native:ndk
my_link_type := native:ndk
else ifdef LOCAL_USE_VNDK
else ifdef LOCAL_USE_VNDK
    _name := $(patsubst %.vendor,%,$(LOCAL_MODULE))
    ifneq ($(filter $(_name),$(VNDK_CORE_LIBRARIES) $(VNDK_SAMEPROCESS_LIBRARIES) $(LLNDK_LIBRARIES)),)
        ifeq ($(filter $(_name),$(VNDK_PRIVATE_LIBRARIES)),)
            my_link_type := native:vndk
        else
            my_link_type := native:vndk_private
        endif
    else
        my_link_type := native:vendor
        my_link_type := native:vendor
    endif
else
else
my_link_type := native:platform
my_link_type := native:platform
endif
endif