-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdub.sdl
70 lines (57 loc) · 1.89 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
58
59
60
61
62
63
64
65
66
67
68
69
70
name "autowrap"
description "Wrap existing D code for use in other languages"
authors "Atila Neves" "Adam Wilson"
license "BSD"
targetType "none"
subPackage "common"
subPackage "reflection"
subPackage "python"
subPackage "pyd"
subPackage "pynih"
subPackage "excel"
subPackage "csharp"
buildType "unittest-cov" {
dflags "-cov=ctfe"
}
# The reason it's done like this is because `dub test` fails to even
# compile in the python subpackage directory because of its dependency
# on the reflection subpackage.
configuration "unittest" {
targetType "executable"
targetPath "bin"
targetName "ut"
mainSourceFile "tests/main.d"
excludedSourceFiles "pynih/source/autowrap/pynih/package.d"
sourcePaths "reflection/source" "tests/ut"
importPaths "tests/ut"
versions "XllDummyGetter"
versions "unitUnthreaded" # GIL
versions "TestingAutowrap"
dflags "-preview=dip1008"
libs "$PYD_LIBPYTHON"
lflags "-L$PYTHON_LIB_DIR"
dependency ":common" version="*"
dependency ":reflection" version="*"
dependency ":pynih" version="*"
dependency "unit-threaded" version="*"
}
configuration "unittest-no-pynih" {
targetType "executable"
targetPath "bin"
targetName "ut"
mainSourceFile "tests/main.d"
sourcePaths "python/source" "reflection/source" "tests/ut"
excludedSourceFiles "tests/ut/pynih/python/conv.d" "tests/ut/pynih/python/util.d" "tests/ut/pynih/python/object_.d"
importPaths "python/source" "tests/ut"
versions "XllDummyGetter"
versions "unitUnthreaded" # GIL
versions "TestingAutowrap"
libs "$PYD_LIBPYTHON" platform="posix"
lflags "-L$PYTHON_LIB_DIR" platform="posix"
libs "python38" platform="windows"
lflags "\\\"/LIBPATH:$PYTHON_LIB_DIR\\\"" platform="windows"
versions "NoPynih"
dependency ":common" version="*"
dependency ":reflection" version="*"
dependency "unit-threaded" version="*"
}