 Chromium Code Reviews
 Chromium Code Reviews Issue 8341103:
  build.py will not accept --arch=dartc soon, so removing references and uses of --arch=dartc in th...  (Closed) 
  Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
    
  
    Issue 8341103:
  build.py will not accept --arch=dartc soon, so removing references and uses of --arch=dartc in th...  (Closed) 
  Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/| OLD | NEW | 
|---|---|
| 1 Chat server | 1 Chat server | 
| 2 ----------- | 2 ----------- | 
| 3 | 3 | 
| 4 This sample implements a simple chat server using Dart for both the | 4 This sample implements a simple chat server using Dart for both the | 
| 5 client and server code. The server is implementing a sub-set of the | 5 client and server code. The server is implementing a sub-set of the | 
| 6 HTTP protocol using the socket support in the Dart VM. The client is | 6 HTTP protocol using the socket support in the Dart VM. The client is | 
| 7 implemented using the Dart DOM API and compiled to JavaScript for | 7 implemented using the Dart DOM API and compiled to JavaScript for | 
| 8 running in the browser. | 8 running in the browser. | 
| 9 | 9 | 
| 10 | 10 | 
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 | 26 | 
| 27 js_client/ # Code for an equivalent client using plain JavaScript. | 27 js_client/ # Code for an equivalent client using plain JavaScript. | 
| 28 | 28 | 
| 29 | 29 | 
| 30 How to run | 30 How to run | 
| 31 ---------- | 31 ---------- | 
| 32 | 32 | 
| 33 First of all make sure that the Dart VM and Dart compiler are build by | 33 First of all make sure that the Dart VM and Dart compiler are build by | 
| 34 running the following from the root of the Dart checkout: | 34 running the following from the root of the Dart checkout: | 
| 35 | 35 | 
| 36 $ tools/build.py --arch=dartc --mode=release | |
| 37 $ tools/build.py --arch=ia32 --mode=release | 36 $ tools/build.py --arch=ia32 --mode=release | 
| 
kasperl
2011/10/28 10:35:18
Does this still build DartC?
 
ngeoffray
2011/10/28 10:39:05
Yes. It's building at the top-level, so it's build
 | |
| 38 | 37 | 
| 39 All the commands below should be executed in the samples/chat | 38 All the commands below should be executed in the samples/chat | 
| 40 directory. | 39 directory. | 
| 41 | 40 | 
| 42 $ cd samples/chat | 41 $ cd samples/chat | 
| 43 | 42 | 
| 44 First step is to compile the client Dart source into JavaScript for | 43 First step is to compile the client Dart source into JavaScript for | 
| 45 the browser. | 44 the browser. | 
| 46 | 45 | 
| 47 $ ../../out/Release_dartc/dartc dart_client/chat.dart | 46 $ ../../out/Release_ia32/dartc dart_client/chat.dart | 
| 48 | 47 | 
| 49 This will create the JavaScript for the Dart application in the out | 48 This will create the JavaScript for the Dart application in the out | 
| 50 directory. | 49 directory. | 
| 51 | 50 | 
| 52 Next step is to start the server | 51 Next step is to start the server | 
| 53 | 52 | 
| 54 $ ../../out/Release_ia32/dart_bin chat_server.dart | 53 $ ../../out/Release_ia32/dart_bin chat_server.dart | 
| 55 | 54 | 
| 56 Now navigate you Chrome browser to http://localhost:8123 and start | 55 Now navigate you Chrome browser to http://localhost:8123 and start | 
| 57 chatting. | 56 chatting. | 
| OLD | NEW |