| OLD | NEW |
| 1 # Using GN | 1 # Using GN |
| 2 Blimp only supports building using [GN](../../tools/gn/README.md), and only | 2 Blimp only supports building using [GN](../../tools/gn/README.md), and only |
| 3 supports building for Android and Linux. A quick overview over how to use GN can | 3 supports building for Android and Linux. A quick overview over how to use GN can |
| 4 be found in the GN [quick start guide](../../tools/gn/docs/quick_start.md). | 4 be found in the GN [quick start guide](../../tools/gn/docs/quick_start.md). |
| 5 | 5 |
| 6 ## Android setup | 6 ## Android setup |
| 7 To setup GN, run the following command: | 7 To setup GN, run the following command: |
| 8 |
| 8 ``` | 9 ``` |
| 9 gn args out-android/Debug | 10 gn args out-android/Debug |
| 10 ``` | 11 ``` |
| 12 |
| 11 This will bring up an editor, where you can type in the following: | 13 This will bring up an editor, where you can type in the following: |
| 12 | 14 |
| 13 ``` | 15 ``` |
| 14 target_os = "android" | 16 target_os = "android" |
| 15 is_debug = true | 17 is_debug = true |
| 16 is_clang = true | 18 is_clang = true |
| 17 is_component_build = true | 19 is_component_build = true |
| 18 symbol_level = 1 # Use -g1 instead of -g2 | 20 symbol_level = 1 # Use -g1 instead of -g2 |
| 19 use_goma = true | 21 use_goma = true |
| 20 ``` | 22 ``` |
| 21 | 23 |
| 22 ## Linux setup | 24 ## Linux setup |
| 23 For building for Linux, you can have a side-by-side out-directory: | 25 For building for Linux, you can have a side-by-side out-directory: |
| 26 |
| 24 ``` | 27 ``` |
| 25 gn args out-linux/Debug | 28 gn args out-linux/Debug |
| 26 ``` | 29 ``` |
| 30 |
| 27 Use the same arguments as above, but remove `target_os`. | 31 Use the same arguments as above, but remove `target_os`. |
| 32 |
| 28 ``` | 33 ``` |
| 29 is_debug = true | 34 is_debug = true |
| 30 is_clang = true | 35 is_clang = true |
| 31 is_component_build = true | 36 is_component_build = true |
| 32 symbol_level = 1 # Use -g1 instead of -g2 | 37 symbol_level = 1 # Use -g1 instead of -g2 |
| 33 use_goma = true | 38 use_goma = true |
| 34 ``` | 39 ``` |
| 35 | 40 |
| 36 # Building | 41 # Building |
| 37 | 42 |
| 38 To build blimp, build the target ```blimp```. | 43 To build blimp, build the target ```blimp```. |
| 39 | 44 |
| 40 ## Building for Android | 45 ## Building for Android |
| 41 | 46 |
| 42 ``` | 47 ``` |
| 43 ninja -C out-android/Debug blimp | 48 ninja -C out-android/Debug blimp |
| 44 ``` | 49 ``` |
| 45 | 50 |
| 46 ## Building for Linux | 51 ## Building for Linux |
| 47 | 52 |
| 48 ``` | 53 ``` |
| 49 ninja -C out-linux/Debug blimp | 54 ninja -C out-linux/Debug blimp |
| 50 ``` | 55 ``` |
| OLD | NEW |