Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: tools/gn/docs/hacking.md

Issue 1052883002: migrate GN docs from the wiki to the repo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split md_browser out into its own dir Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/gn/docs/hacking.md
diff --git a/tools/gn/docs/hacking.md b/tools/gn/docs/hacking.md
new file mode 100644
index 0000000000000000000000000000000000000000..ab94b58c92724e894a63820b6a9b79312e752c83
--- /dev/null
+++ b/tools/gn/docs/hacking.md
@@ -0,0 +1,23 @@
+# Hacking on the GN binary itself
+
+## Building GN itself
+
+GN is part of the Chromium tree. If you have a Chromium checkout, you
+already have the source and you can do `ninja -C out/Debug gn` to
+build it.
+
+To build gn using gn, run (in the root `src` directory):
+
+```
+gn gen out/Default
+ninja -C out/Default gn
+```
+
+Change `out/Default` as necessary to put the build directory where you
+want.
+
+## Running GN's unit tests
+
+```
+ninja -C out/Default gn_unittests && out/Default/gn_unittests
+```
« no previous file with comments | « tools/gn/docs/faq.md ('k') | tools/gn/docs/language.md » ('j') | tools/gn/docs/standalone.md » ('J')

Powered by Google App Engine
This is Rietveld 408576698