View previous topic :: View next topic |
Author |
Message |
div0
Joined: 10 Sep 2007 Posts: 19 Location: tedium city, uk
|
Posted: Thu Sep 13, 2007 4:38 pm Post subject: build files::ie .d files with version(build) pragma's |
|
|
Is there anyway to specify a directory of files to bud?
I'm trying to build DUI with bud at the moment and it would be very helpful to just be able to specify that the contents of a directory be compiled rather than individual files.
It would even better with a recurse option
At the moment it seems the quickest way is just to list all the files in the directory either on the command line or my bud file.
Building an .exe is easy as there is an obvious entry point, but for the DUI library it's just lots of directories with files in them.
There is probably some small subset of files that can act as the top level as it where, but identifying them would take longer than just explicitly listing all the files.
But going to the trouble of listing all the files seems to make bud redundant, I'd be better off just writing a makefile
Also could some body for the love off god add some error reporting to bud?
It's extremely unhelpful to have parse errors not being reported and not found files being silently ignored even with the -V option! |
|
Back to top |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Thu Sep 13, 2007 6:10 pm Post subject: Re: build files::ie .d files with version(build) pragma's |
|
|
div0 wrote: | Is there anyway to specify a directory of files to bud?
I'm trying to build DUI with bud at the moment and it would be very helpful to just be able to specify that the contents of a directory be compiled rather than individual files.
It would even better with a recurse option
At the moment it seems the quickest way is just to list all the files in the directory either on the command line or my bud file.
|
I'm actually working in that enhancement right now. If an entry on the command line is a directory, all the source files in that directory will be compiled. If the "-deep" switch is used, the scan will also include sub-directories. The scan depth can be controlled such as "-deep:1" to go only one level of sub-directories.
div0 wrote: |
Also could some body for the love off god add some error reporting to bud?
It's extremely unhelpful to have parse errors not being reported and not found files being silently ignored even with the -V option! |
What do you mean by "parse errors"?
I don't understand "not found files being silently ignored" because every file you specify on the command line must exist, otherwise Bud issues an error message. Can you be specific by giving me an example? _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
div0
Joined: 10 Sep 2007 Posts: 19 Location: tedium city, uk
|
Posted: Fri Sep 14, 2007 4:43 am Post subject: Re: build files::ie .d files with version(build) pragma's |
|
|
Derek Parnell wrote: | div0 wrote: | Is there anyway to specify a directory of files to bud?
I'm trying to build DUI with bud at the moment and it would be very helpful to just be able to specify that the contents of a directory be compiled rather than individual files.
It would even better with a recurse option
At the moment it seems the quickest way is just to list all the files in the directory either on the command line or my bud file.
|
I'm actually working in that enhancement right now. If an entry on the command line is a directory, all the source files in that directory will be compiled. If the "-deep" switch is used, the scan will also include sub-directories. The scan depth can be controlled such as "-deep:1" to go only one level of sub-directories.
div0 wrote: |
Also could some body for the love off god add some error reporting to bud?
It's extremely unhelpful to have parse errors not being reported and not found files being silently ignored even with the -V option! |
What do you mean by "parse errors"?
I don't understand "not found files being silently ignored" because every file you specify on the command line must exist, otherwise Bud issues an error message. Can you be specific by giving me an example? |
sry, wasn't very clear. I meant problems with pragmas in .d files for bud.
ie
version(build)
{ pragma (include, ./somefile) }
if the somefile doesn't exist it's just silently ignored.
had me scratching my head for a while.
if possible bud should issue a warning at least.
also it wasn't clear from the doc's whether the file name should be a string or not.
i'm looking forward to the next version of bud. I dream of living in a world without makefiles! |
|
Back to top |
|
|
|