-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdub.json
36 lines (35 loc) · 1.21 KB
/
dub.json
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
{
"name": "dmagick",
"description": "An ImageMagick binding for the D Programming Language.",
"authors": ["Mike Wey"],
"license": "Zlib",
"targetType": "library",
"sourcePaths": ["dmagick"],
"importPaths": ["."],
"configurations": [
{
"name": "windows",
"platforms": ["windows"],
"sourceFiles-x86": ["MagickCore.lib"],
"preGenerateCommands": [
"powershell -Command \"get-content $PACKAGE_DIR/dmagick/c/magickVersion.d.in | %{$$_ -replace '@MagickLibVersion@','700'} | %{$$_ -replace '@MagickLibVersionText@','7.0.0'} | %{$$_ -replace '@QuantumDepth@','16'} | %{$$_ -replace '@HDRI@','false'} | Set-Content $PACKAGE_DIR/dmagick/c/magickVersion.d\""
],
"preGenerateCommands-x86": [
"@echo @for %%i in (%1) do @if NOT \"%%~$$PATH:i\"==\"\" @copy /Y \"%%~$$PATH:i\" \"$PACKAGE_DIR\" > copydll.bat",
"copydll CORE_RL_magick_.dll",
"cd $PACKAGE_DIR",
"implib /s MagickCore.lib CORE_RL_magick_.dll",
"@del copydll.bat",
"del $PACKAGE_DIR\\CORE_RL_magick_.dll"
]
},
{
"name": "other",
"libs": ["MagickCore"],
"preGenerateCommands": [
"chmod +x $PACKAGE_DIR/build-aux/magickVersion.sh",
"PACKAGE_DIR=$PACKAGE_DIR $PACKAGE_DIR/build-aux/magickVersion.sh"
]
}
]
}