mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 938659 - Part 2: build system changes. r=mfinkle
This commit is contained in:
parent
0b2c255555
commit
1646b86ded
@ -2,9 +2,8 @@
|
||||
# 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/.
|
||||
|
||||
mobile-tests := mobile/android/base/tests
|
||||
mobile-tests := mobile/android/tests/browser/robocop
|
||||
TESTPATH := $(topsrcdir)/$(mobile-tests)
|
||||
dir-tests := $(DEPTH)/$(mobile-tests)
|
||||
|
||||
ANDROID_APK_NAME := robocop-debug
|
||||
|
||||
@ -62,8 +61,6 @@ include $(topsrcdir)/config/rules.mk
|
||||
|
||||
tools:: $(ANDROID_APK_NAME).apk
|
||||
|
||||
GENERATED_DIRS += $(dir-tests)
|
||||
|
||||
# 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
|
||||
# out of sync with base's build config.
|
||||
|
@ -9,4 +9,4 @@ from the original download found at:
|
||||
http://code.google.com/p/robotium/
|
||||
|
||||
Firefox for Android developers should read the documentation in
|
||||
mobile/android/base/tests/README.rst.
|
||||
mobile/android/tests/browser/robocop/README.rst.
|
||||
|
@ -6,20 +6,7 @@
|
||||
|
||||
DEFINES['ANDROID_PACKAGE_NAME'] = CONFIG['ANDROID_PACKAGE_NAME']
|
||||
|
||||
main = add_android_eclipse_project('Robocop', OBJDIR + '/AndroidManifest.xml')
|
||||
main.package_name = 'org.mozilla.roboexample.test'
|
||||
main.res = SRCDIR + '/res'
|
||||
main.recursive_make_targets += [OBJDIR + '/AndroidManifest.xml']
|
||||
main.extra_jars += [SRCDIR + '/robotium-solo-4.3.1.jar']
|
||||
main.assets = TOPSRCDIR + '/mobile/android/base/tests/assets'
|
||||
main.referenced_projects += ['Fennec']
|
||||
|
||||
main.add_classpathentry('harness', SRCDIR,
|
||||
dstdir='harness/org/mozilla/gecko')
|
||||
main.add_classpathentry('src', TOPSRCDIR + '/mobile/android/base/tests',
|
||||
dstdir='src/org/mozilla/gecko/tests')
|
||||
|
||||
base = '/mobile/android/base/tests/'
|
||||
base = '/mobile/android/tests/browser/robocop/'
|
||||
TEST_HARNESS_FILES.testing.mochitest += [
|
||||
base + 'robocop.ini',
|
||||
base + 'robocop_autophone.ini',
|
||||
|
@ -817,7 +817,6 @@ main.package_name = 'org.mozilla.gecko'
|
||||
# .project file to modify this list.
|
||||
main.filtered_resources += [
|
||||
'1.0-projectRelativePath-matches-false-false-*org/mozilla/gecko/resources/**',
|
||||
'1.0-projectRelativePath-matches-false-false-*org/mozilla/gecko/tests/**',
|
||||
]
|
||||
|
||||
main.recursive_make_targets += generated_recursive_make_targets
|
||||
@ -837,7 +836,6 @@ main.res = None
|
||||
cpe = main.add_classpathentry('src', SRCDIR,
|
||||
dstdir='src/org/mozilla/gecko',
|
||||
exclude_patterns=[
|
||||
'org/mozilla/gecko/tests/**',
|
||||
'org/mozilla/gecko/resources/**'])
|
||||
|
||||
if not CONFIG['MOZ_CRASHREPORTER']:
|
||||
|
@ -118,12 +118,12 @@ class MachCommands(MachCommandBase):
|
||||
objdir('app/src/main/AndroidManifest.xml', 'mobile/android/base/AndroidManifest.xml')
|
||||
objdir('app/src/androidTest/AndroidManifest.xml', 'build/mobile/robocop/AndroidManifest.xml')
|
||||
srcdir('app/src/androidTest/res', 'build/mobile/robocop/res')
|
||||
srcdir('app/src/androidTest/assets', 'mobile/android/base/tests/assets')
|
||||
srcdir('app/src/androidTest/assets', 'mobile/android/tests/browser/robocop/assets')
|
||||
objdir('app/src/debug/assets', 'dist/fennec/assets')
|
||||
objdir('app/src/debug/jniLibs', 'dist/fennec/lib')
|
||||
# Test code.
|
||||
srcdir('app/src/robocop_harness/org/mozilla/gecko', 'build/mobile/robocop')
|
||||
srcdir('app/src/robocop/org/mozilla/gecko/tests', 'mobile/android/base/tests')
|
||||
srcdir('app/src/robocop/org/mozilla/gecko/tests', 'mobile/android/tests/browser/robocop')
|
||||
srcdir('app/src/background/org/mozilla/gecko', 'mobile/android/tests/background/junit3/src')
|
||||
srcdir('app/src/browser/org/mozilla/gecko', 'mobile/android/tests/browser/junit3/src')
|
||||
# Test libraries.
|
||||
|
@ -3,7 +3,7 @@
|
||||
# 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/.
|
||||
|
||||
TESTPATH = $(topsrcdir)/mobile/android/base/tests/roboextender
|
||||
TESTPATH = $(topsrcdir)/mobile/android/tests/browser/robocop/roboextender
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user