Dub, SDL, and Subpackages
    rikki cattermole via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Mon Jan 16 02:16:28 PST 2017
    
    
  
On 16/01/2017 11:14 PM, Russel Winder via Digitalmars-d-learn wrote:
> The Dub manual says that:
>
>
> name "mylib"
> targetType "none"
> dependency "mylib:component1" version="*"
> subPackage {
> 	name "component1"
> 	targetType "library"
> 	sourcePaths "component1/source"
> 	importPaths "component1/source"
> }
>
>
> is reasonable. However whenever I try something of this sort I get:
>
>
> Main package must have a binary target type, not none. Cannot build.
Change targetType to "library" and it should work.
It doesn't auto infer that it should be library since you have overriden 
that ability of it.
    
    
More information about the Digitalmars-d-learn
mailing list