Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dub should not build dependencies when target type is a static library #316

Closed
ghost opened this issue May 7, 2014 · 0 comments
Closed

Comments

@ghost
Copy link

ghost commented May 7, 2014

If you have a library set up as "targetType": "staticLibrary" and you have a bunch of other dependencies dub will by default run something like the following:

C:\dev\projects\opengl-tutorials\utility>dub --force -v 2> nul
glfw-drey: ["glfw-drey"]
glad-drey: ["glad-drey"]
glfw-drey: ["glfw-drey"]
glwtf-drey: ["glwtf-drey", "glfw-drey"]
gltut-utility: ["gltut-utility", "glfw-drey", "glad-drey", "glwtf-drey", "glfw-drey"]
Building glfw-drey configuration "glfw-drey", build type debug.
Running dmd...
DMD v2.066 DEBUG
Building glad-drey configuration "glad-drey", build type debug.
Running dmd...
DMD v2.066 DEBUG
Building glwtf-drey configuration "glwtf-drey", build type debug.
Running dmd...
DMD v2.066 DEBUG
Building gltut-utility configuration "library", build type debug.
Running dmd...
DMD v2.066 DEBUG
Target is a library. Skipping execution.

Note that before building the gltut-utility static library it will first build all the dependencies (other static libraries) first. This isn't necessary as building a static library does not require linking, it only requires the proper import paths to its dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants