Closed
Bug 996780
Opened 11 years ago
Closed 11 years ago
Eclipse projects only support Android-16 SDK target
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 31
People
(Reporter: jchen, Assigned: jchen)
Details
Attachments
(1 file, 3 obsolete files)
3.01 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
My build uses android-19 and when I imported the Eclipse projects, it said could not find "android-16" target.
Assignee | ||
Comment 1•11 years ago
|
||
This patch uses the basename of ANDROID_SDK (e.g. /foo/sdk/platforms/android-19) as the target.
Attachment #8407046 -
Flags: review?(nalexander)
Comment 2•11 years ago
|
||
Comment on attachment 8407046 [details] [diff] [review]
Use ANDROID_SDK for Eclipse project target (v1)
Review of attachment 8407046 [details] [diff] [review]:
-----------------------------------------------------------------
See Bug 979438. You should be able to just use ANDROID_TARGET_SDK in project.properties, like:
target=android-@ANDROID_TARGET_SDK@
(That is, no IDE_* variable should be needed.) If it works, r=me with that.
Attachment #8407046 -
Flags: review?(nalexander) → review-
Assignee | ||
Comment 3•11 years ago
|
||
Didn't work,
> mozbuild.preprocessor.Error: (u'/home/nchen/gecko-dev/python/mozbuild/mozbuild/backend/templates/android_eclipse/project.properties', 12, 'UNDEFINED_VAR', 'ANDROID_TARGET_SDK')
This patch works. I got rid of the default value because if ANDROID_TARGET_SDK doesn't exist we have bigger things to worry about.
Attachment #8407046 -
Attachment is obsolete: true
Attachment #8407059 -
Flags: review?(nalexander)
Comment 4•11 years ago
|
||
Comment on attachment 8407059 [details] [diff] [review]
Use ANDROID_TARGET_SDK for Eclipse project target (v2)
Review of attachment 8407059 [details] [diff] [review]:
-----------------------------------------------------------------
Oh, I remember why this doesn't work. It's not trivial to get the Mach context from in the build-backend command, so we don't just have the entire config/subst dictionary at hand.
::: python/mozbuild/mozbuild/backend/android_eclipse.py
@@ +237,5 @@
> filteredResources = self._Element_for_filtered_resources(data.filtered_resources)
> defines['IDE_PROJECT_FILTERED_RESOURCES'] = pretty_print(filteredResources).strip()
> else:
> defines['IDE_PROJECT_FILTERED_RESOURCES'] = ''
> + defines['IDE_TARGET_SDK'] = self.environment.substs['ANDROID_TARGET_SDK']
gentle preference to not change the name.
Attachment #8407059 -
Flags: review?(nalexander) → review+
Assignee | ||
Comment 5•11 years ago
|
||
Thanks!
Attachment #8407059 -
Attachment is obsolete: true
Attachment #8407085 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 6•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 7•11 years ago
|
||
sorry had to backout for test failures like https://tbpl.mozilla.org/php/getParsedLog.php?id=37909081&tree=Fx-Team
Updated•11 years ago
|
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 8•11 years ago
|
||
Trivial change to fix the test.
Try: https://tbpl.mozilla.org/?tree=Try&rev=ff7b469f3c69
Attachment #8407085 -
Attachment is obsolete: true
Attachment #8407748 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•