digitalmars.D.learn - Linking external *.lib files
- Jolly James (5/5) Jun 16 2017 Let's assume, I have the following 2 dub packages:
- Jolly James (12/12) Jun 16 2017 Let's assume, I have the following 2 dub packages:
- Jolly James (3/15) Jun 16 2017 Side-note: the lib/ should not be moved for portability reasons
- Jolly James (7/28) Jun 16 2017 My bad solution:
- Jolly James (1/1) Jun 21 2017 *push*
- bachmeier (3/4) Jun 21 2017 Have you asked on the Dub forum?
- Mike Parker (5/17) Jun 21 2017 Replace the lflags directive with this in the pkgBase dub.json:
Let's assume, I have the following 2 dub packages: pkgBASE: source/ lib/ pkgAPP:
Jun 16 2017
Let's assume, I have the following 2 dub packages: pkgBASE: (depends on public DUB package) source/ lib/ pkgAPP: (depends on pkgBASE) source/ I have added pkgBASE via add-path. This wasn't a problem at all. Unfortunately, the public DUB package requires to be linked with the libs from pkgBASE/lib. What do I have to add to pkgBASE's dub.json?
Jun 16 2017
On Saturday, 17 June 2017 at 00:09:41 UTC, Jolly James wrote:Let's assume, I have the following 2 dub packages: pkgBASE: (depends on public DUB package) source/ lib/ pkgAPP: (depends on pkgBASE) source/ I have added pkgBASE via add-path. This wasn't a problem at all. Unfortunately, the public DUB package requires to be linked with the libs from pkgBASE/lib. What do I have to add to pkgBASE's dub.json?Side-note: the lib/ should not be moved for portability reasons if this is possible
Jun 16 2017
On Saturday, 17 June 2017 at 00:33:01 UTC, Jolly James wrote:On Saturday, 17 June 2017 at 00:09:41 UTC, Jolly James wrote:My bad solution: "lflags": [ "-Llib\\" ], but this requires the lib folder to be part of pkgAPP, not pkgBASE where I would like to have it. Does anyone have an idea?Let's assume, I have the following 2 dub packages: pkgBASE: (depends on public DUB package) source/ lib/ pkgAPP: (depends on pkgBASE) source/ I have added pkgBASE via add-path. This wasn't a problem at all. Unfortunately, the public DUB package requires to be linked with the libs from pkgBASE/lib. What do I have to add to pkgBASE's dub.json?Side-note: the lib/ should not be moved for portability reasons if this is possible
Jun 16 2017
On Wednesday, 21 June 2017 at 13:07:31 UTC, Jolly James wrote:*push*Have you asked on the Dub forum? http://forum.rejectedsoftware.com/groups/rejectedsoftware.dub/
Jun 21 2017
On Saturday, 17 June 2017 at 00:37:18 UTC, Jolly James wrote:Replace the lflags directive with this in the pkgBase dub.json: "libs": [ "$PACKAGE_DIR/libs/foo" ]My bad solution: "lflags": [ "-Llib\\" ], but this requires the lib folder to be part of pkgAPP, not pkgBASE where I would like to have it. Does anyone have an idea?Unfortunately, the public DUB package requires to be linked with the libs from pkgBASE/lib. What do I have to add to pkgBASE's dub.json?Side-note: the lib/ should not be moved for portability reasons if this is possible
Jun 21 2017