Closed
Bug 929298
Opened 11 years ago
Closed 3 years ago
Move ANDROID_APK to moz.build
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: nalexander, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
2.75 KB,
patch
|
nalexander
:
review+
|
Details | Diff | Splinter Review |
5.76 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
10.57 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
22.40 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
Bug 919563 moved ad-hoc APK generation to rules.mk (but did not move mobile/android/base to use that APK generation). We should 1) finish that job (which includes updating |make package| and 2) move APK generation to moz.build.
This could be part of writing IDE project files for all the APKs defined in the build system (Bug 853045).
Reporter | ||
Comment 1•11 years ago
|
||
Attachment #824216 -
Flags: review+
Reporter | ||
Comment 2•11 years ago
|
||
Attachment #824217 -
Flags: review?(gps)
Reporter | ||
Comment 3•11 years ago
|
||
Attachment #824218 -
Flags: review?(gps)
Reporter | ||
Comment 4•11 years ago
|
||
Attachment #824219 -
Flags: review?(gps)
Reporter | ||
Comment 5•11 years ago
|
||
Reporter | ||
Comment 6•11 years ago
|
||
Here's some work in progress that improves the APK building situation and gets rid of some Makefile.ins. I'll get back to this for build/mobile/robocop's APK after Bug 905703 lands, and of course there's still mobile/android/base's APK.
Comment 7•11 years ago
|
||
Comment on attachment 824218 [details] [diff] [review]
3-Bug_929298___Part_2__Add_add_android_apk_to_moz_build__r_gps.patch
Review of attachment 824218 [details] [diff] [review]:
-----------------------------------------------------------------
::: python/mozbuild/mozbuild/backend/recursivemake.py
@@ +1019,5 @@
> path = ''
> backend_file.write('LOCAL_INCLUDES += -I%s%s\n' % (path, generated_include))
>
> + def _process_android_apk_data(self, apk, backend_file):
> + backend_file.write('ANDROID_APK_NAME := %s\n' % apk.name)
Hrm, don't we have some module to write make syntax?
Reporter | ||
Comment 8•11 years ago
|
||
Sigh. When can syncing dirs die?
http://tbpl.mozilla.org/?tree=Try&rev=e465b1cbd0a2
Updated•11 years ago
|
Attachment #824217 -
Flags: review?(gps) → review+
Comment 9•11 years ago
|
||
Comment on attachment 824218 [details] [diff] [review]
3-Bug_929298___Part_2__Add_add_android_apk_to_moz_build__r_gps.patch
Review of attachment 824218 [details] [diff] [review]:
-----------------------------------------------------------------
::: python/mozbuild/mozbuild/frontend/data.py
@@ +456,5 @@
> + include on the javac compiler bootclasspath
> + * extra_jars - list of JAR file dependencies to include on the
> + javac compiler classpath
> + * javac_flags - string containing extra flags passed to the
> + javac compiler
Should this be a list instead of a string?
::: python/mozbuild/mozbuild/frontend/reader.py
@@ +235,5 @@
> + if '/' in name or '\\' in name or '.apk' in name:
> + raise Exception('Android APK names must not include slashes or'
> + ' .apk: %s' % name)
> +
> + if self['ANDROID_APKS'].has_key(name):
if name in self['ANDROID_APKS']: ?
@@ +238,5 @@
> +
> + if self['ANDROID_APKS'].has_key(name):
> + raise Exception('Android APK has already been registered: %s' % name)
> +
> + if len(self['ANDROID_APKS'].keys()) > 0:
You don't need the len() > 0 since len(empty) is falsey.
Attachment #824218 -
Flags: review?(gps) → review+
Comment 10•11 years ago
|
||
Comment on attachment 824219 [details] [diff] [review]
4-Bug_929298___Part_3__Use_add_android_apk_in_easy_cases__r_gps.patch
Review of attachment 824219 [details] [diff] [review]:
-----------------------------------------------------------------
I /think/ the make rules limit us to one APK per directory, correct? Should we enforce that anywhere or do you just want to rely on badness not getting past review? I'm fine with letting it slide.
::: build/mobile/sutagent/android/moz.build
@@ +20,5 @@
> +apk.res = 'res'
> +apk.extra_jars += [
> + SRCDIR + '/network-libs/commons-net-2.0.jar',
> + SRCDIR + '/network-libs/jmdns.jar',
> +]
Perhaps extra_jars should just assume srcdir for all relative paths and topsrcdir for all absolute paths? Kinda like how LOCAL_INCLUDES works.
::: config/makefiles/java-build.mk
@@ +81,5 @@
>
> $(ANDROID_APK_NAME).apk: $(ANDROID_APK_NAME)-unaligned.apk
> $(ZIPALIGN) -f -v 4 $< $@
>
> +libs:: $(ANDROID_APK_NAME).apk
You changed this from tools to libs. Is this intentional?
::: mobile/android/tests/background/junit3/moz.build
@@ +24,5 @@
> + 'gecko-mozglue.jar',
> + 'gecko-util.jar',
> + 'sync-thirdparty.jar',
> + 'websockets.jar',
> +] ]
Nit: Cuddle braces in Python.
Attachment #824219 -
Flags: review?(gps) → review+
Comment 11•11 years ago
|
||
(In reply to Gregory Szorc [:gps] from comment #10)
> > +libs:: $(ANDROID_APK_NAME).apk
>
> You changed this from tools to libs. Is this intentional?
Moreover, the corresponding value given in sandbox_symbols.py is 'binaries', which is wrong in both cases.
Reporter | ||
Comment 12•11 years ago
|
||
Comment 13•11 years ago
|
||
Nick, when do you plan to fix this up and land?
Reporter | ||
Comment 14•11 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #13)
> Nick, when do you plan to fix this up and land?
I'm rebasing as we speak and about to push a try build. It's very late here so if it's green I'll land tomorrow first thing PST.
Reporter | ||
Comment 15•11 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #14)
> (In reply to Mike Hommey [:glandium] from comment #13)
> > Nick, when do you plan to fix this up and land?
>
> I'm rebasing as we speak and about to push a try build. It's very late here
> so if it's green I'll land tomorrow first thing PST.
Sorry, wrong bug. This is going to be a few days; hopefully before I PTO starting next week. There's lots of additional stuff that I have partially done in my local tree.
Comment 16•9 years ago
|
||
Is this still relevant?
Reporter | ||
Comment 17•9 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #16)
> Is this still relevant?
I imagine the patches have rotted completely, but moving all Android stuff to moz.build is still A Good Thing.
Updated•7 years ago
|
Product: Core → Firefox Build System
Reporter | ||
Comment 18•3 years ago
|
||
We moved to Gradle long ago.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•