forked from Laeeth/d-nanomsg
-
Notifications
You must be signed in to change notification settings - Fork 3
/
dub.sdl
57 lines (42 loc) · 1.47 KB
/
dub.sdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name "nanomsg-wrapper"
description "Nanomsg wrappers for the D Programming Language."
homepage "http://nanomsg.code.kaleidic.io"
authors "Laeeth Isharc" "Atila Neves"
license "Boost-1.0"
targetType "library"
systemDependencies "nanomsg: if you have a static build of nanomsg installed, \
you may need to link to some other libraries such as libanl (part of \
glibc). You may be able to find what is necessary by running \
`pkg-config nanomsg --libs --static`"
libs "nanomsg"
dependency "concepts" version="*"
configuration "library" {
}
configuration "libraryDips" {
dflags "-dip25" "-dip1000" "-dip1008"
}
configuration "unittest" {
targetType "executable"
targetPath "bin"
targetName "ut"
sourcePaths "tests"
mainSourceFile "tests/test_main.d"
dflags "-dip25" "-dip1000" "-dip1008"
# nanomsg has problems with threads
versions "unitUnthreaded"
dependency "unit-threaded" version="*"
}
configuration "asan" {
targetType "executable"
targetPath "bin"
targetName "asan"
sourcePaths "tests"
importPaths "tests" # otherwise dub test -c asan doesn't work for some reason
mainSourceFile "tests/test_main.d"
dflags "-dip25" "-dip1000" "-dip1008"
dflags "-fsanitize=address" platform="ldc"
# unit threaded light is necessary for the tests to actually run
# asan doesn't like D threads
versions "unitUnthreaded" "unitThreadedLight" "nanomsg_wrapper_asan"
dependency "unit-threaded" version="*"
}