Bug 395763

Summary: file:/// as cmake toolchain file on android build
Product: [Applications] kdevelop Reporter: Valeri <v19930312>
Component: Build tools: CMakeAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, v19930312
Priority: NOR    
Version First Reported In: 5.2.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Valeri 2018-06-22 18:48:44 UTC
I try to use "Runtime: android" with my cmake project. It generates the following string:

/home/v/compile/2048_NG/abuild> /usr/bin/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug /home/v/compile/2048_NG -DCMAKE_TOOLCHAIN_FILE=file:///usr/share/ECM/toolchain/Android.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NDK=file:/home/v/compile/android-ndk-r17/ -DANDROID_TOOLCHAIN=arm-linux-androideabi -DANDROID_API_LEVEL=14 -DANDROID_ARCHITECTURE=arm -DANDROID_SDK_BUILD_TOOLS_REVISION=21.1.1

CMake don't understand file:/// notation and crash.
Comment 1 Aleix Pol 2019-12-05 00:30:54 UTC
Git commit 815a84a7a59c1b0c47d92d348606d0184f25f39f by Aleix Pol, on behalf of Björn Stresing.
Committed on 05/12/2019 at 00:30.
Pushed by apol into branch 'master'.

Pass the android toolchain file path to CMake as a local file path not as a URI

Summary: BUG: 395763

Reviewers: apol

Reviewed By: apol

Subscribers: kdevelop-devel

Tags: #kdevelop

Differential Revision: https://phabricator.kde.org/D21936

M  +15   -3    plugins/android/androidpreferences.ui
M  +5    -5    plugins/android/androidruntime.cpp

https://invent.kde.org/kde/kdevelop/commit/815a84a7a59c1b0c47d92d348606d0184f25f39f