On Mon, 23 Feb 2015 15:33:58 GMT, Sönke Ludwig wrote:

Alternatively, if you want to keep the main dub.json small and clean, you could put a separate dub.json into the "ex1/" and "ex2/" folders and build those with cd ex1 && dub build or dub build --root=ex1. The dependencies field would then have to look like this: "dependencies": {"qcore": {"path": ".."}}

I understand, but I want to build library and examples with one "dub build". Post build script works great, because you can select what examples you want to build with library. Unfortunately, it doesn't work properly.