Changeset 318
- Timestamp:
- 04/24/07 12:48:10 (2 years ago)
- Files:
-
- trunk/README (modified) (2 diffs)
- trunk/rakefile (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/README
r316 r318 29 29 == Windows == 30 30 + DMD 1.013 31 + DSSS 0.6 332 * Tango TO BE DONE33 * Mango TO BE DONE31 + DSSS 0.64 32 + Tango trunk r2110 33 + Mango r962 34 34 35 35 = Build instructions = 36 36 run "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 39 47 40 48 After that the dejavu and the SWT lib were build and installed, … … 43 51 dsss build paint.d 44 52 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. 53 To run the examples, some dynamic libs need to be accessible by the exmamples. 54 On 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. 57 On 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. 48 59 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox:../swt-3.2.1-linux-gtk ./paint 49 60 .. or .. 50 61 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/firefox:../swt-3.2.1-linux-gtk 62 63 Then run: 64 paint.exe 51 65 ./paint 52 66 trunk/rakefile
r317 r318 4 4 require 'rbconfig' 5 5 6 BIN_DIR = "bin"7 BINTOD_DIR = "bintod"8 BINTOD_CMD = "bintod/bintod"9 10 6 if RUBY_PLATFORM =~ /mswin/i 11 7 puts "For WIN32" 12 8 13 9 SWT_PLATFORM = "win32" 10 BIN_EXT = ".exe" 11 def P(path) 12 return path.gsub( /\//, "\\" ) 13 end 14 14 15 15 elsif RUBY_PLATFORM =~ /linux/i … … 18 18 SWT_PLATFORM = "linux-gtk" 19 19 20 BIN_EXT = "" 21 def P(path) 22 return path 23 end 24 20 25 elsif RUBY_PLATFORM =~ /darwin/i 21 26 puts "For MAC OSX" 22 27 23 28 SWT_PLATFORM = "macos" 29 BIN_EXT = "" 30 31 def P(path) 32 return path 33 end 24 34 25 35 else 26 36 puts "OS not detected" 27 37 end 38 39 BIN_DIR = "bin" 40 BINTOD_DIR = "bintod" 41 BINTOD_CMD = P("bintod/bintod") 28 42 29 43 SWT_VERSION = "3.2.1" … … 32 46 33 47 directory BIN_DIR 34 35 namespace :convert do36 namespace :swt_321 do37 task :win32 do38 end39 task :macosx do40 end41 task :linux_gtk do42 end43 end44 end45 48 46 49 CLEAN.include( BINTOD_CMD ) … … 107 110 108 111 examples.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") 113 116 file resources => [resources_cfg, BINTOD_CMD] do 114 117 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") 116 120 end 117 121 end … … 119 123 runDsss SWT_EXAMPLES, "build #{t}.d" 120 124 end 121 task :swt321_examples => [binary]125 task :swt321_examples => binary 122 126 CLEAN.include binary 123 127 end
