Make dub part of the standard dmd distribution

Nick Sabalausky via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 5 12:56:58 PDT 2015


On 06/05/2015 12:45 PM, Nick Sabalausky wrote:
>
> https://github.com/D-Programming-Language/dub/pull/572
>
> Working example:
>
> ------------------------------
> $ cd /home/nick/proj/dub
>
> $ dub describe --data=main-source-file --data=options \
> --data=versions --data=import-paths
> '/home/nick/proj/dub/source/app.d' -debug -g -w -version=DubUseCurl
> -version=Have_dub '-I/home/nick/proj/dub/source/'
>
> $ dub describe --compiler=ldc --data=options --data=versions
> -d-debug -g -w -oq -od=.dub/obj -oq -od=.dub/obj -d-version=DubUseCurl
> -d-version=Have_dub
>
> $ dub describe --data-list --data=options --data=versions
> debugMode
> debugInfo
> warningsAsErrors
>
> DubUseCurl
> Have_dub
> ------------------------------
>

It also works even if your project doesn't have a dub.json :)

$ mkdir ~/my-proj
$ cd ~/my-proj
$ dub fetch vibe-d
$ dub describe vibe-d --data=versions --data=import-paths
-version=VibeLibeventDriver -version=Have_vibe_d -version=Have_libevent 
-version=Have_openssl 
'-I/home/nick/.dub/packages/vibe-d-0.7.23-beta.1/source/' 
'-I/home/nick/.dub/packages/libevent-2.0.1_2.0.16/' 
'-I/home/nick/.dub/packages/openssl-1.1.4_1.0.1g/'



More information about the Digitalmars-d mailing list