Changeset 316

Show
Ignore:
Timestamp:
04/24/07 11:47:33 (2 years ago)
Author:
keinfarbton
Message:

added rakefile
Updated the README

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README

    r305 r316  
    11SWT: 
    22 
    3 To use SWT, do the following: 
     3Requirements: 
     4* D Compiler 
     5    www.digitalmars.com 
     6* DSSS 
     7    www.dsource.org/projects/dsss 
     8* Rake (Ruby Make) 
     9    windows installer, including rake: http://rubyinstaller.rubyforge.org/wiki/wiki.pl 
     10    linux: comes with the disto, e.g. ubuntu "apt-get install rake" 
     11* Tango 
     12    www.dsource.org/projects/tango 
     13    after installing, runng "dsss build", "dsss install" in the tango root directory 
     14* Mango (xml sax parser for tioport/bintod) 
     15    www.dsource.org/projects/mango 
     16    after installing, runng "dsss build", "dsss install" in the tango root directory 
     17    Or, even more simple, just run "dsss net install mango" 
    418 
    5 == Build dejavu lib == 
    6 cd dejavu 
    7 dsss build 
    8 dsss install 
    9 cd .. 
     19= Last successfully tested with these dependencies =  
     20 * "+" was currentl version 
     21 * "-" needed downgrade 
    1022 
    11 == Build SWT lib == 
    12 windows: cd swt-3.2.1-win32 
    13 linux  : cd swt-3.2.1-linux-gtk 
    14 dsss build 
    15 dsss install 
    16 cd .. 
     23    == Linux == 
     24    + DMD 1.013 
     25    + DSSS 0.63 
     26    + Tango trunk r2110 
     27    + Mango r962 
    1728 
    18 == Build examples == 
    19 cd swt-3.2.1-examples 
    20 dsss build 
    21 windows: paint.exe 
    22 linux  : LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox:../swt-3.2.1-linux-gtk ./paint 
     29    == Windows == 
     30    + DMD 1.013 
     31    + DSSS 0.63 
     32    * Tango TO BE DONE 
     33    * Mango TO BE DONE 
     34 
     35= Build instructions = 
     36run "rake -T" to get a list with the available build targets. 
     37To build the SWT examples run "rake swt321_examples". This will 
     38also build dejavu and the library for the SWT tree. 
     39 
     40After that the dejavu and the SWT lib were build and installed, 
     41you can also run the compilation of a single example: 
     42    cd swt-3.2.1-examples 
     43    dsss build paint.d 
     44 
     45To run the examples, on windows simple start the executable: 
     46    paint.exe 
     47on linux, you also need to set the LD_LIBRARY_PATH variable to include the SWT libs and your current mozilla browswer libs. 
     48    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox:../swt-3.2.1-linux-gtk ./paint 
     49    .. or .. 
     50    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox:../swt-3.2.1-linux-gtk 
     51    ./paint 
    2352 
    2453