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

Unified Diff: site/user/quick/gn.md

Issue 2192203002: GN: quick doc (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix clang Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site/user/quick/gn.md
diff --git a/site/user/quick/gn.md b/site/user/quick/gn.md
new file mode 100644
index 0000000000000000000000000000000000000000..93f7680a85a62634faa07663c5102864d3305a1f
--- /dev/null
+++ b/site/user/quick/gn.md
@@ -0,0 +1,42 @@
+GN
+=====
+
+[GN](https://chromium.googlesource.com/chromium/src/tools/gn/)
+is a new meta-build system originally designed to replace GYP in Chromium.
+
+You can build Skia using GN in a limited number of configurations. We expect
+that as that limited number rises, GN will become the preferred, and then only,
+way to build Skia.
+
+Supported Features
+----------
+
+ * Linux, Mac
+ * Software rendering
+ * libskia.a, libskia.so
+ * DM, nanobench
+
+Quickstart
+----------
+
+Please check out Skia using the instructions in one of the other quick start
+guides. We diverge where they'd first run some command with "gyp" in it.
+
+<!--?prettify lang=sh?-->
+
+ # After gclient sync, run fetch-gn to make sure you have GN.
+ gclient sync && bin/fetch-gn
hal.canary 2016/08/03 18:26:45 `bin/sync` is a good wrapper around `gclient sync`
+
+ # Run GN to generate your build files. Some examples.
+ gn gen out/Release
+ gn gen out/Debug --args=is_debug=true
+ gn gen out/Clang --args='cc="clang" cxx="clang++"'
+ gn gen out/Shared --args=is_component_build=true
+
+ # Build
+ ninja -C out/Release
+ ninja -C out/Debug
+ ninja -C out/Clang
+ ninja -C out/Shared
+
+From here everything is pretty much business as usual.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698