OLD | NEW |
---|---|
1 [TOC] | |
2 | |
3 # Checkout | |
4 If you want to build the Android client then you would need to follow | |
Kevin M
2016/06/28 22:31:52
will need
Sriram
2016/06/28 23:22:38
Done.
| |
5 instruciton [here](https://www.chromium.org/developers/how-tos/android-build-ins tructions) | |
Kevin M
2016/06/28 22:31:52
typo: "instructions"
Sriram
2016/06/28 23:22:38
Done.
| |
6 to sync Android related code as well. | |
7 | |
1 # Using GN | 8 # Using GN |
2 Blimp only supports building using [GN](../../tools/gn/README.md). A quick | 9 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 | 10 overview over how to use GN can be found in the GN |
4 [quick start guide](../../tools/gn/docs/quick_start.md). | 11 [quick start guide](../../tools/gn/docs/quick_start.md). |
5 | 12 |
6 ## Building | 13 ## Building |
7 | 14 |
8 There are two different build configurations depending on what you want to | 15 There are two different build configurations depending on what you want to |
9 build: | 16 build: |
10 | 17 |
(...skipping 27 matching lines...) Expand all Loading... | |
38 ninja -C out-android/Debug blimp && \ | 45 ninja -C out-android/Debug blimp && \ |
39 out-android/Debug/bin/install_blimp_apk_incremental | 46 out-android/Debug/bin/install_blimp_apk_incremental |
40 ``` | 47 ``` |
41 | 48 |
42 To add your own build preferences: | 49 To add your own build preferences: |
43 | 50 |
44 ```bash | 51 ```bash |
45 gn args out-android/Debug | 52 gn args out-android/Debug |
46 ``` | 53 ``` |
47 | 54 |
55 For example, you can build `x86` APK by adding `target_cpu = "x86"` to the `gn | |
56 args`. | |
57 | |
58 | |
48 ### Engine | 59 ### Engine |
49 | 60 |
50 Create another out-directory and set the GN args: | 61 Create another out-directory and set the GN args: |
51 | 62 |
52 ```bash | 63 ```bash |
53 mkdir -p out-linux/Debug | 64 mkdir -p out-linux/Debug |
54 echo "import(\"//build/args/blimp_engine.gn\")" > out-linux/Debug/args.gn | 65 echo "import(\"//build/args/blimp_engine.gn\")" > out-linux/Debug/args.gn |
55 gn gen out-linux/Debug | 66 gn gen out-linux/Debug |
56 ``` | 67 ``` |
57 | 68 |
(...skipping 22 matching lines...) Expand all Loading... | |
80 (non-default for Chrome) behavior desired by Blimp (see below). | 91 (non-default for Chrome) behavior desired by Blimp (see below). |
81 | 92 |
82 ## Updating bulid arguments in templates | 93 ## Updating bulid arguments in templates |
83 | 94 |
84 Build argument templates exist for the client and engine at | 95 Build argument templates exist for the client and engine at |
85 [`build/args/blimp_client.gn`](../../build/args/blimp_client.gn) and | 96 [`build/args/blimp_client.gn`](../../build/args/blimp_client.gn) and |
86 [`build/args/blimp_engine.gn`](../../build/args/blimp_engine.gn). | 97 [`build/args/blimp_engine.gn`](../../build/args/blimp_engine.gn). |
87 | 98 |
88 These can be updated as in the same manner as your personal `args.gn` files | 99 These can be updated as in the same manner as your personal `args.gn` files |
89 to override default argument values. | 100 to override default argument values. |
OLD | NEW |