Skip to content

Commit

Permalink
Build libxml2 and libxslt against zlib
Browse files Browse the repository at this point in the history
This enables the compression support which the lxml unit-tests try to
use.
  • Loading branch information
TBBle committed Feb 12, 2017
1 parent 58cac07 commit 43eff97
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,24 @@ $iconvLib = Join-Path (pwd) libiconv_static$x64Dir\Release
$iconvInc = Join-Path (pwd) ..\source\include
Set-Location ..\..

Set-Location .\zlib
Start-Process -NoNewWindow -Wait nmake "-f win32/Makefile.msc zlib.lib"
$zlibLib = (pwd)
$zlibInc = (pwd)
Set-Location ..

Set-Location .\libxml2\win32
cscript configure.js lib="$iconvLib" include="$iconvInc" vcmanifest=yes
cscript configure.js lib="$zlibLib;$iconvLib" include="$zlibInc;$iconvInc" vcmanifest=yes zlib=yes
Start-Process -NoNewWindow -Wait nmake libxmla
$xmlLib = Join-Path (pwd) bin.msvc
$xmlInc = Join-Path (pwd) ..\include
Set-Location ..\..

Set-Location .\libxslt\win32
cscript configure.js lib="$iconvLib;$xmlLib" include="$iconvInc;$xmlInc" vcmanifest=yes
cscript configure.js lib="$zlibLib;$iconvLib;$xmlLib" include="$zlibInc;$iconvInc;$xmlInc" vcmanifest=yes zlib=yes
Start-Process -NoNewWindow -Wait nmake "libxslta libexslta"
Set-Location ..\..

Set-Location .\zlib
Start-Process -NoNewWindow -Wait nmake "-f win32/Makefile.msc zlib.lib"
Set-Location ..

# Pushed by Import-VisualStudioVars
Pop-EnvironmentBlock

Expand Down

0 comments on commit 43eff97

Please sign in to comment.