|Posted by J C Calvarese|
in reply to Lynn Allan
Posted in reply to Lynn Allan
Lynn Allan wrote:
> My impression is that DMC can rebuild the wxWidget library with the
> right makefile.
Yes, I think this worked well for me:
make -f makefile.dmc
(per the instructions in the wxd readme.txt)
> Would it be feasible for DMC to be enhanced so it could input C++ code
> and output 'something' (dll, obj's, lib, ?) that could be used by DMD?
There are probably tools out there that try to do such things. I think the limiting factor is the "intelligence" of the tool. Can it guess how to treat a certain file? It could get some lucky guesses, but I suspect complicated make processes are the reason for so many complicated makefiles out there.
I've heard that the Build tool does similar things for D code, but I think certain settings generally need to included as verioned D code for it to work as desired (http://www.dsource.org/projects/build/). I would expect that C code could have similar problems if the particular settings aren't included in the C code (perhaps hidden in #define's).
(I need to try out Build for myself because I've read so many good things about it, but I just haven't had a chance to write much D code recently.)
> I have no idea of what would be involved is this, or if this has been
> discussed before, but this capability would seem to open up a lot of
Sure, it'd be a great thing. Maybe one of the tools on http://www.prowiki.org/wiki4d/wiki.cgi?ReferenceForTools already does some of this, such as A-A-P or Scons. Either one is supposed to be better than make (according to its fans).