DUB copyFiles for subPackages

Dmitriy dmitriy.mihaylichenko at gmail.com
Tue Dec 17 13:03:17 UTC 2019


{
         ...
	"configurations": [
		{
                         ...
			"targetPath": "/build",
			"copyFiles": [
				"/template"
			],
			"dependencies": {
				"package": { "path": "./source/package" }
			},
			"subPackages": [
				{
					"name": "package",
					"sourcePaths": ["/source/package"],
					"importPaths": ["/source/package"],
	                                "targetPath": "/template",
	                                "targetName": "./package",
	                                "copyFiles": [
		                          "some_file"
	                                ]
				}
			]
		}
	]
}

Hello.
I have a dub project which contains another one subProject in 
source dir.
I need some files to be copied when subPackage builds. And I 
expect files to be copied to
"targetPath": "/template" of subProject, but it copies to 
"targetPath": "/build", which is root output project
Should copyFiles for subPackage use it's target path



More information about the Digitalmars-d-learn mailing list