OLD | NEW |
---|---|
1 # Running Blimp | 1 # Running Blimp |
2 [TOC] | 2 [TOC] |
3 | 3 |
4 See [build](build.md) for instructions on how to build Blimp. | 4 See [build](build.md) for instructions on how to build Blimp. |
5 | 5 |
6 ## Android Client | 6 ## Android Client |
7 | 7 |
8 ### Installing the client | 8 ### Installing the client |
9 | 9 |
10 Install the Chrome Public APK with the following: | 10 Install the Chrome Public APK with the following: |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 * Some of scripts under `build/android` will fail to run as it uses `adb scp`. | 145 * Some of scripts under `build/android` will fail to run as it uses `adb scp`. |
146 Follow the instruction above to use `adb` directly. | 146 Follow the instruction above to use `adb` directly. |
147 | 147 |
148 * To connect to an Engine running on the host machine, you should use | 148 * To connect to an Engine running on the host machine, you should use |
149 `10.0.2.2` as `engine-ip` instead of `127.0.0.1` as `127.0.0.1` will refer to | 149 `10.0.2.2` as `engine-ip` instead of `127.0.0.1` as `127.0.0.1` will refer to |
150 the emulator itself. There is no need of set up | 150 the emulator itself. There is no need of set up |
151 [port forwarding](#Port-forwarding) when this approach is used. | 151 [port forwarding](#Port-forwarding) when this approach is used. |
152 | 152 |
153 ## Linux Client | 153 ## Linux Client |
154 | 154 |
155 The Linux client is used for development purpose while the Android client is | 155 The Linux client is useful for development purposes where the full Android UI |
156 shipped. The Linux client is built as part of the `blimp` target. | 156 is not required. |
157 | |
158 Build with the following commands: | |
159 ``` | |
160 mkdir -p out-linux/Client | |
Wez
2016/09/16 00:48:53
nit: Looks like gn gen will take care of this :)
| |
161 | |
162 gn gen out-linux/Client | |
163 ninja -C out-linux/Client blimp_shell | |
164 ``` | |
165 | |
166 | |
157 To run it with local logging enabled, execute: | 167 To run it with local logging enabled, execute: |
158 | 168 |
159 ```bash | 169 ```bash |
160 ./out-linux/Debug/blimp_shell \ | 170 ./out-linux/Client/blimp_shell \ |
161 --user-data-dir=/tmp/blimpclient \ | 171 --user-data-dir=/tmp/blimpclient \ |
162 --enable-logging=stderr \ | 172 --enable-logging=stderr \ |
163 --vmodule="*=1" | 173 --vmodule="*=1" \ |
174 --engine-ip=127.0.0.1 \ | |
175 --engine-port=25467 \ | |
176 --engine-transport=tcp \ | |
177 --blimp-client-token-path=/tmp/blimpengine-token | |
178 ``` | |
179 | |
180 **PS:** Create the `/tmp/blimpengine-token` file with any amount of characters. | |
181 For example: | |
182 | |
183 ``` | |
184 echo "anything" > /tmp/blimpengine-token | |
164 ``` | 185 ``` |
165 | 186 |
166 ## Running the engine | 187 ## Running the engine |
167 | 188 |
168 ### In a container | 189 ### In a container |
169 For running the engine in a container, see [container](container.md). | 190 For running the engine in a container, see [container](container.md). |
170 | 191 |
171 ### On a workstation | 192 ### On a workstation |
172 The following flags are required to start an Engine instance: | 193 The following flags are required to start an Engine instance: |
173 | 194 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
255 killing engine if keyboard interrupts or client gets killed. | 276 killing engine if keyboard interrupts or client gets killed. |
256 | 277 |
257 ```bash | 278 ```bash |
258 out-linux/Debug/bin/client_engine_integration run | 279 out-linux/Debug/bin/client_engine_integration run |
259 ``` | 280 ``` |
260 | 281 |
261 2. Same as step 2 in Option A. | 282 2. Same as step 2 in Option A. |
262 | 283 |
263 3. Engine should be auto-killed by keyboard stopping the `{run}` script or the client | 284 3. Engine should be auto-killed by keyboard stopping the `{run}` script or the client |
264 gets wiped out. `{stop}` works as well. | 285 gets wiped out. `{stop}` works as well. |
OLD | NEW |