Compiler librairies externes

From Lanjwiki

(Difference between revisions)
(ms\\do_nasm.bat)
 
(6 intermediate revisions not shown)
Line 9: Line 9:
-
set SRC_PATH=c:\\src\\ext_libs
+
    set SRC_PATH=c:\\src\\ext_libs
-
set ICONV_DIR=libiconv-1.9.1
+
    set ICONV_DIR=libiconv-1.9.1
-
set ZLIB_DIR=zlib121
+
    set ZLIB_DIR=zlib121
-
set LIBXML_DIR=libxml2-2.6.22
+
    set LIBXML_DIR=libxml2-2.6.22
-
set LIBXSLT_DIR=libxslt-1.1.15
+
    set LIBXSLT_DIR=libxslt-1.1.15
-
set XMLSEC_DIR=xmlsec1-1.2.9
+
    set XMLSEC_DIR=xmlsec1-1.2.9
-
set OPENSSL_DIR=openssl-0.9.8b
+
    set OPENSSL_DIR=openssl-0.9.8b
-
set CURL_DIR=curl-7.15.1
+
    set CURL_DIR=curl-7.15.1
-
@rem prerequisites are: zlib and iconv must be already built
+
    @rem prerequisites are: zlib and iconv must be already built and nasm installed
-
@echo Builing DEBUG
+
=== Compilation en Release ===
-
set DEBUGON="debug=yes"
+
-
set OUT_PATH=%SRC_PATH%\\dbg
+
-
@echo Building %LIBXML_DIR%
+
    @echo Builing RELEASE
-
cd %SRC_PATH%\\%LIBXML_DIR%\\win32
+
    set DEBUGON="debug=no"
-
cscript configure.js %DEBUGON% zlib=yes prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib
+
    set OUT_PATH=%SRC_PATH%\\rel
-
nmake -f Makefile.msvc
+
-
nmake -f Makefile.msvc install
+
-
@echo Building %LIBXSLT_DIR%
+
    @echo Building %LIBXML_DIR%
-
cd %SRC_PATH%\\%LIBXSLT_DIR%\\win32
+
    cd %SRC_PATH%\\%LIBXML_DIR%\\win32
-
cscript configure.js %DEBUGON% zlib=yes crypto=no prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib
+
    cscript configure.js %DEBUGON% zlib=yes prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib
-
nmake -f Makefile.msvc
+
    nmake -f Makefile.msvc
-
nmake -f Makefile.msvc install
+
    nmake -f Makefile.msvc install
-
@echo Building %OPENSSL_DIR%
+
    @echo Building %LIBXSLT_DIR%
-
cd %SRC_PATH%\\%OPENSSL_DIR%
+
    cd %SRC_PATH%\\%LIBXSLT_DIR%\\win32
-
perl Configure VC-WIN32
+
    cscript configure.js %DEBUGON% zlib=yes crypto=no prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib
-
# compile en debug pour nt.mak et ntdll.mak
+
    nmake -f Makefile.msvc
-
sed 's/nasm VC-WIN32/debug nasm VC-WIN32/' do_nasm.bat > do_nasm_debug.bat
+
    nmake -f Makefile.msvc install
-
ms\\do_nasm_debug.bat
+
 
-
nmake -f ms\
+
    @echo Building %OPENSSL_DIR%
 +
    cd %SRC_PATH%\\%OPENSSL_DIR%
 +
    perl Configure VC-WIN32
 +
    ms\\do_nasm.bat
 +
    nmake -f ms\
t.mak
t.mak
-
nmake -f ms\
+
    nmake -f ms\
tdll.mak
tdll.mak
-
@echo Building %XMLSEC_DIR%
+
    @echo Building %XMLSEC_DIR%
-
cd %SRC_PATH%\\%XMLSEC_DIR%\\win32
+
    cd %SRC_PATH%\\%XMLSEC_DIR%\\win32
-
cscript configure.js %DEBUGON% static=no prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib
+
    cscript configure.js %DEBUGON% static=no prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib
-
nmake -f Makefile.msvc
+
    nmake -f Makefile.msvc
-
nmake -f Makefile.msvc install
+
    nmake -f Makefile.msvc install
 +
 
 +
    @echo Building %CURL_DIR%
 +
    cd %SRC_PATH%\\%CURL_DIR%\\lib
 +
    set ZLIB_PATH=%SRC_PATH%\\%ZLIB_DIR%
 +
    set OPENSSL_PATH=%SRC_PATH%\\%OPENSSL_DIR%
 +
    @rem chemins sur 8 caracteres pour LIB et INCLUDE de "C:\\Program Files\\Microsoft SDK\\"
 +
    @rem ajuster les valeurs en faisant: dir /X "C:\\Program Files\\Microsoft *"
 +
    set INCLUDE=c:\\PROGRA~1\\MIFD68~1\\INCLUDE;%INCLUDE%
 +
    set LIB=c:PROGRA~1\\MIFD68~1\\LIB;%LIB%
 +
    set CFG=debug-dll-ssl-dll-zlib-dll
 +
    del /Q debug-dll-ssl-dll-zlib-dll\\*.*
 +
    nmake -f Makefile.vc6
 +
 
 +
 
 +
=== Compilation en Debug ===
 +
cf [[Compiler_librairies_externes#Compilation en Release|Compilation en Release]]
-
@echo Building %CURL_DIR%
+
    @echo Builing DEBUG
-
cd %SRC_PATH%\\%CURL_DIR%\\lib
+
    set DEBUGON="debug=yes"
-
set ZLIB_PATH=%SRC_PATH%\\%ZLIB_DIR%
+
    set OUT_PATH=%SRC_PATH%\\dbg
-
set OPENSSL_PATH=%SRC_PATH%\\%OPENSSL_DIR%
+
-
@rem chemins sur 8 caracteres pour LIB et INCLUDE de "C:\\Program Files\\Microsoft SDK\\"
+
-
@rem ajuster les valeurs en faisant: dir /X "C:\\Program Files\\Microsoft *"
+
-
set INCLUDE=c:\\PROGRA~1\\MIFD68~1\\INCLUDE;%INCLUDE%
+
-
set LIB=c:PROGRA~1\\MIFD68~1\\LIB;%LIB%
+
-
set CFG=debug-dll-ssl-dll-zlib-dll
+
-
del /Q debug-dll-ssl-dll-zlib-dll\\*.*
+
-
nmake -f Makefile.vc6
+
-
@echo Builing RELEASE
+
Pour OpenSSL:
-
set DEBUGON="debug=no"
+
    (...)
-
set OUT_PATH=%SRC_PATH%\\rel
+
    perl Configure VC-WIN32
 +
    # compilation of with debug symbols (for nt.mak and ntdll.mak)
 +
    sed 's/nasm VC-WIN32/debug nasm VC-WIN32/' ms\\do_nasm.bat > ms\\do_nasm_debug.bat
 +
    ms\\do_nasm_debug.bat
 +
    (...)

Current revision as of 13:47, 10 August 2006

Instructions pour compiler les outils externes suivants:

  • iconv
  • zlib
  • libxml2
  • libxslt
  • xmlsec
  • openssl
  • curl


   set SRC_PATH=c:\\src\\ext_libs
   set ICONV_DIR=libiconv-1.9.1
   set ZLIB_DIR=zlib121
   set LIBXML_DIR=libxml2-2.6.22
   set LIBXSLT_DIR=libxslt-1.1.15
   set XMLSEC_DIR=xmlsec1-1.2.9
   set OPENSSL_DIR=openssl-0.9.8b
   set CURL_DIR=curl-7.15.1
   @rem prerequisites are: zlib and iconv must be already built and nasm installed

Compilation en Release

   @echo Builing RELEASE
   set DEBUGON="debug=no"
   set OUT_PATH=%SRC_PATH%\\rel
   @echo Building %LIBXML_DIR%
   cd %SRC_PATH%\\%LIBXML_DIR%\\win32
   cscript configure.js %DEBUGON% zlib=yes prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib
   nmake -f Makefile.msvc
   nmake -f Makefile.msvc install
   @echo Building %LIBXSLT_DIR%
   cd %SRC_PATH%\\%LIBXSLT_DIR%\\win32
   cscript configure.js %DEBUGON% zlib=yes crypto=no prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib
   nmake -f Makefile.msvc
   nmake -f Makefile.msvc install
   @echo Building %OPENSSL_DIR%
   cd %SRC_PATH%\\%OPENSSL_DIR%
   perl Configure VC-WIN32
   ms\\do_nasm.bat
   nmake -f ms\

t.mak

   nmake -f ms\

tdll.mak

   @echo Building %XMLSEC_DIR%
   cd %SRC_PATH%\\%XMLSEC_DIR%\\win32
   cscript configure.js %DEBUGON% static=no prefix=%OUT_PATH% include=%OUT_PATH%\\include lib=%OUT_PATH%\\lib
   nmake -f Makefile.msvc
   nmake -f Makefile.msvc install
   @echo Building %CURL_DIR%
   cd %SRC_PATH%\\%CURL_DIR%\\lib
   set ZLIB_PATH=%SRC_PATH%\\%ZLIB_DIR%
   set OPENSSL_PATH=%SRC_PATH%\\%OPENSSL_DIR%
   @rem chemins sur 8 caracteres pour LIB et INCLUDE de "C:\\Program Files\\Microsoft SDK\\"
   @rem ajuster les valeurs en faisant: dir /X "C:\\Program Files\\Microsoft *"
   set INCLUDE=c:\\PROGRA~1\\MIFD68~1\\INCLUDE;%INCLUDE%
   set LIB=c:PROGRA~1\\MIFD68~1\\LIB;%LIB%
   set CFG=debug-dll-ssl-dll-zlib-dll
   del /Q debug-dll-ssl-dll-zlib-dll\\*.*
   nmake -f Makefile.vc6


Compilation en Debug

cf Compilation en Release

   @echo Builing DEBUG
   set DEBUGON="debug=yes"
   set OUT_PATH=%SRC_PATH%\\dbg

Pour OpenSSL:

   (...)
   perl Configure VC-WIN32
   # compilation of with debug symbols (for nt.mak and ntdll.mak)
   sed 's/nasm VC-WIN32/debug nasm VC-WIN32/' ms\\do_nasm.bat > ms\\do_nasm_debug.bat
   ms\\do_nasm_debug.bat
   (...)
Personal tools