mobile/android/tests/browser/junit3/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/tests/browser/junit3/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +DEFINES['ANDROID_PACKAGE_NAME'] = CONFIG['ANDROID_PACKAGE_NAME']
    1.11 +
    1.12 +jar = add_java_jar('browser-junit3')
    1.13 +jar.sources += [
    1.14 +    'src/harness/BrowserInstrumentationTestRunner.java',
    1.15 +    'src/harness/BrowserTestListener.java',
    1.16 +    'src/tests/BrowserTestCase.java',
    1.17 +    'src/tests/TestGeckoSharedPrefs.java',
    1.18 +    'src/tests/TestJarReader.java',
    1.19 +    'src/tests/TestRawResource.java',
    1.20 +    'src/tests/TestTopSitesCursorWrapper.java',
    1.21 +]
    1.22 +jar.generated_sources = [] # None yet -- try to keep it this way.
    1.23 +jar.javac_flags += ['-Xlint:all,-unchecked']
    1.24 +
    1.25 +# Android Eclipse project.
    1.26 +main = add_android_eclipse_project('BrowserInstrumentationTests', OBJDIR + '/AndroidManifest.xml')
    1.27 +# The package name doesn't really matter, but it looks nicest if the
    1.28 +# generated classes (org.mozilla.gecko.browser.tests.{BuildConfig,R})
    1.29 +# are in the same hierarchy as the rest of the source files.
    1.30 +main.package_name = 'org.mozilla.gecko.browser.tests'
    1.31 +main.res = 'res'
    1.32 +main.recursive_make_targets += [
    1.33 +    OBJDIR + '/AndroidManifest.xml',
    1.34 +]
    1.35 +main.recursive_make_targets += [OBJDIR + '/generated/' + f for f in jar.generated_sources]
    1.36 +main.referenced_projects += ['Fennec']
    1.37 +
    1.38 +main.add_classpathentry('src', SRCDIR + '/src',
    1.39 +    dstdir='src/org/mozilla/gecko/browser')

mercurial