blob: 5f5a3a192da0adf0422608e73c2f23136f5b1cdc (
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
51
52
53
54
55
56
57
|
# 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:
```bash
gn args out-android/Debug
```
This will bring up an editor, where you can type in the following:
```bash
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:
```bash
gn args out-linux/Debug
```
Use the same arguments as above, but remove `target_os`.
```bash
is_debug = true
is_clang = true
is_component_build = true
symbol_level = 1 # Use -g1 instead of -g2
use_goma = true
use_aura = true
use_ozone = true
```
# Building
To build blimp, build the target ```blimp```.
## Building for Android
```bash
ninja -C out-android/Debug blimp
```
## Building for Linux
```bash
ninja -C out-linux/Debug blimp
```
|