-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdub.sdl
35 lines (29 loc) · 1.03 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
name "myxll"
description "Example of how to use excel-d"
license "BSD 3-clause"
dependency "excel-d" path=".." # normally this would be version="~>0.0.1" or similar
sourceFiles "myxll.d" "d_funcs.d"
targetType "dynamicLibrary"
dflags "-dip25" "-dip1000"
configuration "xll" {
preBuildCommands "dub run -c def --nodeps -q -- myxll.def"
sourceFiles "myxll.def"
# must have the appropriate 32/64 bit Excel SDK xlcall32.lib in the path of the app
# unfortunately they're both called xlcall32.lib
libs "xlcall32"
postBuildCommands "copy /y myxll.dll myxll.xll"
}
configuration "justxll" {
sourceFiles "myxll.def"
# must have the appropriate 32/64 bit Excel SDK xlcall32.lib in the path of the app
# unfortunately they're both called xlcall32.lib
libs "xlcall32"
postBuildCommands "copy /y myxll.dll myxll.xll"
}
// This builds a binary that writes out the necessary .def file
// to export the functions
configuration "def" {
targetType "executable"
targetName "write_def"
versions "exceldDef"
}