Mercurial > projects > dwt2
comparison rakefile @ 21:9b96950f2c3c
the 'java' tree compiles on both D1-Tango and D2-Phobos
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 19 Mar 2009 20:38:55 +0100 |
parents | dccb717aa902 |
children | f713da8bc051 |
comparison
equal
deleted
inserted
replaced
20:dccb717aa902 | 21:9b96950f2c3c |
---|---|
10 DMD="dmd" | 10 DMD="dmd" |
11 LOCALOBJDIR="obj" | 11 LOCALOBJDIR="obj" |
12 OBJDIR="obj" | 12 OBJDIR="obj" |
13 DIMPDIR="imp" | 13 DIMPDIR="imp" |
14 RSPNAME="rsp" | 14 RSPNAME="rsp" |
15 ALL_RESDIRS= [ "java/res", "org.eclipse.swt.win32.win32.x86/res", "res" ] | 15 ALL_RESDIRS= [ "java/res", "res" ] |
16 | |
17 if Rake::Win32.windows? | |
18 ALL_RESDIRS << "org.eclipse.swt.win32.win32.x86/res" | |
19 else | |
20 ALL_RESDIRS << "org.eclipse.swt.gtk.linux.x86/res" | |
21 end | |
16 | 22 |
17 class String | 23 class String |
18 def to_path | 24 def to_path |
19 self.gsub( '/', '\\' ); | 25 self.gsub( '/', '\\' ); |
20 end | 26 end |
98 buildTree( "java", "src", "res" ) | 104 buildTree( "java", "src", "res" ) |
99 end | 105 end |
100 | 106 |
101 desc "Build SWT" | 107 desc "Build SWT" |
102 task :swt do | 108 task :swt do |
103 buildTree( "org.eclipse.swt.win32.win32.x86", "src", "res" ) | 109 if Rake::Win32.windows? |
110 buildTree( "org.eclipse.swt.win32.win32.x86", "src", "res" ) | |
111 else | |
112 buildTree( "org.eclipse.swt.gtk.linux.x86", "src", "res" ) | |
113 end | |
104 end | 114 end |
105 | 115 |
106 desc "Build Equinox" | 116 desc "Build Equinox" |
107 task :equinox do | 117 task :equinox do |
108 buildTree( "org.eclipse.osgi", "src", "res" ) | 118 buildTree( "org.eclipse.osgi", "src", "res" ) |
118 end | 128 end |
119 | 129 |
120 desc "Build JFace" | 130 desc "Build JFace" |
121 task :jface do | 131 task :jface do |
122 buildTree( "org.eclipse.jface", "src", "res" ) | 132 buildTree( "org.eclipse.jface", "src", "res" ) |
133 end | |
134 | |
135 desc "Build JFace.Text" | |
136 task :jfacetext do | |
123 buildTree( "org.eclipse.text", "src", "res" ) | 137 buildTree( "org.eclipse.text", "src", "res" ) |
124 buildTree( "org.eclipse.jface.text", "projection", "res", "-Isrc" ) | 138 buildTree( "org.eclipse.jface.text", "projection", "res", "-Isrc" ) |
125 buildTree( "org.eclipse.jface.text", "src", "res" ) | 139 buildTree( "org.eclipse.jface.text", "src", "res" ) |
126 end | 140 end |
127 | 141 |
134 task :draw2d do | 148 task :draw2d do |
135 buildTree( "org.eclipse.draw2d", "src", "res" ) | 149 buildTree( "org.eclipse.draw2d", "src", "res" ) |
136 end | 150 end |
137 | 151 |
138 desc "Build ALL" | 152 desc "Build ALL" |
139 task :all => [ :java, :swt, :equinox, :core, :jface, :uiforms, :draw2d ] | 153 task :all => [ :java, :swt, :equinox, :core, :jface, :jfacetext, :uiforms, |
154 :draw2d ] | |
140 | 155 |
156 desc "Clean, then build ALL" | |
141 task :default => [ :clean, :all ] | 157 task :default => [ :clean, :all ] |
142 | 158 |
143 | 159 |