Commit Graph

24 Commits

Author SHA1 Message Date
David 'Digit' Turner
6b913ab885 Fix toolchain scripts for Darwin and Cygwin.
Only touches download-toolchain-sources.sh and build-toolchain.sh
This does not impact the NDK build scripts themselves and is only
needed to properly package NDK release packages.
2009-12-04 17:57:36 -08:00
David 'Digit' Turner
69eeb8a22f Update the build-toolchain.sh script.
This patch modifies the script to be able to build all prebuilt toolchain
binaries in a single call. I.e. if passed a recent toolchain source package
generated with download-toolchain-sources.sh, then it will build both
GCC 4.2.1 and GCC 4.4.0 and place them in the final prebuilt tarball.

We need this because, while we're going to switch to gcc 4.4.0 by default
in a new version of the NDK, the 4.4.0 C++ compiler is more strict about
various constructs and might refuse to build certain sources. An option
will be given to application developers to use 4.2.1 instead, to keep their
sources building.

Other changes include:

Move all builds into a random temporary directory under /tmp by default,
unless you use --build-out=<path>.

Cleanup the build out directory on succesful build

The generated tarball is now named android-ndk-prebuilt-<date>-<host>.tar.bz2
by default, unless you use the new --release=<name> option which will replace
<date> with <name> instead.

Removal of un-needed files (e.g. info or man pages, libiberty static library,
etc..) to reduce the size of the final tarball.
2009-11-19 13:43:11 -08:00
Android (Google) Code Review
e4df0ea14b Merge change I8d8b5816 into eclair
* changes:
  Update build-toolchain.sh to be able to build gcc 4.4.0
2009-11-16 14:53:57 -08:00
David 'Digit' Turner
37e84c2056 Update build-toolchain.sh to be able to build gcc 4.4.0
Update the script used to build the prebuilt toolchain binaries.
There are now two ways to use it:

1/ As usual, just invoke it and it will download the source tarball,
   uncompress it, configure the toolchain sources, build them, then
   package the result into a 'prebuilt' tarball.

2/ Generate a new source tarball with the 'download-toolchain-sources.sh'
   script, and invoke build-toolchain.sh with the --package=<tarball>
   option.

Additionally, you can now specify --gcc-version=4.4.0 to build GCC 4.4.0
(with ARMv7 / FPU support)

The option --gdb-version=6.8 has been added but the build doesn't seem
to work yet. This will probably be fixed in the toolchain git repository
though.

This will be used to refresh the NDK with gcc 4.4.0 prebuilts and support
for armeabi-v7a soon.
2009-11-16 12:41:33 -08:00
David 'Digit' Turner
af4040476e Add a script to download and package the toolchain sources.
download-toolchain-sources.sh will download the current toolchain sources
from our git repositories then finely package them into a compressed
tarball that will later be used to rebuild the prebuilt binaries properly.

Due to the way our sources are stored in the git repository, the sources
in the tarball are laid out slightly differently than in the original toolchain
source archive used for NDK 1.6.

An upcoming patch will modify build-toolchain.sh to deal with the difference
and also allow the build of gcc-4.4.0 and gdb-6.8.
2009-11-16 11:31:33 -08:00
David 'Digit' Turner
f7aa22af3c Remove bash-ism from build-ndk-sysroot.sh 2009-10-20 15:33:40 -07:00
David 'Digit' Turner
1db4662e79 Remove bash-ism from build-toolchain.sh 2009-10-15 13:29:06 -07:00
David 'Digit' Turner
854f820c24 Add --prebuilt-ndk=FILE and --no-git options to build/tools/make-release.sh script.
This is used to help people easily package experimental versions of the NDK to
test and distribute fixes and improvements. The main idea is to allow external
contributors to play with it in interesting way and share the result easily.
2009-10-14 15:39:58 -07:00
David 'Digit' Turner
902706ad0d Bump release version to android-1.6_r1 2009-08-14 20:51:58 +02:00
David 'Digit' Turner
fdc5ea243d Rename ndk/build/platforms/android-1.5 into android-3 to match API levels 2009-07-24 17:56:51 +02:00
David 'Digit' Turner
4f6f74019f Remove problematic case-insensitive duplicate files.
Add missing copyright/license disclaimer to build/tools/make-release.sh
Add a new tool: build/tools/find-case-duplicates.sh
2009-06-30 10:51:41 +02:00
David 'Digit' Turner
b968aa1c79 Bump release version number and speed up make-release.sh script 2009-06-29 18:00:56 +02:00
David 'Digit' Turner
5ad95c577a Force the use of 32-bit toolchain binaries on 64-bit systems.
This is used to reduce the number of distributable prebuilt packages
(i.e. linux-x86_64 is not needed anymore).

Also fix build/tools/build-toolchain.sh to properly copy the GPL and LGPL
license files into the generated prebuilt packages.

Also add a .gitignore files to get less spew from 'git status'
2009-05-27 16:04:25 +02:00
David 'Digit' Turner
985338c05c Expose the Zlib headers (<zlib.h> and <zconf.h>) in the android-1.5 NDK sysroot.
This is OK because the Zlib ABI is fixed and stable.

Also get rid of the sample zlib sources since we don't need the static library anymore.
2009-05-19 12:10:09 +02:00
David 'Digit' Turner
498455c79f Fix the build-toolchain.sh script which doesn't work due to the new download location of the NDK sources
and a small typo when using wget. Also make --force-download actually work.
2009-05-14 16:43:03 +02:00
Xavier Ducrohet
60b2fc90b7 Update the NDK packaging script to generate zip archives for all platforms. 2009-05-11 13:58:02 -07:00
Android (Google) Code Review
ebcb72611b Merge change 1361 into donut
* changes:
  Remove hard-coded path to my home directory in build/tools/make-release.sh. Now you need to use the --prebuilt-path=<path> option to specify where to pick up the prebuilt toolchain tarballs instead, for example:
2009-05-11 11:54:41 -07:00
David 'Digit' Turner
56266b2d59 Remove hard-coded path to my home directory in build/tools/make-release.sh.
Now you need to use the --prebuilt-path=<path> option to specify where to pick up
the prebuilt toolchain tarballs instead, for example:

   build/tools/make-release.sh --prebuilt-path=/home/digit/android/ndk

Add also some other options to change the package prefix / release number / etc
2009-05-11 17:20:26 +02:00
David 'Digit' Turner
b20725d4a0 Remove references to 'cupcake' in all of NDK (replace with 'android-1.5') 2009-05-11 16:37:42 +02:00
Xavier Ducrohet
e0de1bc940 Fix the NDK packaging script to use git ls-files instead of git-ls-files 2009-05-07 14:35:27 -07:00
David 'Digit' Turner
66ce41fc33 generate zip files on Windows and OS X when packaging NDK releases 2009-05-07 23:07:40 +02:00
David 'Digit' Turner
fdeb1d29f4 Make the release script work on OS X, and think about ensure the generated tarballs are readable by anyone 2009-05-07 22:51:10 +02:00
David 'Digit' Turner
f2b70edc0d Add a release packaging script 2009-05-07 21:58:22 +02:00
David 'Digit' Turner
b9a8479e48 Initial import of new NDK into donut tree 2009-05-07 20:39:04 +02:00