blob: d1b24b11d10681f5f795701df427baba4a89a16d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
Building GCC for Android
========================
The following process is used to build the GCC that is used by both the Android
platfrom and the NDK.
Both Linux and Windows toolchains are built on Linux machines. Windows host
binaries are built with mingw. Building binaries for Mac OS X should be built
using 10.8 to ensure compatibility with Android's minimum supported hosts.
Prerequisites
-------------
* [Android GCC Repository](http://source.android.com/source/downloading.html)
* Check out the branch `gcc`
```bash
repo init -u https://android.googlesource.com/platform/manifest -b gcc
# Googlers, use
repo init -u \
persistent-https://android.git.corp.google.com/platform/manifest \
-b gcc
```
* Additional Linux Dependencies (available from apt):
* texinfo
* gcc-mingw32
* bison
* flex
* libtool
* Mac OS X also requires Xcode.
Host/Target prebuilts
---------------------
### For Linux or Darwin:
```bash
# Additional options and toolchain names will be show with --help.
$ python build.py --toolchain TOOLCHAIN_NAME
```
### For Windows, from Linux:
```bash
$ python build.py --system windows TOOLCHAIN_NAME
```
|