From f3d69ae8fb79c38ec9e202c8ad4167db0f6758a0 Mon Sep 17 00:00:00 2001 From: David Manouchehri Date: Thu, 30 Jan 2020 16:14:44 -0500 Subject: [PATCH] Added GN info. --- Project-Setup.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Project-Setup.md b/Project-Setup.md index bfe8e57..60531b1 100644 --- a/Project-Setup.md +++ b/Project-Setup.md @@ -68,6 +68,13 @@ intercept-build make all # generates compile_commands.json from the `make all` r ninja -C out/Release -t compdb cxx cc > compile_commands.json ``` +### [GN](https://gn.googlesource.com/gn/) + +```zsh +# Format: gn gen out/Release --export-compile-commands[=] +gn gen out/Release --export-compile-commands=cc +``` + ### [Waf](https://waf.io/) Load the `clang_compilation_database` tool in your wscript: