Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: blimp/docs/build.md

Issue 1757093002: Create gn arg templates for use with blimp builds. Update build doc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove build prefs. Update associated templates, comments, and docs. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/args/blimp_client.gn » ('j') | build/args/blimp_client.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 Create an out-directory and set the GN args: 11 Create an out-directory and set the GN args:
12 12
13 ```bash 13 ```bash
14 mkdir -p out-android/Debug 14 mkdir -p out-android/Debug
15 gn args out-android/Debug 15 echo "import(\"//build/args/blimp_client.gn\")" > out-android/Debug/args.gn
16 ``` 16 gn gen out-android/Debug
17
18 This will bring up an editor, where you can type in the following:
19
20 ```bash
21 target_os = "android"
22 is_debug = true
23 is_clang = true
24 is_component_build = true
25 symbol_level = 1 # Use -g1 instead of -g2
26 use_goma = true
27 ``` 17 ```
28 18
29 To build: 19 To build:
30 20
31 ```bash 21 ```bash
32 ninja -C out-android/Debug blimp 22 ninja -C out-android/Debug blimp
33 ``` 23 ```
34 24
35 You can also build and install incremental APK like this: 25 You can also build and install incremental APK like this:
36 26
37 ```bash 27 ```bash
38 ninja -C out-android/Debug blimp blimp_apk_incremental && 28 ninja -C out-android/Debug blimp blimp_apk_incremental &&
39 out-android/Debug/bin/install_blimp_apk_incremental 29 out-android/Debug/bin/install_blimp_apk_incremental
40 ``` 30 ```
41 31
32 To add your own build preferences
33 ```bash
34 gn args out-android/Debug
35 ```
36
42 ## Engine inside a Docker container 37 ## Engine inside a Docker container
43 38
44 Create another out-directory and set the GN args. Note, when building to run 39 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": 40 inside a [Docker container](container.md) you'll need to set the target_os to "c hromeos":
46 41
47 ```bash 42 ```bash
48 mkdir -p out-chromeos/Debug 43 mkdir -p out-docker/Debug
49 gn args out-chromeos/Debug 44 echo "import(\"//build/args/blimp_engine_containerized.gn\")" > out-docker/Debug /args.gn
50 ``` 45 gn gen out-docker/Debug
51
52 This will bring an editor, where you can type in the following:
53
54 ```bash
55 target_os = "chromeos"
56 is_debug = true
57 is_clang = true
58 symbol_level = 1 # Use -g1 instead of -g2
59 use_goma = true
60 use_aura = true
61 use_ozone = true
62 use_alsa = false
63 use_pulseaudio = false
64 ``` 46 ```
65 47
66 To build: 48 To build:
67 49
68 ```bash 50 ```bash
69 ninja -C out-chromeos/Debug blimp 51 ninja -C out-docker/Debug blimp
52 ```
53
54 To add your own build preferences
55 ```bash
56 gn args out-docker/Debug
70 ``` 57 ```
71 58
72 ## "Bare" engine, no Docker container 59 ## "Bare" engine, no Docker container
73 60
74 Create another out-directory and set the GN args: 61 Create another out-directory and set the GN args:
75 62
76 ```bash 63 ```bash
77 mkdir -p out-linux/Debug 64 mkdir -p out-linux/Debug
78 gn args out-linux/Debug 65 echo "import(\"//build/args/blimp_engine.gn\")" > out-linux/Debug/args.gn
79 ``` 66 gn gen out-linux/Debug
80
81 This will bring an editor, where you can type in the following:
82
83 ```bash
84 is_debug = true
85 is_clang = true
86 is_component_build = true
87 symbol_level = 1 # Use -g1 instead of -g2
88 use_goma = true
89 use_aura = true
90 use_ozone = true
91 ``` 67 ```
92 68
93 To build: 69 To build:
94 70
95 ```bash 71 ```bash
96 ninja -C out-linux/Debug blimp 72 ninja -C out-linux/Debug blimp
97 ``` 73 ```
74
75 To add your own build preferences
76 ```bash
77 gn args out-android/Debug
78 ```
OLDNEW
« no previous file with comments | « no previous file | build/args/blimp_client.gn » ('j') | build/args/blimp_client.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698