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

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

Issue 1177043014: Fix broken link and add cross-compiling to quick start (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 | « tools/gn/docs/faq.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/docs/quick_start.md
diff --git a/tools/gn/docs/quick_start.md b/tools/gn/docs/quick_start.md
index 49f16ae08be33b2a32e749ad653eb33590518e20..1ce79c59b0dc8a098454a27d774eaa3374b97230 100644
--- a/tools/gn/docs/quick_start.md
+++ b/tools/gn/docs/quick_start.md
@@ -50,6 +50,22 @@ on how to use these in your code. (Note that you have to specify the
build directory for this command because the available arguments can
change according to what's set.
+## Cross-compiling to a target OS or architecture
+
+Run `gn args out/Default` (substituting your build directory as needed) and
+add one or more of the following lines for common cross-compiling options.
+
+```
+target_os="chromeos"
brettw 2015/06/19 17:47:06 Can you put spaces on each side of the = in these
dmazzoni 2015/07/16 19:30:02 Done.
+target_os="android"
+
+target_cpu="arm"
+target_cpu="x86"
+target_cpu="x64"
+```
+
+See [GNCrossCompiles](cross_compiles.md) for more info.
+
## Configuring goma
« no previous file with comments | « tools/gn/docs/faq.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698