Bug 903528 - Post: Add Eclipse project data to moz.build. r=rnewman
authorNick Alexander <nalexander@mozilla.com>
Mon, 24 Feb 2014 18:24:46 -0800
changeset 170857 9d6e281584dc6462a6f8e0df9a3952d45a54a666
parent 170856 51c20dd62b11d9f1e10c501b101890af41a6f4c3
child 170858 c03ae393e75f7a19af63e7395caa0623aacba7f1
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersrnewman
bugs903528
milestone30.0a1
Bug 903528 - Post: Add Eclipse project data to moz.build. r=rnewman
mobile/android/tests/browser/junit3/moz.build
--- a/mobile/android/tests/browser/junit3/moz.build
+++ b/mobile/android/tests/browser/junit3/moz.build
@@ -10,8 +10,24 @@ jar = add_java_jar('browser-junit3')
 jar.sources += [
     'src/harness/BrowserInstrumentationTestRunner.java',
     'src/harness/BrowserTestListener.java',
     'src/tests/BrowserTestCase.java',
     'src/tests/TestJarReader.java',
 ]
 jar.generated_sources = [] # None yet -- try to keep it this way.
 jar.javac_flags += ['-Xlint:all,-unchecked']
+
+# Android Eclipse project.
+main = add_android_eclipse_project('BrowserInstrumentationTests', OBJDIR + '/AndroidManifest.xml')
+# The package name doesn't really matter, but it looks nicest if the
+# generated classes (org.mozilla.gecko.browser.tests.{BuildConfig,R})
+# are in the same hierarchy as the rest of the source files.
+main.package_name = 'org.mozilla.gecko.browser.tests'
+main.res = 'res'
+main.recursive_make_targets += [
+    OBJDIR + '/AndroidManifest.xml',
+]
+main.recursive_make_targets += [OBJDIR + '/generated/' + f for f in jar.generated_sources]
+main.referenced_projects += ['Fennec']
+
+main.add_classpathentry('src', SRCDIR + '/src',
+    dstdir='src/org/mozilla/gecko/browser')