RFC: Aligning all of ANDROID_NDK_ROOT, ANDROID_NDK, ANDROID_SDK_ROOT, ANDROID_SDK

Friedrich W. H. Kossebau kossebau at kde.org
Wed Apr 20 20:15:39 UTC 2016


Am Mittwoch, 20. April 2016, 03:07:09 CEST schrieb Aleix Pol:
> On Tue, Apr 19, 2016 at 9:58 PM, Friedrich W. H. Kossebau
> 
> <kossebau at kde.org> wrote:
> > Hi,
> > 
> > I would like to propose to change the ECM Android toolchain file and
> > deprecate the var
> > 
> >         ANDROID_NDK
> > 
> > and instead use
> > 
> >         ANDROID_NDK_ROOT
> > 
> > Reasons are:
> > * consistent naming pattern with the other var ANDROID_SDK_ROOT
> > * ANDROID_NDK_ROOT seems more common than ANDROID_NDK in projects,
> > 
> >   by what searches showed me (though I could not find any "official"
> >   naming,
> >   but chromium developers also seem to use _ROOT:
> >   https://chromium.googlesource.com/chromium/chromium/+/master/build/andro
> >   id/
> > 
> > envsetup.sh
> > 
> > See http://api.kde.org/ecm/toolchain/Android.html for the current names
> > with the ECM toolchain file.
> > 
> > At the same time I also would like to have all KDE projects decide on the
> > same naming pattern. Currently there is a mixture (ECM file and those
> > apps having their own deploy scripts), which confuses surely not me:
> > 
> > GCompris:
> >    env vars:
> >                 both ANDROID_NDK & ANDROID_NDK_ROOT, same value
> >                 ANDROID_SDK_ROOT
> >         
> >         cmake var:
> >                 - (at least I could not find a related var)
> >                 ANDROID_SDK_ROOT
> > 
> > Marble:
> >         env vars:
> >                 ANDROID_NDK
> >                 ANDROID_SDK
> >         
> >         cmake vars:
> >                 QT_ANDROID_NDK_ROOT
> >                 QT_ANDROID_SDK_ROOT
> > 
> > I think we all agree that for synergy effects we should try to share the
> > same ECM Android toolchain :) And by what I see both GCompris and Marble,
> > while having their own package scripts, are trying to do that. But we
> > could improve with those var names, please :) And better now, before more
> > KDE apps for Android turn app (actually I start to work on one, that's
> > why I got into this mess when trying to set up a generic env).
> > 
> > Would you agree that ANDROID_NDK_ROOT & ANDROID_SDK_ROOT are best?
> > 
> > Then Qt Creator seems to have QT_ANDROID_SDK_ROOT, QT_ANDROID_NDK_ROOT in
> > use, oh well.
> > 
> > Opinions, please!
> 
> Makes sense to me. Predictability FTW.
> 
> Maybe you can leave the former name as fallback in case someone is
> using it and gets angry at you.

:) Sure, that should be avoided (not only for my sake).

> Can you send a patch about it? It will be easier to discuss over a patch.

Here a first draft: https://git.reviewboard.kde.org/r/127701/ Not yet 
completely sure how deprecation should be done best with ECM (and people 
documenting how to build the Android packages of their software and not 
requiring latest ECM versions).

Cheers
Friedrich




More information about the KDE-Android mailing list