blob: 507474ea993cc58d856704cc15a1a5f5001277b7 [file] [log] [blame] [view]
Scott Grahamf94d84d2017-06-26 18:24:401# Checking out and building on Fuchsia
2
David Dorwinfe186dd2022-05-20 18:35:133***If you have followed the instructions below and are still having trouble,
4see [Contact information](README.md#contact-information).***
Scott Grahamf94d84d2017-06-26 18:24:405
Fabrice de Gans-Riberi4468e912019-08-23 23:43:546[TOC]
7
Scott Grahamf94d84d2017-06-26 18:24:408## System requirements
9
Zijie Hebd2aca072024-11-06 19:35:2710Building and running on Linux is officially supported, mac build is not. If you
11are willing to run emulator based tests locally, KVM is required. You may check
12if `/dev/kvm` exists on the system, or follow the [Enable KVM](#enable-kvm)
13section.
Scott Grahamf94d84d2017-06-26 18:24:4014
Zijie Hebd2aca072024-11-06 19:35:27151. Follow up [chromium for linux](../linux/build_instructions.md) to setup
16chromium environment.
Scott Grahamf94d84d2017-06-26 18:24:4017
Zijie Hebd2aca072024-11-06 19:35:27182. Edit your `.gclient` to add `fuchsia` to the `target_os` list. The file
Fabrice de Gansf941df7e2021-11-23 21:33:1419 should look similar to this:
20
21 ```
22 solutions = [
23 {
24 "url": "https://chromium.googlesource.com/chromium/src.git",
25 "managed": False,
26 "name": "src",
27 "custom_deps": {},
28 "custom_vars": {}
29 }
30 ]
31 target_os = ['fuchsia']
32 ```
33
342. Run `gclient sync`
Zijie Hebd2aca072024-11-06 19:35:2735
Fabrice de Gansf941df7e2021-11-23 21:33:14363. Create a build directory:
37
38 ```shell
39 $ gn gen out/fuchsia --args="is_debug=false dcheck_always_on=true is_component_build=false target_os=\"fuchsia\""
40 ```
41
Takuto Ikuta