Compiler librairies externes

From Lanjwiki

(Difference between revisions)
Line 21: Line 21:
     @rem prerequisites are: zlib and iconv must be already built
     @rem prerequisites are: zlib and iconv must be already built
-
     @echo Builing DEBUG
+
Compilation en Release
-
     set DEBUGON="debug=yes"
+
 
-
     set OUT_PATH=%SRC_PATH%\\dbg
+
     @echo Builing RELEASE
 +
     set DEBUGON="debug=no"
 +
     set OUT_PATH=%SRC_PATH%\\rel
     @echo Building %LIBXML_DIR%
     @echo Building %LIBXML_DIR%
Line 40: Line 42:
     cd %SRC_PATH%\\%OPENSSL_DIR%
     cd %SRC_PATH%\\%OPENSSL_DIR%
     perl Configure VC-WIN32
     perl Configure VC-WIN32
-
    # compilation of with debug symbols (for nt.mak and ntdll.mak)
+
     ms\\do_nasm.bat
-
    sed 's/nasm VC-WIN32/debug nasm VC-WIN32/' do_nasm.bat > do_nasm_debug.bat
+
-
     ms\\do_nasm_debug.bat
+
     nmake -f ms\
     nmake -f ms\
t.mak
t.mak
Line 66: Line 66:
     nmake -f Makefile.vc6
     nmake -f Makefile.vc6
-
     @echo Builing RELEASE
+
 
-
     set DEBUGON="debug=no"
+
Compilation en Debug
-
     set OUT_PATH=%SRC_PATH%\\rel
+
 
 +
     @echo Builing DEBUG
 +
     set DEBUGON="debug=yes"
 +
     set OUT_PATH=%SRC_PATH%\\dbg
 +
 
 +
Et 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/' do_nasm.bat > do_nasm_debug.bat
 +
    ms\\do_nasm_debug.bat
 +
    nmake ...

Revision as of 10:47, 8 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

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

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

Et 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/' do_nasm.bat > do_nasm_debug.bat
   ms\\do_nasm_debug.bat
   nmake ...
Personal tools