On Thu, 28 Mar 2013 19:01:35 GMT, 11001100 wrote:

The quick turnaround that I had gotten so accustomed to is nearly gone..

So what's the easiest way to use vibe.d as a library?

Do you know what takes so long to compile? The sad thing is that splitting up things into libraries often doesn't really help, because templates and CTFE compilation mostly happens outside of the library anyway.

I would have expected rdmd to work, but the result is a 1 kB vibe.d.lib file for me on Windows: rdmd --build-only -c -lib -version=VibeLibeventDriver -Isource source\vibe\vibe.d

DUB is supposed to be able to compile it as a library, but that is currently untested and will probably not work: dub build --config=library

So the remaining possibility is to manually make a list of all files and pass them to dmd to build a static library:

cd ../source && find -name *.d > ../files.txt && cd ..
dmd -ofvibe.a -lib -Isource -version=VibeLibeventDriver @files.txt