Bug 1258760 - Include Robocop support files when building --with-gradle. r=gps

The initial --with-gradle support disabled building the Android test
directories; everything was built from
mobile/android/app/build.gradle.  That doesn't declare support files
that need to be packaged for Robocop tests.  This patch stops building
instrumentation test APKs, which aren't used in automation under any
circumstance and which aren't packaged when building with Gradle; and
avoids building the Robocop APK by tweaking the Makefile.  That gets
support files in place while not using moz.build in place of Gradle.

I would have declared the support files elsewhere, but there are path
requirements that I couldn't make work, so in robocop/ they stay.

MozReview-Commit-ID: KCpXvqzYBsY

--HG--
extra : rebase_source : b99be8fada7787ee473f68265824cca2250c70a1
extra : histedit_source : fa19d3ede51e14707f400ab8527d44f5bf550f85
This commit is contained in:
Nick Alexander 2016-03-15 16:02:01 -07:00
parent f2c9cdeaf9
commit 4085a8469b
4 changed files with 15 additions and 6 deletions

View File

@ -29,9 +29,8 @@ DIRS += [
if CONFIG['MOZ_ANDROID_PACKAGE_INSTALL_BOUNCER']:
DIRS += ['bouncer'] # No ordering implied with respect to base.
if not CONFIG['MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE']:
TEST_DIRS += [
'tests',
]
TEST_DIRS += [
'tests',
]
SPHINX_TREES['fennec'] = 'docs'

View File

@ -6,8 +6,12 @@
MOCHITEST_CHROME_MANIFESTS += ['chrome/chrome.ini']
if not CONFIG['MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE']:
TEST_DIRS += [
'junit3',
]
TEST_DIRS += [
'junit3',
'robocop/roboextender',
'robocop',
]

View File

@ -54,7 +54,9 @@ JAVAFILES += \
include $(topsrcdir)/config/rules.mk
ifndef MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE
tools:: $(ANDROID_APK_NAME).apk
endif
# The test APK needs to know the contents of the target APK while not
# being linked against them. This is a best effort to avoid getting

View File

@ -4,8 +4,12 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
if not CONFIG['MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE']:
TEST_DIRS += [
'background',
]
TEST_DIRS += [
'background',
'browser',
'javaaddons', # Must be built before browser/robocop/roboextender.
# This is enforced in config/recurse.mk.