Do you have any suggestions for project directory structure?

Chris Williams yoreanon-chrisw at yahoo.co.jp
Wed Feb 5 13:59:35 PST 2014


On Wednesday, 5 February 2014 at 21:50:17 UTC, Orfeo wrote:
> Suppose I have a project "protocols" that uses DMock and a  
> library Foo.
> I would like to use a structure dub style..Which solution is 
> better:
>
> A.
>
> protocols
>  ├── bin
>  │   └── protocols.a
>  ├── dmocks
>  │   └── *.d
>  ├── foo
>  │   └── *.d
>  ├── src
>  │   └── protocols
>  │       └── *.d
>
> B.
>
> protocols
>  ├── bin
>  │   └── protocols.a
>  ├── src
>  │   ├── dmocks
>  │   │    └── *.d
>  │   ├── foo
>  │   │    └── *.d
>  │   └── protocols
>  │        └── *.d
>
>
> Or another solution?
> Thanks

I would probably advise against having the outside libraries 
inside your project at all. Have them parallel to protocols 
either add a /lib folder to protocols that can hold their 
binaries or pull from the outside (you'll need to point your 
includes outside your own project anyways).


More information about the Digitalmars-d-learn mailing list