dlangide icon indicating copy to clipboard operation
dlangide copied to clipboard

Use the "dub" package as a library

Open s-ludwig opened this issue 6 years ago • 2 comments

DUB is usable as a library to provide functionality for loading packages (dub.package_/dub.recipe.packagerecipe), resolving dependencies (dub.project/dub.dub), building (dub.generators.build), listing installed packages (dub.packagemanager) etc. The reason for opening this ticket is that I wasn't able to open my (SDLang based) projects and, considering how many issues are open on the DUB issue tracker, it sounds like duplicating the logic is a hefty maintenance burden down the road.

s-ludwig avatar Aug 01 '17 07:08 s-ludwig

BTW, SDL seems to be supported in current DlangIDE version.

buggins avatar Aug 09 '17 12:08 buggins

First step could be invoking DUB for build as a library code in separate thread instead of external executable with piped i/o - w/o using it to read project details so far.

buggins avatar Aug 09 '17 12:08 buggins