summaryrefslogtreecommitdiffstats
path: root/mojo/public/dart/README
blob: 5ff7ee3fad561b022bbbab6e205e130e0864cd2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
These are interim instructions for building and testing Dart's Mojo bindings.
These instructions currently only work for Linux, and assume you already have a
Mojo checkout.

1.) Install the Dart SDK.

- apt-get -

Follow instructions at: https://www.dartlang.org/tools/debian.html

- Debian package -

Download from:

$ wget https://storage.googleapis.com/dart-archive/channels/dev/release/latest/linux_packages/debian_wheezy/dart_1.8.0-dev.2.0-1_amd64.deb
$ dpkg -i dart_1.8.0-dev.2.0-1_amd64.deb

- From source -

Follow instructions here: https://code.google.com/p/dart/wiki/Building

and build the "create_sdk" target.

With the first two options, dart is on your path and you are ready to go.
When building from source, you must explicitly add
e.g. out/ReleaseX64/dart-sdk/bin to your path.


2.) Configure Mojo with Dart.

  $ ./mojob.sh --release --with-dart gn


3.) Build Mojo with Dart.

  $ ./mojob.sh --release build


4.) Run Dart tests.

  $ ./mojob.sh --release darttest


These are instructions for adding a Dart VM source checkout to your client.

1. Edit your .gclient file.

  Replace "DEPS" with "DEPS.dart"

2. Run:

  $ gclient sync

  You should now have a directory //src/dart