blob: 13aad6b68338e2cc9b7b0d21dd6ba623f3314076 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Using GN
Blimp only supports building using [GN](../../tools/gn/README.md). A quick
overview over how to use GN can be found in the GN
[quick start guide](../../tools/gn/docs/quick_start.md).
There are three different build configurations depending on what you want to
build:
## Android client
Create an out-directory and set the GN args:
```bash
mkdir -p out-android/Debug
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
```
To build:
```bash
ninja -C out-android/Debug blimp
```
You can also build and install incremental APK like this:
```bash
ninja -C out-android/Debug blimp blimp_apk_incremental &&
out-android/Debug/bin/install_blimp_apk_incremental
```
## Engine inside a Docker container
Create another out-directory and set the GN args. Note, when building to run
inside a Docker container you'll need to set the target_os to "chromeos":
```bash
mkdir -p out-chromeos/Debug
gn args out-chromeos/Debug
```
This will bring an editor, where you can type in the following:
```bash
target_os = "chromeos"
is_debug = true
is_clang = true
symbol_level = 1 # Use -g1 instead of -g2
use_goma = true
use_aura = true
use_ozone = true
use_alsa = false
use_pulseaudio = false
```
To build:
```bash
ninja -C out-chromeos/Debug blimp
```
## "Bare" engine, no Docker container
Create another out-directory and set the GN args:
```bash
mkdir -p out-linux/Debug
gn args out-linux/Debug
```
This will bring an editor, where you can type in the following:
```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
```
To build:
```bash
ninja -C out-linux/Debug blimp
```
|