summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobrun <tobrun.van.nuland@gmail.com>2017-10-12 10:41:25 +0200
committerTobrun <tobrun@mapbox.com>2017-10-12 22:49:25 +0200
commit06a18dd5485005ab87420c8e4c609f68984b7469 (patch)
tree62be486597d8bd8ad8ad7450c436abaa418387f4
parent78ea88d757ecf3a0a75b786ae343d746617ba46b (diff)
downloadqtlocation-mapboxgl-06a18dd5485005ab87420c8e4c609f68984b7469.tar.gz
[android] - add make target for ndk-stack
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b4863a9b9e..7bcb281985 100644
--- a/Makefile
+++ b/Makefile
@@ -553,6 +553,11 @@ run-android-ui-test-$1-%: platform/android/configuration.gradle
-adb uninstall com.mapbox.mapboxsdk.testapp 2> /dev/null
cd platform/android && $(MBGL_ANDROID_GRADLE) -Pmapbox.abis=$2 :MapboxGLAndroidSDKTestApp:connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.class="$$*"
+# Symbolicate native stack trace with the specified abi
+.PHONY: android-ndk-stack-$1
+android-ndk-stack-$1: platform/android/configuration.gradle
+ adb logcat | ndk-stack -sym platform/android/MapboxGLAndroidSDK/build/intermediates/cmake/debug/obj/$2/
+
endef
# Explodes the arguments into individual variables
@@ -641,6 +646,10 @@ android-lint-test-app: platform/android/configuration.gradle
android-javadoc: platform/android/configuration.gradle
cd platform/android && $(MBGL_ANDROID_GRADLE) -Pmapbox.abis=none :MapboxGLAndroidSDK:javadocrelease
+# Symbolicate ndk stack traces for the arm-v7 abi
+.PHONY: android-ndk-stack
+android-ndk-stack: android-ndk-stack-arm-v7
+
# Open Android Studio if machine is macos
ifeq ($(HOST_PLATFORM), macos)
.PHONY: aproj