Dub and compilation
Russel Winder via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Apr 11 04:13:30 PDT 2017
On Tue, 2017-04-11 at 06:45 +0000, Mike Parker via Digitalmars-d-learn
wrote:
>
[…]
> DUB downloads the source of dependencies from github and stores
> it all in the system cache. Each package has its own versioned
> folder in the cache and, when compiled, is given a .dub
> subdirectory in the package root. Beneath that is a 'build'
> directory, with more subdirectories containing the compiled
> binaries, each directory named according to the build
> configuration.
[…]
This is not what seems to happen with unit-threaded. for the directory
~/.dub/packages/unit-threaded-0.7.11/unit-threaded, the tree is:
.
├── appveyor.yml
├── dub.json
├── example
│ ├── example_fail.d
│ └── example_pass.d
├── gen
│ └── gen_ut_main.d
├── gen_ut_main
├── libunit-threaded.a
├── LICENSE
├── msbuild.proj
├── README.md
├── source
│ └── unit_threaded
│ ├── asserts.d
│ ├── attrs.d
│ ├── dub.d
│ ├── factory.d
│ ├── integration.d
│ ├── io.d
│ ├── meta.d
│ ├── mock.d
│ ├── options.d
│ ├── package.d
│ ├── property
│ │ └── package.d
│ ├── randomized
│ │ ├── benchmark.d
│ │ ├── gen.d
│ │ ├── package.d
│ │ └── random.d
│ ├── reflection.d
│ ├── runner.d
│ ├── runtime.d
│ ├── should.d
│ ├── testcase.d
│ ├── tests
│ │ ├── issue33.d
│ │ ├── mocks.d
│ │ ├── module_with_attrs.d
│ │ ├── module_with_setup.d
│ │ ├── module_with_tests.d
│ │ ├── parametrized.d
│ │ ├── structs_are_not_classes.d
│ │ └── tags.d
│ ├── testsuite.d
│ └── uda.d
├── tests
│ ├── fail
│ │ ├── composite.d
│ │ ├── delayed.d
│ │ ├── exception.d
│ │ ├── klass.d
│ │ ├── normal.d
│ │ └── priv.d
│ └── pass
│ ├── attributes.d
│ ├── delayed.d
│ ├── fixtures.d
│ ├── io.d
│ ├── issue51.d
│ ├── mock.d
│ ├── normal.d
│ ├── property.d
│ ├── register.d
│ └── types.d
└── TODO.txt
Note that the gen_ut_main executable and the libunit-threaded.a library
are at the top level and have to recompiled for each
configuration/platform change. There is no separation of the various
configurations and platforms.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170411/e45fccb0/attachment.sig>
More information about the Digitalmars-d-learn
mailing list