Finally got it:
{
name: test,
importPaths: [ext/dallegro5],
lflags: [-Lext/dallegro5],
libs: [
allegro,
allegro_acodec,
allegro_audio,
allegro_font,
allegro_ttf,
allegro_image,
allegro_color,
allegro_primitives
],
dependencies: {
dallegro5: ~master
I'd like to link to DAllegro5, which doesn't have an official dub
package yet.
My project structure looks like this:
--
ext/
dallegro5/
allegro5/ d bindings that need to be imported
libdallegro5.a -- library I need to link to
src/
app.d
On Wednesday, 10 September 2014 at 13:40:16 UTC, rcor wrote:
dub.json contains what I think should do the same as above:
{
name: test,
importPaths: [ext/dallegro5],
lflags: [-Lext/dallegro5]
}
Does adding:
libs: [dallegro5]
make a difference?
Cheers, Edwin
Dub command line supports something like Dub add-local. Then you
can use the package directly.
Kind regards
Andre
On Wednesday, 10 September 2014 at 15:40:11 UTC, Edwin van
Leeuwen wrote:
On Wednesday, 10 September 2014 at 13:40:16 UTC, rcor wrote:
dub.json contains what I think should do
On Wednesday, 10 September 2014 at 15:40:11 UTC, Edwin van
Leeuwen wrote:
On Wednesday, 10 September 2014 at 13:40:16 UTC, rcor wrote:
dub.json contains what I think should do the same as above:
{
name: test,
importPaths: [ext/dallegro5],
lflags: [-Lext/dallegro5]
}
Does adding:
libs:
On Wednesday, 10 September 2014 at 16:26:07 UTC, andre wrote:
Dub command line supports something like Dub add-local. Then
you can use the package directly.
Kind regards
Andre
DAllegro5 doesn't have an official dub package yet, but I threw
together one that could build the library and added
DAllegro5 doesn't have an official dub package yet, but I threw
together one that could build the library and added it with
`dub add-local`. It now shows up in
`dub list`, but adding:
dependencies: {
dallegro5: ~master
}
I think I recently saw something like:
dependencies: {