Bug 1417232 - Part 0: Extract |mach android archive-geckoview|. r=ted.mielczarek

We've had good success with |mach android *| for invoking test suites
and other Gradle-related features; this was just an oversight.  The
real advantage is that almost all of the magic Gradle targets are now
in mobile/android/mach_commands.py and not scattered throughout the
tree.  That'll make it easier to move the actual Gradle configuration
choices forward in the future.

MozReview-Commit-ID: GI1pUHHfXeO

--HG--
extra : rebase_source : 9d7b98e968a2537f8dd1ffd0646c51ffe429bd57
This commit is contained in:
Nick Alexander 2017-11-10 09:05:57 -08:00
Родитель 8b284074f0
Коммит 2d84ab6e71
2 изменённых файлов: 17 добавлений и 4 удалений

Просмотреть файл

@ -289,6 +289,21 @@ class MachCommands(MachCommandBase):
return 0
@SubCommand('android', 'archive-geckoview',
"""Create GeckoView archives.
See http://firefox-source-docs.mozilla.org/build/buildsystem/toolchains.html#firefox-for-android-with-gradle""")
@CommandArgument('args', nargs=argparse.REMAINDER)
def android_archive_geckoview(self, args):
gradle_targets = [
'geckoview:assembleWithGeckoBinaries',
'geckoview_example:assembleWithGeckoBinaries',
'geckoview:uploadArchives',
]
ret = self.gradle(gradle_targets + ["--continue"] + args, verbose=True)
return ret
@Command('gradle', category='devenv',
description='Run gradle.',
conditions=[conditions.is_android])

Просмотреть файл

@ -130,10 +130,8 @@ config = {
# binaries are in the object directory, ready to be packaged into the
# GeckoView AAR.
'postflight_build_mach_commands': [
['gradle',
'geckoview:assembleWithGeckoBinaries',
'geckoview_example:assembleWithGeckoBinaries',
'uploadArchives',
['android',
'archive-geckoview',
],
],
}