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

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: Add spaces Created 5 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 | « 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 10f99ca7359f26d99ee178fec342f074254ff8e8..e6840a9432576804b3a5e9d0af5a1a4dbbd50e7e 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"
+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