-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_libxml.bat
40 lines (32 loc) · 892 Bytes
/
build_libxml.bat
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
37
38
39
setlocal
call settings.bat
call fetch.bat http://xmlsoft.org/sources/libxml2-2.9.5.tar.gz libxml2-2.9.5
if "%compiler%" == "MINGW" (
SET FLAGS="compiler=mingw"
) else (
SET FLAGS="iconv=no"
)
cd libxml2-2.9.5
copy configure.ac configure.in
if "%compiler%" == "MINGW" (
SET "PATH=%MSYSDIR%;%PATH%"
if NOT EXIST Makefile (bash -c "./configure %CONFARGS% --without-python")
%ER%
bash -c "make install -j2"
%ER%
) else (
cd win32
if "%Variant%" == "Debug" (
rem "%SEDC%" -i makefile.Msvc -e "s@/Z7$@/Z7 /MDd@"
cscript.exe configure.js debug=yes %FLAGS% prefix=%PREFIX% cruntime=/MDd
) else (
cscript.exe configure.js %FLAGS% prefix=%PREFIX%
)
nmake install
rem nmake checktests
)
del %PREFIX%\bin\test*.exe
del %PREFIX%\bin\test*.pdb
mkdir %PREFIX%\include\libxml
xcopy /d /y /e %PREFIX%\include\libxml2\libxml %PREFIX%\include\libxml
cd ..\..