On Thu, 17 Oct 2013 08:08:21 GMT, Sönke Ludwig wrote:

On Thu, 17 Oct 2013 05:40:46 GMT, Sönke Ludwig wrote:

The following should work in theory, but there is currently no way to select a sub package for building. I'll try to get that added later today:

{
	"name": "mc4k",
	"targetType": "none",
	"dependencies": {
		"derelict": "~master"
	},
	"subPackages": [
		{
			"name": "a",
			"targetType": "executable",
			"excludedSourceFiles": ["source/mc4kb.d"]
		},
		{
			"name": "b",
			"targetType": "executable",
			"excludedSourceFiles": ["source/mc4ka.d"]
		}
	]
}

With DUB master you can now do dub build mc4k:a and dub build mc4k:b to build the individual sub packages.

Implemented by https://github.com/rejectedsoftware/dub/commit/e152d71c8133e79af068a5a7281d29bcd5484b1f.

Thanks. That was quick. I will take a look at this now. I am not very familiar with dub yet.