-
Notifications
You must be signed in to change notification settings - Fork 37
Building
-
Install depot_tools (to get
gclient,git cl, andninja). -
Set up GitHub ssh keys on your system (if you plan to contribute).
mkdir fletch-repo
cd fletch-repo
fetch fletch
cd fletch
One of three possible options:
- You're a committer on the dart-lang project, run:
git remote set-url origin [email protected]:dart-lang/fletch.git
- You're planning to contribute to Fletch. In that case use, fork it on GitHub and run:
git remote set-url origin <URL>
where <URL> is the SSH clone URL from GitHub.
- You just want to checkout Fletch and build it:
you are done already
To update your checkout run:
git pull
gclient sync
Git pull will update the fletch sources, while gclient sync will update all of our dependencies. If you have conflicts, you can use
git mergetool
After getting the sources, build Fletch by running:
ninja -C out/DebugIA32Clang
After getting the sources, build Fletch by running:
ninja -C out/DebugXARM
For Ubuntu 14.04.1 LTS (Trusty Tahr), you need to install the following packages to be able to cross-compile:
-
linux-libc-dev:i3861 gcc-4.8-arm-linux-gnueabihfg++-4.8-arm-linux-gnueabihf
Install them by running:
sudo apt-get install linux-libc-dev:i386 gcc-4.8-arm-linux-gnueabihf g++-4.8-arm-linux-gnueabihf
After building Fletch, you can test Fletch by running:
tools/test.py
If you plan on contributing to Fletch, we encourage you to fork the repository on GitHub.
Fletch uses the Chromium gclient tool for managing dependencies and the ninja build system for building. It only works on Mac and Linux at the moment.
1: When installing gcc-4.8-arm-linux-gnueabihf and g++-4.8-arm-linux-gnueabihf on Ubuntu, apt-get will uninstall gcc-multilib and g++-multilib. Unfortunately, this breaks cross-compiling IA32 on X64, so one needs to install the header files for IA32 (i386).