December 16, 2016 Re: Will this features be accepted for DUB? | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | On Friday, 16 December 2016 at 17:21:13 UTC, John Colvin wrote:
>
> Do you actually mean extern(C) or extern(D)? You said both at different points in this thread.
>
> Perhaps this will give you an idea to start from:
>
> name "mir-glas"
> sourcePaths "folderWithDiFiles"
> importPaths "folderWithDiFiles"
> targetType "sourceLibrary"
> preBuildCommands "dub build mir-glas-impl --config=static --build=target-native --compiler=ldmd2 --build-mode=singleFile --parallel"
> libs "mir-glas-impl"
> lflags "-L$MIR_GLAS_IMPL_PACKAGE_DIR"
>
> $MIR_GLAS_IMPL_PACKAGE_DIR is defined by dub, as described in the docs at https://code.dlang.org/package-format?lang=sdl (search for $<name>_PACKAGE_DIR)
It might make sense to provide a sample dub.json file with mir to make user's lives easier.
|
December 16, 2016 Re: Will this features be accepted for DUB? | ||||
---|---|---|---|---|
| ||||
Posted in reply to jmh530 | On Friday, 16 December 2016 at 19:14:39 UTC, jmh530 wrote:
> On Friday, 16 December 2016 at 17:21:13 UTC, John Colvin wrote:
>>
>> Do you actually mean extern(C) or extern(D)? You said both at different points in this thread.
>>
>> Perhaps this will give you an idea to start from:
>>
>> name "mir-glas"
>> sourcePaths "folderWithDiFiles"
>> importPaths "folderWithDiFiles"
>> targetType "sourceLibrary"
>> preBuildCommands "dub build mir-glas-impl --config=static --build=target-native --compiler=ldmd2 --build-mode=singleFile --parallel"
>> libs "mir-glas-impl"
>> lflags "-L$MIR_GLAS_IMPL_PACKAGE_DIR"
>>
>> $MIR_GLAS_IMPL_PACKAGE_DIR is defined by dub, as described in the docs at https://code.dlang.org/package-format?lang=sdl (search for $<name>_PACKAGE_DIR)
>
> It might make sense to provide a sample dub.json file with mir to make user's lives easier.
That stuff would be in mir-glas's dub.{json,sdl}, end users would just depend on mir-glas like any other package and wouldn't have to worry about any of this.
|
December 16, 2016 Re: Will this features be accepted for DUB? | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Colvin | On Friday, 16 December 2016 at 21:35:23 UTC, John Colvin wrote: > On Friday, 16 December 2016 at 19:14:39 UTC, jmh530 wrote: >> On Friday, 16 December 2016 at 17:21:13 UTC, John Colvin wrote: >>> [...] >> >> It might make sense to provide a sample dub.json file with mir to make user's lives easier. > > That stuff would be in mir-glas's dub.{json,sdl}, end users would just depend on mir-glas like any other package and wouldn't have to worry about any of this. Done, http://forum.dlang.org/post/nbsoerzljyxznxetgtji@forum.dlang.org Thank you! |
Copyright © 1999-2021 by the D Language Foundation