changeset 40:980f8a3baa27

Make samples build with dwt.res
author Frank Benoit <benoit@tionex.de>
date Sat, 15 Mar 2008 00:18:52 +0100
parents 8ee0dfe6f685
children a17899018eb6
files dsss.conf dwt.res dwtexamples/controlexample/ControlExample.d
diffstat 3 files changed, 5 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/dsss.conf	Thu Mar 13 23:53:38 2008 +0100
+++ b/dsss.conf	Sat Mar 15 00:18:52 2008 +0100
@@ -9,6 +9,7 @@
 version(Windows){
     #buildflags+= -L/SUBSYSTEM:windows:5
     buildflags+= -L/SUBSYSTEM:console:5
+    buildflags+= -L/rc:dwt
 }
 
 # It seems this is no longer needed
@@ -65,6 +66,7 @@
 buildflags+=-g -gc -debug
 version(Windows){
     buildflags+= -L/SUBSYSTEM:console:5
+    buildflags+= -L/rc:dwt
 }
 buildflags+=-Jdwtexamples/addressbook
 
@@ -72,6 +74,7 @@
 buildflags+=-g -gc -debug
 version(Windows){
     buildflags+= -L/SUBSYSTEM:console:5
+    buildflags+= -L/rc:dwt
 }
 buildflags+=-Jdwtexamples/controlexample
 buildflags+=-version=CONTROL_EXAMPLE_MAIN
@@ -80,6 +83,7 @@
 buildflags+=-g -gc -debug
 version(Windows){
     buildflags+= -L/SUBSYSTEM:console:5
+    buildflags+= -L/rc:dwt
 }
 buildflags+=-Jdwtexamples/controlexample
 buildflags+=-version=CUSTOM_CONTROL_EXAMPLE_MAIN
@@ -88,5 +92,6 @@
 buildflags+=-g -gc -debug
 version(Windows){
     buildflags+= -L/SUBSYSTEM:console:5
+    buildflags+= -L/rc:dwt
 }
 buildflags+=-Jdwtexamples/texteditor
Binary file dwt.res has changed
--- a/dwtexamples/controlexample/ControlExample.d	Thu Mar 13 23:53:38 2008 +0100
+++ b/dwtexamples/controlexample/ControlExample.d	Sat Mar 15 00:18:52 2008 +0100
@@ -146,7 +146,6 @@
      * Answers the set of example Tabs
      */
     Tab[] createTabs() {
-        version(Windows){
         return [ cast(Tab)
             new ButtonTab (this),
             new CanvasTab (this),
@@ -173,34 +172,6 @@
             new ToolTipTab (this),
             new TreeTab (this)
         ];
-        } else { // linux
-        return [ cast(Tab)
-            new ButtonTab (this),
-            new CanvasTab (this),
-            new ComboTab (this),
-            new CoolBarTab (this),
-            new DateTimeTab (this),
-            new DialogTab (this),
-            new ExpandBarTab (this),
-            new GroupTab (this),
-            new LabelTab (this),
-            new LinkTab (this),
-            new ListTab (this),
-            new MenuTab (this),
-            new ProgressBarTab (this),
-            new SashTab (this),
-            new ScaleTab (this),
-            shellTab = new ShellTab(this),
-            new SliderTab (this),
-            new SpinnerTab (this),
-            new TabFolderTab (this),
-            new TableTab (this),
-            new TextTab (this),
-            new ToolBarTab (this),
-            new ToolTipTab (this),
-            new TreeTab (this)
-        ];
-        }
     }
 
     /**