Closed
Bug 994135
Opened 11 years ago
Closed 3 years ago
Factor generation and compilation of R.java out of Makefile.in
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nalexander, Unassigned)
References
Details
Currently, we have two code paths handling generating and compiling R.java files.
1) mobile/android/base/Makefile.in handles everything specially;
2) consumers of ANDROID_APK_NAME do "the wrong thing": R.java is generated in a reasonable fashion, but it's only compiled into classes.dex. That means files compiled into a JAR can't reference R.java (easily).
This is a chance to correct the ANDROID_APK_NAME logic, and possibly to unify mobile/android/base with the rest of the world.
I can think of two ways this might go. We might define enough things to write R.java into a sensible place, and then let consuming code reference $(CURDIR)/.../R.java directly. Or we might define ANDROID_RESOURCE_JAR* things, and build $(CURDIR)/.../R.jar ourselves. I have a slight preference for the latter, because I think that will make more sense for mobile/android/base.
Reporter | ||
Comment 1•11 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #0)
> 2) consumers of ANDROID_APK_NAME do "the wrong thing": R.java is generated
> in a reasonable fashion, but it's only compiled into classes.dex. That
> means files compiled into a JAR can't reference R.java (easily).
The motivating example is Browser Instrumentation tests in mobile/android/tests/browser/junit3: these tests cannot currently reference org.mozilla.gecko.browser.tests.R.
Updated•11 years ago
|
Blocks: suggested-sites-v1
Updated•10 years ago
|
No longer blocks: suggested-sites-v1
Updated•7 years ago
|
Product: Core → Firefox Build System
Reporter | ||
Comment 2•3 years ago
|
||
We moved to Gradle long ago.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•