Follow https://github.com/ChromeDevTools/devtools-frontend/blob/main/docs/workflows.md
The dtb
and dtcr
commmands here are nice.
Please read this doc: Chrome DevTools Contribution Guide
- Set the
args.gn
as your gn build configuration- Probably best to run
gn args out/Default
and copy/paste what you want to use, then save.
- Probably best to run
source chromium.sh
git pull && depsbcr
That's it. You can also run the various components of the bash script seperately and together.
deps
: run gclient sync to synchronize all the "submodule" dependencieshooks
run gclient hooks, which is otherwise automaticaly run after deps.gom
: initialize gomab
: build/compile chromecr
: run the built chrome binary
I often do this sequence: git pull && deps && bcr
followed by hacking followed by bcr
, bcr
, bcr
.
https://chromium.googlesource.com/chromium/src/+/HEAD/docs/clangd.md https://chromium.googlesource.com/chromium/src/+/HEAD/docs/vscode.md
Googlers:
- Avoid committing to main. https://gist.github.com/stefansundin/9059706/#file-install-pre-commit-sh
@athyuttamre somewhere in the last two years i updated these for GN. just stating it for the record. :)