Mercurial > projects > dwt2
diff rakefile @ 30:93b0e7382fd5
SWT Snippets build on windows
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 23 Mar 2009 10:17:19 +0100 |
parents | 4e5843b771cc |
children | 712f3c7f7660 |
line wrap: on
line diff
--- a/rakefile Sun Mar 22 19:55:00 2009 +0100 +++ b/rakefile Mon Mar 23 10:17:19 2009 +0100 @@ -203,23 +203,28 @@ desc "Build SWT Snippet Collection" -task :swtsnippets do +task :swtsnippets, :explicit_snp do | t, args | snps_browser = [ "Snippet128", "Snippet136" ] snps_opengl = [ "Snippet174", "Snippet195" ] snps_exclude = snps_browser + snps_opengl allsnippets = FileList[ File.join("org.eclipse.swt.snippets", "src", "**/Snippet*.d" )] - allsnippets.each do | snp | - puts "Building #{snp}" - if snp =~ /.*(Snippet\w+)\.d$/ - snpname = $1 - if !snps_exclude.include? snpname - buildApp( "org.eclipse.swt.snippets", "src", "res", "", snpname ) + if args.explicit_snp != nil + puts "Building #{args.explicit_snp}" + buildApp( "org.eclipse.swt.snippets", "src", "res", "", args.explicit_snp ) + else + allsnippets.each do | snp | + puts "Building #{snp}" + if snp =~ /.*(Snippet\w+)\.d$/ + snpname = $1 + if !snps_exclude.include? snpname + buildApp( "org.eclipse.swt.snippets", "src", "res", "", snpname ) + end + else + puts snp + raise "Name does not match" end - else - puts snp - raise "Name does not match" end end end @@ -242,28 +247,51 @@ ALL_RESDIRS.each do | dir | rsp.puts "-J#{File.expand_path(dir).to_path}" end - rsp.print "-L" - rsp.print "+advapi32" - rsp.print "+comctl32" - rsp.print "+comdlg32" - rsp.print "+gdi32" - rsp.print "+kernel32" - rsp.print "+shell32" - rsp.print "+ole32" - rsp.print "+oleaut32" - rsp.print "+olepro32" - rsp.print "+oleacc" - rsp.print "+user32" - rsp.print "+usp10" - rsp.print "+msimg32" - rsp.print "+opengl32" - rsp.print "+shlwapi" - rsp.print "+tango-user-dmd.lib" - rsp.print "+zlib.lib" - rsp.print "+dwt-base.lib" - rsp.print "+org.eclipse.swt.win32.win32.x86.lib" - rsp.print "+#{LIBDIR.to_path}\\" - rsp.puts + #rsp.puts "-L/NOMAP" + #rsp.print "-L" + #rsp.print "+advapi32" + #rsp.print "+comctl32" + #rsp.print "+comdlg32" + #rsp.print "+gdi32" + #rsp.print "+kernel32" + #rsp.print "+shell32" + #rsp.print "+ole32" + #rsp.print "+oleaut32" + #rsp.print "+olepro32" + #rsp.print "+oleacc" + #rsp.print "+user32" + #rsp.print "+usp10" + #rsp.print "+msimg32" + #rsp.print "+opengl32" + #rsp.print "+shlwapi" + #rsp.print "+tango-user-dmd.lib" + #rsp.print "+zlib.lib" + #rsp.print "+dwt-base.lib" + #rsp.print "+org.eclipse.swt.win32.win32.x86.lib" + #rsp.print "+#{LIBDIR.to_path}\\" + #rsp.puts + + rsp.puts "-L/NOM" + rsp.puts "-L+advapi32" + rsp.puts "-L+comctl32" + rsp.puts "-L+comdlg32" + rsp.puts "-L+gdi32" + rsp.puts "-L+kernel32" + rsp.puts "-L+shell32" + rsp.puts "-L+ole32" + rsp.puts "-L+oleaut32" + rsp.puts "-L+olepro32" + rsp.puts "-L+oleacc" + rsp.puts "-L+user32" + rsp.puts "-L+usp10" + rsp.puts "-L+msimg32" + rsp.puts "-L+opengl32" + rsp.puts "-L+shlwapi" + rsp.puts "-L+tango-user-dmd.lib" + rsp.puts "-L+zlib.lib" + rsp.puts "-L+dwt-base.lib" + rsp.puts "-L+org.eclipse.swt.win32.win32.x86.lib" + rsp.puts "-L+#{LIBDIR.to_path}\\" rsp.puts "-op" rsp.puts "-od#{OBJDIR.to_path}"