diff 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
line wrap: on
line diff
--- a/rakefile	Wed Mar 18 12:10:17 2009 +0100
+++ b/rakefile	Thu Mar 19 20:38:55 2009 +0100
@@ -12,7 +12,13 @@
 OBJDIR="obj"
 DIMPDIR="imp"
 RSPNAME="rsp"
-ALL_RESDIRS= [ "java/res", "org.eclipse.swt.win32.win32.x86/res", "res" ]
+ALL_RESDIRS= [ "java/res", "res" ]
+
+if Rake::Win32.windows?
+    ALL_RESDIRS << "org.eclipse.swt.win32.win32.x86/res"
+else
+    ALL_RESDIRS << "org.eclipse.swt.gtk.linux.x86/res"
+end
 
 class String
     def to_path
@@ -100,7 +106,11 @@
 
 desc "Build SWT"
 task :swt do
-    buildTree( "org.eclipse.swt.win32.win32.x86", "src", "res" )
+    if Rake::Win32.windows?
+        buildTree( "org.eclipse.swt.win32.win32.x86", "src", "res" )
+    else
+        buildTree( "org.eclipse.swt.gtk.linux.x86", "src", "res" )
+    end
 end
 
 desc "Build Equinox"
@@ -120,6 +130,10 @@
 desc "Build JFace"
 task :jface do
     buildTree( "org.eclipse.jface", "src", "res" )
+end
+
+desc "Build JFace.Text"
+task :jfacetext do
     buildTree( "org.eclipse.text", "src", "res" )
     buildTree( "org.eclipse.jface.text", "projection", "res", "-Isrc" )
     buildTree( "org.eclipse.jface.text", "src", "res" )
@@ -136,8 +150,10 @@
 end
 
 desc "Build ALL"
-task :all => [ :java, :swt, :equinox, :core, :jface, :uiforms, :draw2d ]
+task :all => [ :java, :swt, :equinox, :core, :jface, :jfacetext, :uiforms,
+    :draw2d ]
 
+desc "Clean, then build ALL"
 task :default => [ :clean, :all ]