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

Side by Side Diff: samples/slider/README

Issue 9977011: get rid of dependency on htmlconverter for everything but swarm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 for details. All rights reserved. Use of this source code is governed by a 2 for details. All rights reserved. Use of this source code is governed by a
3 BSD-style license that can be found in the LICENSE file. 3 BSD-style license that can be found in the LICENSE file.
4 4
5 Very simple sample app showing use of the [SliderMenu] view. 5 Very simple sample app showing use of the [SliderMenu] view.
6 6
7 Building and running: 7 Building and running:
8 8
9 1. go to the top-level directory of the project: 9 1. go to the top-level directory of the project:
10 $ cd dart/ 10 $ cd dart/
11 11
12 2. build the dartc compiler: 12 2. build the dartc compiler:
13 $ ./tools/build.py --arch=ia32 13 $ ./tools/build.py --arch=ia32
14 14
15 3. run the htmlconverter tool, that converts the dart code to javascript: 15 3. either compile the Dart code to JavaScript, or load the code directly into
16 $ cd client/ 16 Dartium:
17 $ python ./tools/htmlconverter.py \
18 samples/slider/slider_sample.html -o out/
19 17
20 4. open the generated file in a browser: 18 - to compile the code:
21 $ google-chrome out/client/samples/slider/slider_sample-js.html 19 $(DART_SDK)/bin/frogc --out=slide_sample.dart.js slide_sample.dart
20
21 4. open the generated file in a browser (either Dartium, Chrome, or another
22 supported browser):
23 $ google-chrome slide_sample.html
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698