Changeset 318

Show
Ignore:
Timestamp:
04/24/07 12:48:10 (2 years ago)
Author:
keinfarbton
Message:

Tested on Windows

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/README

    r316 r318  
    2929    == Windows == 
    3030    + DMD 1.013 
    31     + DSSS 0.63 
    32     * Tango TO BE DONE 
    33     * Mango TO BE DONE 
     31    + DSSS 0.64 
     32    + Tango trunk r2110 
     33    + Mango r962 
    3434 
    3535= Build instructions = 
    3636run "rake -T" to get a list with the available build targets. 
    37 To build the SWT examples run "rake swt321_examples". This will 
    38 also build dejavu and the library for the SWT tree. 
     37 
     38     1. Build the libs 
     39        rake swt321 
     40     2. Build all examples 
     41        rake swt321_examples 
     42 
     43 if you want to build a specific example run 
     44 
     45     rake swt-3.2.1-examples\paint.exe 
     46     rake swt-3.2.1-examples/paint 
    3947 
    4048After that the dejavu and the SWT lib were build and installed, 
     
    4351    dsss build paint.d 
    4452 
    45 To run the examples, on windows simple start the executable: 
    46     paint.exe 
    47 on linux, you also need to set the LD_LIBRARY_PATH variable to include the SWT libs and your current mozilla browswer libs. 
     53To run the examples, some dynamic libs need to be accessible by the exmamples. 
     54On Window either copy the swt-....dll from the swt-3.2.1-win32/libs directory 
     55    to a directory, that is already in the PATH, or add this directory to the PATH 
     56    environment variable. 
     57On Linux do the same with the LD_LIBRARY_PATH variable. Additionally the mozilla libs are needed. 
     58    SWT is linked with everything (at the moment), this include also the browser components. 
    4859    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox:../swt-3.2.1-linux-gtk ./paint 
    4960    .. or .. 
    5061    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox:../swt-3.2.1-linux-gtk 
     62 
     63Then run: 
     64    paint.exe 
    5165    ./paint 
    5266 
  • trunk/rakefile

    r317 r318  
    44require 'rbconfig' 
    55 
    6 BIN_DIR = "bin" 
    7 BINTOD_DIR = "bintod" 
    8 BINTOD_CMD = "bintod/bintod" 
    9  
    106if RUBY_PLATFORM =~ /mswin/i 
    117    puts "For WIN32" 
    128 
    139    SWT_PLATFORM = "win32" 
     10    BIN_EXT = ".exe" 
     11    def P(path) 
     12        return path.gsub( /\//, "\\" ) 
     13    end 
    1414 
    1515elsif RUBY_PLATFORM =~ /linux/i 
     
    1818    SWT_PLATFORM = "linux-gtk" 
    1919 
     20    BIN_EXT = "" 
     21    def P(path) 
     22        return path 
     23    end 
     24 
    2025elsif RUBY_PLATFORM =~ /darwin/i 
    2126    puts "For MAC OSX" 
    2227 
    2328    SWT_PLATFORM = "macos" 
     29    BIN_EXT = "" 
     30 
     31    def P(path) 
     32        return path 
     33    end 
    2434 
    2535else 
    2636    puts "OS not detected" 
    2737end 
     38 
     39BIN_DIR = "bin" 
     40BINTOD_DIR = "bintod" 
     41BINTOD_CMD = P("bintod/bintod") 
    2842 
    2943SWT_VERSION = "3.2.1" 
     
    3246 
    3347directory BIN_DIR 
    34  
    35 namespace :convert do 
    36     namespace :swt_321 do 
    37         task :win32 do 
    38         end 
    39         task :macosx do 
    40         end 
    41         task :linux_gtk do 
    42         end 
    43     end 
    44 end 
    4548 
    4649CLEAN.include( BINTOD_CMD ) 
     
    107110 
    108111examples.each do |t| 
    109     binary = "#{SWT_EXAMPLES}/#{t}" 
    110     source = "#{SWT_EXAMPLES}/#{t}.d" 
    111     resources = "#{SWT_EXAMPLES}/resources_#{t}.d" 
    112     resources_cfg = "#{SWT_EXAMPLES}/resources_#{t}.xml" 
     112    binary = P("#{SWT_EXAMPLES}/#{t}#{BIN_EXT}") 
     113    source = P("#{SWT_EXAMPLES}/#{t}.d") 
     114    resources = P("#{SWT_EXAMPLES}/resources_#{t}.d") 
     115    resources_cfg = P("#{SWT_EXAMPLES}/resources_#{t}.xml") 
    113116    file resources => [resources_cfg, BINTOD_CMD] do 
    114117        runInPath SWT_EXAMPLES do 
    115             sh "../#{BINTOD_CMD} resources_#{t}.xml" 
     118            puts "running bintod is disable, due to a bug on windows. Using the svn version of the #{resources}" 
     119            #sh P("../#{BINTOD_CMD} resources_#{t}.xml") 
    116120        end 
    117121    end 
     
    119123        runDsss SWT_EXAMPLES, "build #{t}.d" 
    120124    end 
    121     task :swt321_examples => [binary] 
     125    task :swt321_examples => binary 
    122126    CLEAN.include binary 
    123127end