blob: 5f5a3a192da0adf0422608e73c2f23136f5b1cdc [file] [log] [blame] [view]
nyquistba0c9142015-09-21 15:58:501# Using GN
2Blimp only supports building using [GN](../../tools/gn/README.md), and only
3supports building for Android and Linux. A quick overview over how to use GN can
4be found in the GN [quick start guide](../../tools/gn/docs/quick_start.md).
5
6## Android setup
7To setup GN, run the following command:
nyquist8c29da532015-09-21 19:00:348
dtrainor4ae32722015-09-26 00:14:129```bash
nyquistba0c9142015-09-21 15:58:5010gn args out-android/Debug
11```
nyquist8c29da532015-09-21 19:00:3412
nyquistba0c9142015-09-21 15:58:5013This will bring up an editor, where you can type in the following:
14
dtrainor4ae32722015-09-26 00:14:1215```bash
nyquistba0c9142015-09-21 15:58:5016target_os = "android"
17is_debug = true
18is_clang = true
19is_component_build = true
20symbol_level = 1 # Use -g1 instead of -g2
21use_goma = true
22```
23
24## Linux setup
25For building for Linux, you can have a side-by-side out-directory:
nyquist8c29da532015-09-21 19:00:3426
dtrainor4ae32722015-09-26 00:14:1227```bash
nyquistba0c9142015-09-21 15:58:5028gn args out-linux/Debug
29```
nyquist8c29da532015-09-21 19:00:3430
nyquistba0c9142015-09-21 15:58:5031Use the same arguments as above, but remove `target_os`.
nyquist8c29da532015-09-21 19:00:3432
dtrainor4ae32722015-09-26 00:14:1233```bash
nyquistba0c9142015-09-21 15:58:5034is_debug = true
35is_clang = true
36is_component_build = true
37symbol_level = 1 # Use -g1 instead of -g2
38use_goma = true
haibinlu6b8cc142015-11-04 01:03:0039use_aura = true
40use_ozone = true
nyquistba0c9142015-09-21 15:58:5041```
42
43# Building
44
45To build blimp, build the target ```blimp```.
46
47## Building for Android
48
dtrainor4ae32722015-09-26 00:14:1249```bash
nyquistba0c9142015-09-21 15:58:5050ninja -C out-android/Debug blimp
51```
52
53## Building for Linux
54
dtrainor4ae32722015-09-26 00:14:1255```bash
nyquistba0c9142015-09-21 15:58:5056ninja -C out-linux/Debug blimp
57```