dwt-linux with ldc successfully built
Gian Perrone
gperrone at gmx.de
Thu Sep 17 07:34:48 PDT 2009
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.d Sat Apr 04 21:38:37 2009 +0200
+++ b/dwt/internal/cairo/Cairo.d Thu 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.
More information about the Digitalmars-d-dwt
mailing list