FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

-modules switch

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
sean



Joined: 24 Jun 2004
Posts: 609
Location: Bay Area, CA

PostPosted: Thu Jun 15, 2006 1:06 pm    Post subject: -modules switch Reply with quote

Build already has the -names options to output the names of files included in the build, but I was thinking it might be nice to have a way to output the module names instead. This could be useful in generating a dependency list, and it may be most useful to output the names of both .di and .d type modules rather than just those actually compiled. To that end, wildcard support might be nice as well.
Back to top
View user's profile Send private message
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Thu Jun 15, 2006 2:33 pm    Post subject: Reply with quote

http://build.dsource.org/switches.html#switch_modules
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
sean



Joined: 24 Jun 2004
Posts: 609
Location: Bay Area, CA

PostPosted: Thu Jun 15, 2006 4:29 pm    Post subject: Reply with quote

Oops! Thanks. The switch isn't mentioned in the command-line docs so I assumed it didn't exist. Embarassed
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Thu Jun 15, 2006 7:37 pm    Post subject: Reply with quote

You might also like to look at the new -uses switch. This will create a corss reference file that contains two lists. The first is a list of each module used by a module. The second is a list of each module that uses a module. Here is an example of the output ...
Code:

[USES]
bar.d <> y:\dmd\src\phobos\std\stdio.d
foo.d <> bar.d
tres.d <> foo.d
tres.d <> tres_bn.d
tres.d <> y:\dmd\src\phobos\std\stdio.d
[USEDBY]
bar.d <> foo.d
foo.d <> tres.d
tres_bn.d <> tres.d
y:\dmd\src\phobos\std\stdio.d <> bar.d
y:\dmd\src\phobos\std\stdio.d <> tres.d

_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group