Skip to content

Commit e994bb6

Browse files
move extensions to modules
1 parent bc60df1 commit e994bb6

23 files changed

Lines changed: 71 additions & 70 deletions

File tree

dub.sdl

Lines changed: 4 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -14,79 +14,13 @@ dependency "nurt" version="*" optional=true default=false
1414
importPaths "src/"
1515
sourcePaths "src/"
1616

17-
// nulib:compression
17+
// Submodules
18+
subPackage "modules/threading"
19+
subPackage "modules/system"
20+
subPackage "modules/io"
1821
subPackage "modules/compression"
1922
subPackage "modules/compression/z"
2023

21-
// nulib:system
22-
subPackage {
23-
name "system"
24-
description "NuLib System submodule"
25-
26-
dependency "numem" version="*"
27-
dependency "nulib" version="*"
28-
29-
targetType "staticLibrary"
30-
sourcePaths
31-
sourceFiles "ext/nulib/system/**/*.d"
32-
importPaths "ext/"
33-
34-
configuration "library" {
35-
targetType "staticLibrary"
36-
}
37-
38-
configuration "unittest" {
39-
targetType "autodetect"
40-
dependency "nusilly" version="~>1.0"
41-
}
42-
}
43-
44-
// nulib:io
45-
subPackage {
46-
name "io"
47-
description "NuLib IO submodule"
48-
49-
dependency "numem" version="*"
50-
dependency "nulib" version="*"
51-
52-
targetType "staticLibrary"
53-
sourcePaths
54-
sourceFiles "ext/nulib/io/**/*.d"
55-
importPaths "ext/"
56-
57-
configuration "library" {
58-
targetType "staticLibrary"
59-
}
60-
61-
configuration "unittest" {
62-
targetType "autodetect"
63-
dependency "nusilly" version="~>1.0"
64-
}
65-
}
66-
67-
// nulib:threading
68-
subPackage {
69-
name "threading"
70-
description "Threading support for nulib"
71-
72-
dependency "numem" version="*"
73-
dependency "nulib" version="*"
74-
75-
targetType "staticLibrary"
76-
sourcePaths
77-
sourceFiles "ext/nulib/threading/*.d"
78-
importPaths "ext/"
79-
80-
configuration "library" {
81-
targetType "staticLibrary"
82-
}
83-
84-
configuration "unittest" {
85-
targetType "autodetect"
86-
dependency "nusilly" version="~>1.0"
87-
}
88-
}
89-
9024
// Build configurations, static should be preferred.
9125
// Do NOT change the order of these.
9226
configuration "static" {

modules/io/dub.sdl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name "io"
2+
description "NuLib IO"
3+
4+
toolchainRequirements ldc=">=1.41.0" frontend=">=2.111"
5+
6+
targetName "nu.io"
7+
targetPath "out/"
8+
9+
dependency "numem" version="*"
10+
dependency "nulib" path="../../"
11+
12+
configuration "library" {
13+
targetType "staticLibrary"
14+
}
15+
16+
configuration "unittest" {
17+
targetType "autodetect"
18+
19+
dependency "nusilly" version="~>1.0"
20+
workingDirectory "out/"
21+
}

modules/system/dub.sdl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name "system"
2+
description "NuLib System Integration"
3+
4+
toolchainRequirements ldc=">=1.41.0" frontend=">=2.111"
5+
6+
targetName "nu.system"
7+
targetPath "out/"
8+
9+
dependency "numem" version="*"
10+
dependency "nulib" path="../../"
11+
12+
dflags "-mv=nulib.system=src/"
13+
14+
configuration "library" {
15+
targetType "staticLibrary"
16+
}
17+
18+
configuration "unittest" {
19+
targetType "autodetect"
20+
21+
dependency "nusilly" version="~>1.0"
22+
workingDirectory "out/"
23+
}

modules/threading/dub.sdl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name "threading"
2+
description "NuLib Threading Primitives"
3+
4+
toolchainRequirements ldc=">=1.41.0" frontend=">=2.111"
5+
6+
targetName "nu.threading"
7+
targetPath "out/"
8+
9+
dependency "numem" version="*"
10+
dependency "nulib" path="../../"
11+
12+
dflags "-mv=nulib.threading=src/"
13+
14+
configuration "library" {
15+
targetType "staticLibrary"
16+
}
17+
18+
configuration "unittest" {
19+
targetType "autodetect"
20+
21+
dependency "nusilly" version="~>1.0"
22+
workingDirectory "out/"
23+
}

0 commit comments

Comments
 (0)