You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/contributing/Compiling-the-engine.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,18 +200,28 @@ Also, be sure that Python27 is before any other python in your Path.
200
200
201
201
### Build components for Fuchsia
202
202
203
-
1. Building fuchsia is only supported on linux. You need to run `gclient config --custom-var=download_fuchsia_deps=True` then `gclient sync`.
203
+
1. Building fuchsia is only supported on linux. You need to update `engine/.gclient`, or `../.gclient` if current directory is `engine/src`, with `custom_vars`.
204
204
205
-
It will set `"download_fuchsia_deps": True` in `"custom_vars"` section in `.gclient` file, and download necessary binaries to build fuchsia components.
205
+
```
206
+
solutions = [
207
+
{
208
+
# ...
209
+
"custom_vars": {
210
+
"download_fuchsia_deps": True,
211
+
"run_fuchsia_emu": True,
212
+
},
213
+
},
214
+
]
215
+
```
206
216
207
-
2. If you'd like to run tests locally, also run `gclient config --custom-var=run_fuchsia_emu=True` then `gclient sync`.
217
+
> You may ignore `"run_fuchsia_emu": True` if you won't run tests locally.
208
218
209
-
It will set `"run_fuchsia_emu": True` in `"custom_vars"` section in `.gclient` file, and download necessary binaries and images to run tests on fuchsia emulators.
210
-
You can set both `custom_vars` and run `gclient sync` only once.
219
+
Run `gclient sync`.
211
220
212
-
You will also need kvm enabled, or nested virtualization on the gcloud VMs. Fuchsia and the tests will all be executed on the qemu.
221
+
> [!WARNING]
222
+
> When running tests locally, you will also need kvm enabled, or nested virtualization on the gcloud VMs. Fuchsia and the tests will all be executed on the qemu.
213
223
214
-
3. Prepare and build
224
+
2. Prepare and build
215
225
216
226
```
217
227
./flutter/tools/gn --fuchsia --no-lto
@@ -238,7 +248,7 @@ fuchsia_tests
238
248
* Use `autoninja` if it's available.
239
249
*`-C out/fuchsia_release_x64` for release build; other configurations are similar with a different folder name in `out/`.
* It runs the tests in `out/fuchsia_debug_x64` by default. According to the configuration, it may take 5 minutes with regular gtest output to the terminal.
248
258
* Add `fuchsia_release_x64` at the end of the command for release build; other configurations are similar with a different folder name in `out/`.
0 commit comments