-
Notifications
You must be signed in to change notification settings - Fork 2
/
dub.sdl
76 lines (63 loc) · 2.13 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
71
72
73
74
75
76
name "odood"
description "Manage local development odoo installations with ease"
authors "Dmytro Katyukha"
copyright "Copyright © 2022-2023, Dmytro Katyukha"
license "MPL-2.0"
dependency ":exception" version="*"
dependency ":tipy" version="*"
dependency ":utils" version="*"
dependency ":lib" version="*"
dependency ":cli" version="*"
subPackage "./subpackages/exception"
subPackage "./subpackages/tipy"
subPackage "./subpackages/utils"
subPackage "./subpackages/lib"
subPackage "./subpackages/cli"
targetPath "build"
configuration "executable" {
targetType "executable"
mainSourceFile "source/odood/app.d"
}
configuration "library" {
targetType "library"
excludedSourceFiles "source/odood/app.d"
}
configuration "bash-autocomplete" {
targetType "executable"
mainSourceFile "source/odood/app.d"
targetName "odood-bash-autocomplete"
versions "odood_bash_autocomplete"
postBuildCommands "$DUB_TARGET_PATH/$DUB_TARGET_NAME > $DUB_TARGET_PATH/odood.bash";
}
/* Simple and fast unittests */
configuration "unittest" {
/* Build subpackages as sourceLibrary to run tests of subpackages */
subConfiguration ":lib" "sourceLibrary"
subConfiguration ":utils" "sourceLibrary"
subConfiguration ":exception" "sourceLibrary"
subConfiguration ":cli" "sourceLibrary"
targetType "executable"
targetName "odood-unittest"
mainSourceFile "source/odood/app.d"
dependency "unit-threaded:assertions" version="*"
}
/* Integration tests with silly */
configuration "unittest-silly" {
targetType "executable"
targetName "odood-unittest"
mainSourceFile "source/odood/app.d"
sourcePaths "tests"
dependency "unit-threaded:assertions" version="*"
dependency "silly" version="*"
}
/* Integration tests with unit-threaded */
configuration "unittest-integration-ut" {
targetType "executable"
targetName "odood-unittest-integration-ut"
/* Use configuration without dips to avoid link errors */
subConfiguration "unit-threaded" "nodips"
dependency "unit-threaded" version="*"
mainSourceFile "source/odood/app.d"
sourcePaths "tests"
versions "OdoodUnittestIntegrationUT"
}