forked from joyent/libuv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uv: support android libuv standalone build
Tested most of my compilation in the previous patch on NodeJS and extracted the patches from there. This patch ensures libuv will be capable of building standalone as well, both with gyp and Makefiles. Build documentation was added to the README.md file. Some tests are failing, and I have not heavily investigated the reasons. The failures are generally on errors, and are likely related to differences between fully POSIX-compatible systems and android.
- Loading branch information
1 parent
ede8318
commit 3fdd2a1
Showing
7 changed files
with
59 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
export TOOLCHAIN=$PWD/android-toolchain | ||
mkdir -p $TOOLCHAIN | ||
$1/build/tools/make-standalone-toolchain.sh \ | ||
--toolchain=arm-linux-androideabi-4.7 \ | ||
--arch=arm \ | ||
--install-dir=$TOOLCHAIN \ | ||
--platform=android-9 | ||
export PATH=$TOOLCHAIN/bin:$PATH | ||
export AR=arm-linux-androideabi-ar | ||
export CC=arm-linux-androideabi-gcc | ||
export CXX=arm-linux-androideabi-g++ | ||
export LINK=arm-linux-androideabi-g++ | ||
export PLATFORM=android | ||
|
||
if [ $2 -a $2 == 'gyp' ] | ||
then | ||
./gyp_uv -Dandroid_build=1 -Dtarget_arch=arm | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters