gecko-dev/mobile/android/geckoview_library
Nick Alexander 3cab90a5de Bug 1099501 - Export and use ANDROID_TOOLS where appropriate. r=snorp,bnicholson
In certain configurations, in particular when installing the Android SDK
using HomeBrew, one sees a configuration with symlinks like:

    [brian@brian-macbook git]$ ls -l /usr/local/Cellar/android-sdk/23.0.2/
    total 72
    ...
    lrwxr-xr-x   1 brian  admin    38 Nov 14 16:39 platforms -> ../../../var/lib/android-sdk/platforms
    ...
    drwxr-xr-x  26 brian  admin   884 Nov 14 17:43 tools

In this case, we have
ANDROID_SDK=/usr/local/Cellar/android-sdk/23.0.2/platforms/android-21.

It is an anti-pattern to use ANDORID_SDK/.. to find other paths in the
tree.  This pattern is used in at least two places:

1) When we try to find
/usr/local/Cellar/android-sdk/23.0.2/platforms/android-21/../../tools,
we end up in the /usr/local/var/lib subtree.  This patch works around
that by exporting and using ANDROID_TOOLS; ANDROID_TOOLS itself is
extracted using path matching, rather than following .. through the
filesystem.

2) We also need to use ANDROID_SDK_ROOT rather than
ANDROID_SDK/../.. through-out.

--HG--
extra : rebase_source : 5e0323a94f2b80550f17a624e16f338cdeec406d
2014-11-17 11:12:00 -08:00
..
.classpath Bug 880118 - Integrate the GeckoView library into the build system r=cpeterson 2013-08-23 16:36:01 -07:00
.project Bug 880118 - Integrate the GeckoView library into the build system r=cpeterson 2013-08-23 16:36:01 -07:00
AndroidManifest.xml.in bug 979438 - Unify android target SDK versions r=nalexander 2014-03-25 23:27:16 -04:00
Makefile.in Bug 1099501 - Export and use ANDROID_TOOLS where appropriate. r=snorp,bnicholson 2014-11-17 11:12:00 -08:00
build.xml bug 930062 - GeckoView library should support building as an ant project r=nalexander 2013-10-24 01:08:29 +02:00
local.properties.in Bug 1099501 - Export and use ANDROID_TOOLS where appropriate. r=snorp,bnicholson 2014-11-17 11:12:00 -08:00
moz.build Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal 2013-11-27 22:55:07 +09:00
project.properties.in bug 979438 - Unify android target SDK versions r=nalexander 2014-03-25 23:27:16 -04:00