diff options
Diffstat (limited to 'dub.json')
| -rw-r--r-- | dub.json | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -6,26 +6,27 @@ "targetType": "library", "sourcePaths": ["dmagick"], "importPaths": ["dmagick"], - "libs": ["MagickCore"], "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.in\"" + "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 \"%%~$PATH:i\" $PACKAGE_DIR/ > copydll.bat", + "@echo @for %%i in (%1) do @if NOT \"%%~$$PATH:i\"==\"\" @copy /Y \"%%~$$PATH:i\" \"$PACKAGE_DIR\" > copydll.bat", "copydll CORE_RL_magick_.dll", - "implib /s $PACKAGE_DIR/MagickCore.lib $PACKAGE_DIR/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" + "del $PACKAGE_DIR\\CORE_RL_magick_.dll" ] }, { "name": "other", + "libs": ["MagickCore"], "preGenerateCommands": [ "PACKAGE_DIR=$PACKAGE_DIR $PACKAGE_DIR/build-aux/magickVersion.sh" ] |
