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

Commit 46229445 authored by Pirama Arumuga Nainar's avatar Pirama Arumuga Nainar Committed by android-build-merger
Browse files

Merge "Add libprofile-extras to all link steps when NATIVE_COVERAGE is...

Merge "Add libprofile-extras to all link steps when NATIVE_COVERAGE is enabled." am: f5c35100 am: eb7c5e39
am: 8550e069

Change-Id: Ifc823f7215e59e17cbb08aac0d7d714c6fa56e95
parents d75b4e61 8550e069
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -267,6 +267,20 @@ ifneq ($(LOCAL_SDK_VERSION),)
  endif
endif

ifeq ($(NATIVE_COVERAGE),true)
  ifndef LOCAL_IS_HOST_MODULE
    my_ldflags += -Wl,--wrap,getenv

    ifneq ($(LOCAL_MODULE_CLASS),STATIC_LIBRARIES)
      ifeq ($(LOCAL_SDK_VERSION),)
        my_whole_static_libraries += libprofile-extras
      else
        my_whole_static_libraries += libprofile-extras_ndk
      endif
    endif
  endif
endif

ifneq ($(LOCAL_USE_VNDK),)
  # Required VNDK version for vendor modules is BOARD_VNDK_VERSION.
  my_vndk_version := $(BOARD_VNDK_VERSION)