Commit 8f2cc57c authored by Daniel Veillard's avatar Daniel Veillard
Browse files

Contributed Win2000 Makefiles:

- win32/README.MSDev win32/libxml2/libxml2_a.dsp
  win32/libxml2/libxml2_so.dsp: new makefiles and update
  provided by Igor Zlatkovic <igor@stud.fh-frankfurt.de>
Daniel
parent f831bfb9
Wed Jan 17 09:15:16 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* win32/README.MSDev win32/libxml2/libxml2_a.dsp
win32/libxml2/libxml2_so.dsp: new makefiles and update
provided by Igor Zlatkovic <igor@stud.fh-frankfurt.de>
Tue Jan 16 18:24:46 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* tree.c : xmlSaveFile, xmlSaveFileEnc, applied patch from
......
If you're creating libxml2 with the "mingw" compiler, just copy the
Makefile.mingw to the root directory as "Makefile", edit the PREFIX
value, and run "make".
If you're using MSVC, here are some instructions for how you can
proceed:
The configuration stuff (i.e. what should be enabled/disabled) is in
xmlversion.h I only tested it compiled fine with the current settings
(that is nearly everything disabled, I didn't need many features)
----------------------------
How did I get everything in place so the MSDev project works from the
original archive?
from the cygwin prompt (http://sources.redhat.com/cygwin) :
$ ./configure --disable-corba --without-ftp --without-http --without-html --wit
hout-xpath --without-iconv --without-debug
built the project file for the static library
----------------------------
diff after doing the changes and cleaning up the generated stuff:
[Note: this is out of date]
diff libxml2-2.2.4/xmlversion.h libxml2-2.2.4-reference/xmlversion.h
38c38
< #if 0
---
> #if 1
47c47
< #if 0
---
> #if 1
56c56
< #if 0
---
> #if 1
74c74
< #if 0
---
> #if 1
83c83
< #if 0
---
> #if 1
92c92
< #if 0
---
> #if 1
-----------------------------------------------------------------------
[January the 16th, 2001, igor@stud.fh-frankfurt.de]
The following applies only if you use Microsoft Visual C/C++ compiler,
in combination with Visual C++ IDE. Risk a glance further below for
information on using GNU C compilers, such as Mingw32.
There are two new project files in win32/libxml2:
libxml2_a.dsp: Use this one to build an object archive, a thing known
as a static library in the wonderful world of Windows.
libxml2_so.dsp: Use this one to build a shared object, or a DLL if you
prefer calling it using the dialect mentioned above.
There are few things to note about these project files and their
differences to the originally supplied project file (libxml2.dsp):
1. C-Runtime is not LIBC anymore. LIBC is fairly old and should be
considered obsolete today. Microsoft had considered it apropriate to
produce a better C-Runtime library, and indeed, their new one is
called MSVCRT. All decent Win32 systems have this newer library, save
for the oldest incarnations of Win95, which can be ignored safely.
Following that, I changed the dependencies and now both project files
mentioned above use MSVCRT.
2. Both project files cause the resulting binary to depend on a shared
version of MSVCRT. Yes, that is what I am saying, the C-Runtime is
linked dynamically, not statically. This enables the programmer to do
likewise with his libxml2-based software, an action I like to think
everyone would perform without hesitation.
3. There was a small flaw in the previous project file. The source file
xpointer.c was not included in the project file and that caused a
linkage problem with libxml2-based program, but not with libxml2
itself, if XPointer feature was enabled. This is now fixed.
-----------------------------------------------------------------------
If you're creating libxml2 with the "mingw" compiler, just copy the
Makefile.mingw to the root directory as "Makefile", edit the PREFIX
value, and run "make".
If you're using MSVC, here are some instructions for how you can
proceed:
The configuration stuff (i.e. what should be enabled/disabled) is in
xmlversion.h I only tested it compiled fine with the current settings
(that is nearly everything disabled, I didn't need many features)
----------------------------
How did I get everything in place so the MSDev project works from the
original archive?
from the cygwin prompt (http://sources.redhat.com/cygwin) :
$ ./configure --disable-corba --without-ftp --without-http --without-html --wit
hout-xpath --without-iconv --without-debug
built the project file for the static library
----------------------------
diff after doing the changes and cleaning up the generated stuff:
[Note: this is out of date]
diff libxml2-2.2.4/xmlversion.h libxml2-2.2.4-reference/xmlversion.h
38c38
< #if 0
---
> #if 1
47c47
< #if 0
---
> #if 1
56c56
< #if 0
---
> #if 1
74c74
< #if 0
---
> #if 1
83c83
< #if 0
---
> #if 1
92c92
< #if 0
---
> #if 1
# Microsoft Developer Studio Project File - Name="libxml2_a" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=libxml2_a - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "libxml2_a.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "libxml2_a.mak" CFG="libxml2_a - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "libxml2_a - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "libxml2_a - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "libxml2_a - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "libxml2_a___Win32_Release"
# PROP BASE Intermediate_Dir "libxml2_a___Win32_Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "release_a"
# PROP Intermediate_Dir "release_a"
# PROP Target_Dir ""
F90=df.exe
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\include" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /D "STATIC" /FD /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"release_a\libxml2.lib"
!ELSEIF "$(CFG)" == "libxml2_a - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "libxml2_a___Win32_Debug"
# PROP BASE Intermediate_Dir "libxml2_a___Win32_Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "debug_a"
# PROP Intermediate_Dir "debug_a"
# PROP Target_Dir ""
F90=df.exe
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /D "STATIC" /FD /GZ /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"debug_a\libxml2.lib"
!ENDIF
# Begin Target
# Name "libxml2_a - Win32 Release"
# Name "libxml2_a - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=..\..\debugXML.c
# End Source File
# Begin Source File
SOURCE=..\..\encoding.c
# End Source File
# Begin Source File
SOURCE=..\..\entities.c
# End Source File
# Begin Source File
SOURCE=..\..\error.c
# End Source File
# Begin Source File
SOURCE=..\..\hash.c
# End Source File
# Begin Source File
SOURCE=..\..\HTMLparser.c
# End Source File
# Begin Source File
SOURCE=..\..\HTMLtree.c
# End Source File
# Begin Source File
SOURCE=..\..\nanoftp.c
# End Source File
# Begin Source File
SOURCE=..\..\nanohttp.c
# End Source File
# Begin Source File
SOURCE=..\..\parser.c
# End Source File
# Begin Source File
SOURCE=..\..\parserInternals.c
# End Source File
# Begin Source File
SOURCE=..\..\SAX.c
# End Source File
# Begin Source File
SOURCE=..\..\tree.c
# End Source File
# Begin Source File
SOURCE=..\..\uri.c
# End Source File
# Begin Source File
SOURCE=..\..\valid.c
# End Source File
# Begin Source File
SOURCE=..\..\xlink.c
# End Source File
# Begin Source File
SOURCE=..\..\xmlIO.c
# End Source File
# Begin Source File
SOURCE=..\..\xmlmemory.c
# End Source File
# Begin Source File
SOURCE=..\..\xpath.c
# End Source File
# Begin Source File
SOURCE=..\..\xpointer.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=..\..\include\libxml\xmlversion.h
# End Source File
# End Group
# End Target
# End Project
# Microsoft Developer Studio Project File - Name="libxml2_so" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
CFG=libxml2_so - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "libxml2_so.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "libxml2_so.mak" CFG="libxml2_so - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "libxml2_so - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "libxml2_so - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "libxml2_so - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "libxml2_so___Win32_Release"
# PROP BASE Intermediate_Dir "libxml2_so___Win32_Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "release_so"
# PROP Intermediate_Dir "release_so"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBXML2_SO_EXPORTS" /YX /FD /c
# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /FD /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 /out:"release_so/libxml2.dll"
!ELSEIF "$(CFG)" == "libxml2_so - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "libxml2_so___Win32_Debug"
# PROP BASE Intermediate_Dir "libxml2_so___Win32_Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "debug_so"
# PROP Intermediate_Dir "debug_so"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LIBXML2_SO_EXPORTS" /YX /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /FD /GZ /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
# ADD LINK32 wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /out:"debug_so/libxml2.dll" /pdbtype:sept
!ENDIF
# Begin Target
# Name "libxml2_so - Win32 Release"
# Name "libxml2_so - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=..\..\debugXML.c
# End Source File
# Begin Source File
SOURCE=..\..\encoding.c
# End Source File
# Begin Source File
SOURCE=..\..\entities.c
# End Source File
# Begin Source File
SOURCE=..\..\error.c
# End Source File
# Begin Source File
SOURCE=..\..\hash.c
# End Source File
# Begin Source File
SOURCE=..\..\HTMLparser.c
# End Source File
# Begin Source File
SOURCE=..\..\HTMLtree.c
# End Source File
# Begin Source File
SOURCE=..\..\nanoftp.c
# End Source File
# Begin Source File
SOURCE=..\..\nanohttp.c
# End Source File
# Begin Source File
SOURCE=..\..\parser.c
# End Source File
# Begin Source File
SOURCE=..\..\parserInternals.c
# End Source File
# Begin Source File
SOURCE=..\..\SAX.c
# End Source File
# Begin Source File
SOURCE=..\..\tree.c
# End Source File
# Begin Source File
SOURCE=..\..\uri.c
# End Source File
# Begin Source File
SOURCE=..\..\valid.c
# End Source File
# Begin Source File
SOURCE=..\..\xlink.c
# End Source File
# Begin Source File
SOURCE=..\..\xmlIO.c
# End Source File
# Begin Source File
SOURCE=..\..\xmlmemory.c
# End Source File
# Begin Source File
SOURCE=..\..\xpath.c
# End Source File
# Begin Source File
SOURCE=..\..\xpointer.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=..\..\include\libxml\xmlversion.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment