diff --git a/getting_source.md b/getting_source.md index ca98fb65d6a7c1c87580e483188118350fe0b3f0..bb8cbca0952d6c0f04ab1315bbd37d7d41442709 100644 --- a/getting_source.md +++ b/getting_source.md @@ -5,16 +5,9 @@ Fuchsia uses the `jiri` tool to manage git repositories [https://fuchsia.googlesource.com/jiri](https://fuchsia.googlesource.com/jiri). This tool manages a set of repositories specified by a manifest. -## Prerequisites - -On Ubuntu: - - * `sudo apt-get install golang git build-essential curl unzip` - -On Mac: - - * Install Xcode Command Line Tools - * `brew install golang` +For how to build, see Fuchsia's +[Getting Started](https://fuchsia.googlesource.com/docs/+/master/getting_started.md) +doc. ## Creating a new checkout diff --git a/getting_started.md b/getting_started.md index 6b4bf5e3050343888080e16cb024c2c542d017b0..db18751bfb63cc8887e1be7c5254b7aa69fff9a7 100644 --- a/getting_started.md +++ b/getting_started.md @@ -7,17 +7,47 @@ Welcome to Fuchsia! This is a top-level entry point for the project. From here we try to link to everything you need to get started, use, and develop for Fuchsia. +*** note +NOTE: The Fuchsia source includes +[Magenta](https://fuchsia.googlesource.com/magenta/+/master/README.md), +the core platform that underpins Fuchsia. +The Fuchsia build process will build Magenta as a side-effect; +to work on Magenta only, read and follow Magenta's +[Getting Started](https://fuchsia.googlesource.com/magenta/+/master/docs/getting_started.md) +doc. +*** + ## Prerequisites -### Prepare your build environment +### Prepare your build environment (Once per build environment) + +### Ubuntu + +``` +sudo apt-get install texinfo libglib2.0-dev autoconf libtool libsdl-dev build-essential golang git build-essential curl unzip +``` + +### macOS +Install the Xcode Command Line Tools: +``` +xcode-select --install +``` -The Fuchsia source -includes [Magenta](https://fuchsia.googlesource.com/magenta/+/HEAD/README.md), -the core platform that underpins Fuchsia. Click the link below, follow the -steps under *Preparing the build environment*, and then return to this document. -(Do not continue to the *Install Toolchains* section.) +Install the other pre-reqs: +* Using Homebrew: +``` +# Install Homebrew +/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +# Install packages +brew install wget pkg-config glib autoconf automake libtool golang +``` -* [Preparing the Magenta build environment](https://fuchsia.googlesource.com/magenta/+/master/docs/getting_started.md#Preparing-the-build-environment). +* Using MacPorts: +``` +# Install MacPorts +# See https://guide.macports.org/chunked/installing.macports.html +port install autoconf automake libtool libpixman pkgconfig glib2 +``` ### [Googlers only] Goma