I'm thinking about migrating my libraries/tools to dub. I have a couple
of questions.

  • Can I limit a package to a specific set of platforms?

  • The structure of DWT currently looks like this:

  • dwt
    | base (git submodule, linux and windows)
    |
    org.eclipse.swt.gtk.linux.x86 (git submodule, linux)
    | org.eclipse.swt.win32.win32.x86 (git submodule, windows)
    |
    org.eclipse.swt.snippets (submodule, optional)

Ideally I would like a package, "dwt", that automatically picks the
correct submodule/package for the given platform. Is that possible?

  • How do I best deal with external dependencies? Libraries that should
    be installed using the system package manager.
  • How are libraries compiled by default? It just compiles everything in
    the source directory?
  • How do I best deal with packages I don't feel yet are ready to be
    added to the registry but other packages depend on? Currently I use git
    submodules to handle this.

/Jacob Carlborg