View previous topic :: View next topic |
Author |
Message |
sean
Joined: 24 Jun 2004 Posts: 609 Location: Bay Area, CA
|
Posted: Thu Jun 15, 2006 1:06 pm Post subject: -modules switch |
|
|
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 |
|
|
csauls
Joined: 27 Mar 2004 Posts: 278
|
|
Back to top |
|
|
sean
Joined: 24 Jun 2004 Posts: 609 Location: Bay Area, CA
|
Posted: Thu Jun 15, 2006 4:29 pm Post subject: |
|
|
Oops! Thanks. The switch isn't mentioned in the command-line docs so I assumed it didn't exist. |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Thu Jun 15, 2006 7:37 pm Post subject: |
|
|
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 |
|
|
|