www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics




digitalmars.D.dwt - dsss.conf setup for samples

↑ ↓ ← Bill Baxter <dnewsgroup billbaxter.com> writes:
I would like to recommend moving to a more granular approach to 
dsss.conf files for the samples.

In other words smaller dsss.conf files in subdirectories rather than 
having all samples in one huge file at the top.

Instead the huge file at the top should contain just subdir projects.

For example

---------
[dwtexamples]
type=subdir

[dwtsnippets]
type=subdir

[user]
type=subdir

version(DwtAddons) {
   [jface]
   type=subdir
}
---------

then in the jface directory you don't need the version(DwtAddons) 
anymore.  The fact that you're in that dir trying to build things means 
you want them.

-----jface/dsss.conf------
[ActionAndStatusbar.d]
[FileTreeViewer.d]
[ShowPrefs.d]
[ShowFieldPrefs.d]
[Librarian.d]

[*]
buildflags += -J../res -I../../dwt-addons -J../../dwt-addons/res
version(Windows){
     # if no console window is wanted/needed use 'windows' instead of 
'console'
     #buildflags+= -L/SUBSYSTEM:windows:5
     buildflags+= -L/SUBSYSTEM:console:5
     buildflags+= -L/rc:dwt
}
------------------------------


If you think you could go for this I'll send an hg bundle that makes the 
change.



--bb
Apr 14 2008
Frank Benoit <keinfarbton googlemail.com> writes:
Bill Baxter schrieb:
 I would like to recommend moving to a more granular approach to 
 dsss.conf files for the samples.
 
 In other words smaller dsss.conf files in subdirectories rather than 
 having all samples in one huge file at the top.
 
 Instead the huge file at the top should contain just subdir projects.
 
 For example
 
 ---------
 [dwtexamples]
 type=subdir
 
 [dwtsnippets]
 type=subdir
 
 [user]
 type=subdir
 
 version(DwtAddons) {
   [jface]
   type=subdir
 }
 ---------
 
 then in the jface directory you don't need the version(DwtAddons) 
 anymore.  The fact that you're in that dir trying to build things means 
 you want them.
 
 -----jface/dsss.conf------
 [ActionAndStatusbar.d]
 [FileTreeViewer.d]
 [ShowPrefs.d]
 [ShowFieldPrefs.d]
 [Librarian.d]
 
 [*]
 buildflags += -J../res -I../../dwt-addons -J../../dwt-addons/res
 version(Windows){
     # if no console window is wanted/needed use 'windows' instead of 
 'console'
     #buildflags+= -L/SUBSYSTEM:windows:5
     buildflags+= -L/SUBSYSTEM:console:5
     buildflags+= -L/rc:dwt
 }
 ------------------------------
 
 
 If you think you could go for this I'll send an hg bundle that makes the 
 change.
 
 
 
 --bb

Thats a good idea. But if that is changed, the module names need adjustment too.
Apr 14 2008
↑ ↓ Bill Baxter <dnewsgroup billbaxter.com> writes:
Frank Benoit wrote:
 Bill Baxter schrieb:
 I would like to recommend moving to a more granular approach to 
 dsss.conf files for the samples.

 In other words smaller dsss.conf files in subdirectories rather than 
 having all samples in one huge file at the top.

 Instead the huge file at the top should contain just subdir projects.

 For example

 ---------
 [dwtexamples]
 type=subdir

 [dwtsnippets]
 type=subdir

 [user]
 type=subdir

 version(DwtAddons) {
   [jface]
   type=subdir
 }
 ---------

 then in the jface directory you don't need the version(DwtAddons) 
 anymore.  The fact that you're in that dir trying to build things 
 means you want them.

 -----jface/dsss.conf------
 [ActionAndStatusbar.d]
 [FileTreeViewer.d]
 [ShowPrefs.d]
 [ShowFieldPrefs.d]
 [Librarian.d]

 [*]
 buildflags += -J../res -I../../dwt-addons -J../../dwt-addons/res
 version(Windows){
     # if no console window is wanted/needed use 'windows' instead of 
 'console'
     #buildflags+= -L/SUBSYSTEM:windows:5
     buildflags+= -L/SUBSYSTEM:console:5
     buildflags+= -L/rc:dwt
 }
 ------------------------------


 If you think you could go for this I'll send an hg bundle that makes 
 the change.



 --bb

Thats a good idea. But if that is changed, the module names need adjustment too.

I think it still works if you stick a -I.. (or -I..\.. etc) in the dsss.conf. --bb
Apr 14 2008
↑ ↓ → Frank Benoit <keinfarbton googlemail.com> writes:
Bill Baxter schrieb:
  > I think it still works if you stick a -I.. (or -I..\.. etc) in the
 dsss.conf.
 
 --bb

ok, i am fine with that.
Apr 15 2008
→ John Reimer <terminal.node gmail.com> writes:
On Mon, 14 Apr 2008 16:33:22 +0900, Bill Baxter wrote:

 I would like to recommend moving to a more granular approach to
 dsss.conf files for the samples.
 
 In other words smaller dsss.conf files in subdirectories rather than
 having all samples in one huge file at the top.
 
 Instead the huge file at the top should contain just subdir projects.
 
 For example
 
 ---------
 [dwtexamples]
 type=subdir
 
 [dwtsnippets]
 type=subdir
 
 [user]
 type=subdir
 
 version(DwtAddons) {
    [jface]
    type=subdir
 }
 ---------
 
 then in the jface directory you don't need the version(DwtAddons)
 anymore.  The fact that you're in that dir trying to build things means
 you want them.
 
 -----jface/dsss.conf------
 [ActionAndStatusbar.d]
 [FileTreeViewer.d]
 [ShowPrefs.d]
 [ShowFieldPrefs.d]
 [Librarian.d]
 
 [*]
 buildflags += -J../res -I../../dwt-addons -J../../dwt-addons/res
 version(Windows){
      # if no console window is wanted/needed use 'windows' instead of
 'console'
      #buildflags+= -L/SUBSYSTEM:windows:5
      buildflags+= -L/SUBSYSTEM:console:5
      buildflags+= -L/rc:dwt
 }
 ------------------------------
 
 
 If you think you could go for this I'll send an hg bundle that makes the
 change.
 
 
 
 --bb

My apologies, Bill. I remember you made this request early on, and it never got dealt with. If Frank is good with your changes, have at it. :) -JJR
Apr 14 2008