We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2233 - [Android] Support parallel jobs from build_android.sh
Summary: [Android] Support parallel jobs from build_android.sh
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.1
Hardware: All Android (All)
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-13 12:13 UTC by ny00
Modified: 2013-11-13 12:42 UTC (History)
1 user (show)

See Also:


Attachments
Addition of parallel jobs support to androidbuild.sh (1.16 KB, patch)
2013-11-13 12:13 UTC, ny00
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ny00 2013-11-13 12:13:24 UTC
Created attachment 1427 [details]
Addition of parallel jobs support to androidbuild.sh

With the attached patch applied, it is possible to call androidbuild.sh in such a way that arguments like "-j 5" are passed to ndk-build, resulting in parallel jobs.

I suppose this can be generalized to pass more kinds of arguments to ndk-build, but since androidbuild.sh already expects some other arguments, and it should remain simple, this is probably sufficient for now.
Comment 1 Gabriel Jacobo 2013-11-13 12:42:29 UTC
Thanks! I added a variant of this with number of CPU cores autodetection like we do in other scripts. https://hg.libsdl.org/SDL/rev/8af2b2344e9e