summaryrefslogtreecommitdiffstats
path: root/blimp/docs/build.md
blob: b29b5ff811fda143380cb0994b8a2cc6c1b84fb8 (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
49
50
# Using GN
Blimp only supports building using [GN](../../tools/gn/README.md), and only
supports building for Android and Linux. A quick overview over how to use GN can
be found in the GN [quick start guide](../../tools/gn/docs/quick_start.md).

## Android setup
To setup GN, run the following command:
```
gn args out-android/Debug
```
This will bring up an editor, where you can type in the following:

```
target_os = "android"
is_debug = true
is_clang = true
is_component_build = true
symbol_level = 1  # Use -g1 instead of -g2
use_goma = true
```

## Linux setup
For building for Linux, you can have a side-by-side out-directory:
```
gn args out-linux/Debug
```
Use the same arguments as above, but remove `target_os`.
```
is_debug = true
is_clang = true
is_component_build = true
symbol_level = 1  # Use -g1 instead of -g2
use_goma = true
```

# Building

To build blimp, build the target ```blimp```.

## Building for Android

```
ninja -C out-android/Debug blimp
```

## Building for Linux

```
ninja -C out-linux/Debug blimp
```