Re: dwt-linux with ldc successfully built

2009-09-17 Thread Gian Perrone

Frank Benoit schrieb:

Thats good news. How long was the compile time? How big the executable?


real 9m16.925s
user 67m34.623s
sys 4m28.682s

That was on a dual Xeon quad core platform (= 8 cores) 2.5GHz via SSH, 
because on my laptop it was way to slow to repeat changing one code line 
and compiling again.


I remember compiling DWT 3.4-1 on my dual-core laptop with an old dmd 
version in 6 seconds.


libDO-dwt.a is just 279M (remember, w/o browser and internals.mozilla) 
and simple just 11M...


Re: dwt-linux with ldc successfully built

2009-09-17 Thread Frank Benoit
Thats good news. How long was the compile time? How big the executable?


dwt-linux with ldc successfully built

2009-09-17 Thread Gian Perrone
I just wanted you to know that i built dwt-linux (from the repository) 
with ldc, just a few small changes were made:


hg diff -U0

diff -r 5f6d9bb33a53 dsss.conf
--- a/dsss.conf Sat Apr 04 21:38:37 2009 +0200
+++ b/dsss.conf Thu Sep 17 16:19:06 2009 +0200
@@ -3,1 +3,1 @@
-buildflags+=-Jres
+buildflags+=-Jres -version=TANGOSVN
diff -r 5f6d9bb33a53 dwt/dwthelper/utils.d
--- a/dwt/dwthelper/utils.d Sat Apr 04 21:38:37 2009 +0200
+++ b/dwt/dwthelper/utils.d Thu Sep 17 16:19:06 2009 +0200
@@ -488,1 +488,1 @@
-//alias tango.text.convert.Utf.toString16 toString16;
+alias tango.text.convert.Utf.toString16 toString16;
diff -r 5f6d9bb33a53 dwt/internal/cairo/Cairo.d
--- a/dwt/internal/cairo/Cairo.dSat Apr 04 21:38:37 2009 +0200
+++ b/dwt/internal/cairo/Cairo.dThu Sep 17 16:19:06 2009 +0200
@@ -79,1 +79,1 @@
-mixin("public static R " ~ NameOfFunc!(cFunc) ~ "( P p ){
+mixin("public static extern(C) R " ~ NameOfFunc!(cFunc) ~ "( P p ){
diff -r 5f6d9bb33a53 dwt/internal/gtk/OS.d
--- a/dwt/internal/gtk/OS.d Sat Apr 04 21:38:37 2009 +0200
+++ b/dwt/internal/gtk/OS.d Thu Sep 17 16:19:06 2009 +0200
@@ -637,1 +637,1 @@
-mixin("public static R " ~ NameOfFunc!(cFunc) ~ "( P p ){
+mixin("public static extern(C) R " ~ NameOfFunc!(cFunc) ~ "( P p ){

The browser widget had to be ignored (move away dwt/browser and 
dwt/internals/mozilla). The "simple" example was run successfully, i 
didn't test more.


dwt-addons doesn't work because of a bug with tuples in ldc.