View mode: basic / threaded / horizontal-split · Log in · Help
March 11, 2008
Re: "D" annoyances
Ty Tower Wrote:

> Take them as things to be fixed or deny their existence 
> 
> Either way I will post here the stupid things I find as I go through bits and pieces .
> The best critic is the most schooled in the subject
> 
This is extracted from the DSSS notes 
........................................................................................
== DEFAULT SETTINGS ==

It is possible to create default settings with a special "*" section. This is
most useful for settings such as 'buildflags':

[*]
buildflags=-O

Note that any settings in a named section will override those in "*" sections.
For example, in this situation:

[*]
buildflags=-O

[mydlib]
buildflags+=-release

mydlib's buildflags are only "-release".

........................................................................................

This is the dsss.conf file in dwt-samples-200a229be5ca

........................................................................................
[*]
debugflags+=-g -gc -debug...........so this is an overall default

#used for dwtsnippets/text/Snippet258
#dwtsnippets/expandbar/Snippet223
buildflags+=-Jdwtsnippets/images.......could not find these

version(Windows){
#buildflags+= -L/SUBSYSTEM:windows:5
   buildflags+= -L/SUBSYSTEM:console:5.......this is overall
}

# It seems this is no longer needed
# The linker error work around
# This is only needed if Tango was
# installed with DSSS
#version(linux){
#    buildflags+= -L-lDD-tango-util.....I could not find a library with this name
#}

[dwtexamples/simple.d]
[dwtexamples/clipboard/ClipboardExample.d]
[dwtexamples/helloworld/HelloWorld1.d]
[dwtexamples/helloworld/HelloWorld2.d]
[dwtexamples/helloworld/HelloWorld3.d]
[dwtexamples/helloworld/HelloWorld4.d]
[dwtexamples/helloworld/HelloWorld5.d]

[dwtsnippets/button/Snippet293.d]
[dwtsnippets/combo/Snippet26.d]
[dwtsnippets/composite/Snippet9.d]
[dwtsnippets/coolbar/Snippet20.d]
[dwtsnippets/ctabfolder/Snippet165.d]
[dwtsnippets/directorydialog/Snippet33.d]
[dwtsnippets/expandbar/Snippet223.d]
[dwtsnippets/menu/Snippet29.d]
[dwtsnippets/menu/Snippet97.d]
[dwtsnippets/sash/Snippet107.d]
[dwtsnippets/styledtext/Snippet163.d]
[dwtsnippets/styledtext/Snippet189.d]
[dwtsnippets/table/Snippet38.d]
[dwtsnippets/table/Snippet144.d]
[dwtsnippets/text/Snippet258.d]
[dwtsnippets/tooltips/Snippet41.d]
[dwtsnippets/tray/Snippet143.d]
[dwtsnippets/tree/Snippet8.d]
[dwtsnippets/tree/Snippet15.d]
[dwtsnippets/program/Snippet32.d]

[user/dragdrop/texttolabel.d]
[user/drawingboard/DrawingBoard.d]
[user/torhu_synctest.d]

version(Derelict){
[dwtsnippets/opengl/Snippet195.d]
}

[dwtexamples/addressbook/AddressBook.d]
buildflags+=-g -gc -debug......................this is the default anyway
version(Windows){
   buildflags+= -L/SUBSYSTEM:console:5........so is this
}
buildflags+=-Jdwtexamples/addressbook

[dwtexamples/controlexample/ControlExample.d]
buildflags+=-g -gc -debug.......................same
version(Windows){
   buildflags+= -L/SUBSYSTEM:console:5.........same
}
buildflags+=-Jdwtexamples/controlexample
buildflags+=-version=CONTROL_EXAMPLE_MAIN

[dwtexamples/controlexample/CustomControlExample.d]
buildflags+=-g -gc -debug........................same
version(Windows){
   buildflags+= -L/SUBSYSTEM:console:5..........same
}
buildflags+=-Jdwtexamples/controlexample
buildflags+=-version=CUSTOM_CONTROL_EXAMPLE_MAIN

[dwtexamples/texteditor/TextEditor.d]
buildflags+=-g -gc -debug........................same
version(Windows){
   buildflags+= -L/SUBSYSTEM:console:5..........same.
}
buildflags+=-Jdwtexamples/texteditor
.......................................................................................

So this is how I think it should go and I might well be wrong as this is my first look 
.......................................................................................


[*]
debugflags+=-g -gc -debug

#used for dwtsnippets/text/Snippet258
#dwtsnippets/expandbar/Snippet223
buildflags+=-Jdwtsnippets/images

version(Windows){
#buildflags+= -L/SUBSYSTEM:windows:5
   buildflags+= -L/SUBSYSTEM:console:5
}

# It seems this is no longer needed
# The linker error work around
# This is only needed if Tango was
# installed with DSSS
#version(linux){
#    buildflags+= -L-lDD-tango-util
#}

[dwtexamples/simple.d]
[dwtexamples/clipboard/ClipboardExample.d]
[dwtexamples/helloworld/HelloWorld1.d]
[dwtexamples/helloworld/HelloWorld2.d]
[dwtexamples/helloworld/HelloWorld3.d]
[dwtexamples/helloworld/HelloWorld4.d]
[dwtexamples/helloworld/HelloWorld5.d]

[dwtsnippets/button/Snippet293.d]
[dwtsnippets/combo/Snippet26.d]
[dwtsnippets/composite/Snippet9.d]
[dwtsnippets/coolbar/Snippet20.d]
[dwtsnippets/ctabfolder/Snippet165.d]
[dwtsnippets/directorydialog/Snippet33.d]
[dwtsnippets/expandbar/Snippet223.d]
[dwtsnippets/menu/Snippet29.d]
[dwtsnippets/menu/Snippet97.d]
[dwtsnippets/sash/Snippet107.d]
[dwtsnippets/styledtext/Snippet163.d]
[dwtsnippets/styledtext/Snippet189.d]
[dwtsnippets/table/Snippet38.d]
[dwtsnippets/table/Snippet144.d]
[dwtsnippets/text/Snippet258.d]
[dwtsnippets/tooltips/Snippet41.d]
[dwtsnippets/tray/Snippet143.d]
[dwtsnippets/tree/Snippet8.d]
[dwtsnippets/tree/Snippet15.d]
[dwtsnippets/program/Snippet32.d]

[user/dragdrop/texttolabel.d]
[user/drawingboard/DrawingBoard.d]
[user/torhu_synctest.d]

version(Derelict){
[dwtsnippets/opengl/Snippet195.d]
}

[dwtexamples/addressbook/AddressBook.d]
buildflags+=-Jdwtexamples/addressbook

[dwtexamples/controlexample/ControlExample.d]
buildflags+=-Jdwtexamples/controlexample
buildflags+=-version=CONTROL_EXAMPLE_MAIN

[dwtexamples/controlexample/CustomControlExample.d]
buildflags+=-Jdwtexamples/controlexample
buildflags+=-version=CUSTOM_CONTROL_EXAMPLE_MAIN

[dwtexamples/texteditor/TextEditor.d]
buildflags+=-Jdwtexamples/texteditor
.....................................................................................

I'm sure someone will tell me if I am mis-understanding something
March 12, 2008
Re: "D" annoyances
Ty Tower escribió:
> Ty Tower Wrote:
> 
> .....................................................................................
> 
> I'm sure someone will tell me if I am mis-understanding something

Maybe now is too late.

--
Tom;
Top | Discussion index | About this forum | D home