| OLD | NEW |
| 1 # Using GN | 1 # Using GN |
| 2 Blimp only supports building using [GN](../../tools/gn/README.md). A quick | 2 Blimp only supports building using [GN](../../tools/gn/README.md). A quick |
| 3 overview over how to use GN can be found in the GN | 3 overview over how to use GN can be found in the GN |
| 4 [quick start guide](../../tools/gn/docs/quick_start.md). | 4 [quick start guide](../../tools/gn/docs/quick_start.md). |
| 5 | 5 |
| 6 There are three different build configurations depending on what you want to | 6 There are three different build configurations depending on what you want to |
| 7 build: | 7 build: |
| 8 | 8 |
| 9 ## Android client | 9 ## Android client |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 You can also build and install incremental APK like this: | 35 You can also build and install incremental APK like this: |
| 36 | 36 |
| 37 ```bash | 37 ```bash |
| 38 ninja -C out-android/Debug blimp blimp_apk_incremental && | 38 ninja -C out-android/Debug blimp blimp_apk_incremental && |
| 39 out-android/Debug/bin/install_blimp_apk_incremental | 39 out-android/Debug/bin/install_blimp_apk_incremental |
| 40 ``` | 40 ``` |
| 41 | 41 |
| 42 ## Engine inside a Docker container | 42 ## Engine inside a Docker container |
| 43 | 43 |
| 44 Create another out-directory and set the GN args. Note, when building to run | 44 Create another out-directory and set the GN args. Note, when building to run |
| 45 inside a [Docker container](container.md) you'll need to set the target_os to "c
hromeos": | 45 inside a [Docker container](container.md) you'll need to turn off several |
| 46 dependencies: |
| 46 | 47 |
| 47 ```bash | 48 ```bash |
| 48 mkdir -p out-chromeos/Debug | 49 mkdir -p out-docker/Debug |
| 49 gn args out-chromeos/Debug | 50 gn args out-docker/Debug |
| 50 ``` | 51 ``` |
| 51 | 52 |
| 52 This will bring an editor, where you can type in the following: | 53 This will bring an editor, where you can type in the following: |
| 53 | 54 |
| 54 ```bash | 55 ```bash |
| 55 target_os = "chromeos" | 56 target_os = "linux" |
| 56 is_debug = true | 57 is_debug = true |
| 57 is_clang = true | 58 is_clang = true |
| 58 symbol_level = 1 # Use -g1 instead of -g2 | 59 symbol_level = 1 # Use -g1 instead of -g2 |
| 59 use_goma = true | 60 use_goma = true |
| 60 use_aura = true | 61 use_aura = true |
| 61 use_ozone = true | 62 use_ozone = true |
| 62 use_alsa = false | 63 use_alsa = false |
| 63 use_pulseaudio = false | 64 use_pulseaudio = false |
| 65 use_cups = false |
| 66 use_glib = false |
| 64 ``` | 67 ``` |
| 65 | 68 |
| 66 To build: | 69 To build: |
| 67 | 70 |
| 68 ```bash | 71 ```bash |
| 69 ninja -C out-chromeos/Debug blimp | 72 ninja -C out-docker/Debug blimp |
| 70 ``` | 73 ``` |
| 71 | 74 |
| 72 ## "Bare" engine, no Docker container | 75 ## "Bare" engine, no Docker container |
| 73 | 76 |
| 74 Create another out-directory and set the GN args: | 77 Create another out-directory and set the GN args: |
| 75 | 78 |
| 76 ```bash | 79 ```bash |
| 77 mkdir -p out-linux/Debug | 80 mkdir -p out-linux/Debug |
| 78 gn args out-linux/Debug | 81 gn args out-linux/Debug |
| 79 ``` | 82 ``` |
| 80 | 83 |
| 81 This will bring an editor, where you can type in the following: | 84 This will bring an editor, where you can type in the following: |
| 82 | 85 |
| 83 ```bash | 86 ```bash |
| 84 is_debug = true | 87 is_debug = true |
| 85 is_clang = true | 88 is_clang = true |
| 86 is_component_build = true | 89 is_component_build = true |
| 87 symbol_level = 1 # Use -g1 instead of -g2 | 90 symbol_level = 1 # Use -g1 instead of -g2 |
| 88 use_goma = true | 91 use_goma = true |
| 89 use_aura = true | 92 use_aura = true |
| 90 use_ozone = true | 93 use_ozone = true |
| 91 ``` | 94 ``` |
| 92 | 95 |
| 93 To build: | 96 To build: |
| 94 | 97 |
| 95 ```bash | 98 ```bash |
| 96 ninja -C out-linux/Debug blimp | 99 ninja -C out-linux/Debug blimp |
| 97 ``` | 100 ``` |
| OLD | NEW |