mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
Applied the patch for BCB from Eric
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
Mon Dec 1 12:30:28 CET 2003 Igor Zlatkovic <igor@zlatkovic.com>
|
||||||
|
|
||||||
|
* win32/Makefile.bcb win32/configure.js: Applied the BCB patch
|
||||||
|
from Eric
|
||||||
|
|
||||||
Sun Nov 30 21:33:37 MST 2003 John Fleck <jfleck@inkstain.net>
|
Sun Nov 30 21:33:37 MST 2003 John Fleck <jfleck@inkstain.net>
|
||||||
|
|
||||||
* include/libxml/xinclude.h
|
* include/libxml/xinclude.h
|
||||||
|
@@ -15,10 +15,6 @@
|
|||||||
# March 2002, Igor Zlatkovic <igor@zlatkovic.com>
|
# March 2002, Igor Zlatkovic <igor@zlatkovic.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
# Extra setting to control whether to use dynamic or static Borland runtime.
|
|
||||||
# Set to "1" to use static RTL, anything else to use dynamic RTL
|
|
||||||
STATIC_RTL = 0
|
|
||||||
|
|
||||||
# There should never be a need to modify anything below this line.
|
# There should never be a need to modify anything below this line.
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
|
|
||||||
@@ -59,8 +55,8 @@ CFLAGS = $(CFLAGS) -I$(XML_SRCDIR) -I$(XML_SRCDIR)\include -I$(INCPREFIX) -I$(IN
|
|||||||
!if "$(WITH_THREADS)" != "no"
|
!if "$(WITH_THREADS)" != "no"
|
||||||
CFLAGS = $(CFLAGS) -D_REENTRANT -tWM
|
CFLAGS = $(CFLAGS) -D_REENTRANT -tWM
|
||||||
!endif
|
!endif
|
||||||
!if "$(STATIC_RTL)" != "1"
|
!if "$(DYNRUNTIME)" == "1"
|
||||||
CFLAGS = $(CFLAGS) -D_RTLDLL
|
CFLAGS = $(CFLAGS) -tWR
|
||||||
!endif
|
!endif
|
||||||
!if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls"
|
!if "$(WITH_THREADS)" == "yes" || "$(WITH_THREADS)" == "ctls"
|
||||||
CFLAGS = $(CFLAGS) -DHAVE_WIN32_THREADS -DHAVE_COMPILER_TLS
|
CFLAGS = $(CFLAGS) -DHAVE_WIN32_THREADS -DHAVE_COMPILER_TLS
|
||||||
@@ -78,14 +74,14 @@ LD = ilink32.exe
|
|||||||
LDFLAGS = -q -U$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION)
|
LDFLAGS = -q -U$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION)
|
||||||
LDFLAGS = $(LDFLAGS) -L$(BINDIR);$(LIBPREFIX);$(LIB);$(BCB)\lib\PSdk
|
LDFLAGS = $(LDFLAGS) -L$(BINDIR);$(LIBPREFIX);$(LIB);$(BCB)\lib\PSdk
|
||||||
LIBS = import32.lib
|
LIBS = import32.lib
|
||||||
!if "$(WITH_THREADS)" != "no" && "$(STATIC_RTL)" == "1"
|
!if "$(WITH_THREADS)" != "no" && "$(DYNRUNTIME)" == "1"
|
||||||
LIBS = $(LIBS) cw32mt.lib
|
|
||||||
!elif "$(WITH_THREADS)" != "no"
|
|
||||||
LIBS = $(LIBS) cw32mti.lib
|
LIBS = $(LIBS) cw32mti.lib
|
||||||
!elif "$(STATIC_RTL)" == "1"
|
!elif "$(WITH_THREADS)" != "no"
|
||||||
LIBS = $(LIBS) cw32.lib
|
LIBS = $(LIBS) cw32mt.lib
|
||||||
else
|
!elif "$(DYNRUNTIME)" == "1"
|
||||||
LIBS = $(LIBS) cw32i.lib
|
LIBS = $(LIBS) cw32i.lib
|
||||||
|
!else
|
||||||
|
LIBS = $(LIBS) cw32.lib
|
||||||
!endif
|
!endif
|
||||||
!if "$(WITH_FTP)" == "1" || "$(WITH_HTTP)" == "1"
|
!if "$(WITH_FTP)" == "1" || "$(WITH_HTTP)" == "1"
|
||||||
LIBS = $(LIBS) wsock32.lib
|
LIBS = $(LIBS) wsock32.lib
|
||||||
|
@@ -58,6 +58,7 @@ var withPython = false;
|
|||||||
var dirSep = "\\";
|
var dirSep = "\\";
|
||||||
var compiler = "msvc";
|
var compiler = "msvc";
|
||||||
var cruntime = "/MD";
|
var cruntime = "/MD";
|
||||||
|
var dynruntime = true;
|
||||||
var buildDebug = 0;
|
var buildDebug = 0;
|
||||||
var buildStatic = 0;
|
var buildStatic = 0;
|
||||||
var buildPrefix = ".";
|
var buildPrefix = ".";
|
||||||
@@ -135,6 +136,7 @@ function usage()
|
|||||||
txt += "\nWin32 build options, default value given in parentheses:\n\n";
|
txt += "\nWin32 build options, default value given in parentheses:\n\n";
|
||||||
txt += " compiler: Compiler to be used [msvc|mingw|bcb] (" + compiler + ")\n";
|
txt += " compiler: Compiler to be used [msvc|mingw|bcb] (" + compiler + ")\n";
|
||||||
txt += " cruntime: C-runtime compiler option (only msvc) (" + cruntime + ")\n";
|
txt += " cruntime: C-runtime compiler option (only msvc) (" + cruntime + ")\n";
|
||||||
|
txt += " dynruntime: Use the dynamic RTL (only bcb) (" + dynruntime + ")\n";
|
||||||
txt += " debug: Build unoptimised debug executables (" + (buildDebug? "yes" : "no") + ")\n";
|
txt += " debug: Build unoptimised debug executables (" + (buildDebug? "yes" : "no") + ")\n";
|
||||||
txt += " static: Link xmllint statically to libxml2 (" + (buildStatic? "yes" : "no") + ")\n";
|
txt += " static: Link xmllint statically to libxml2 (" + (buildStatic? "yes" : "no") + ")\n";
|
||||||
txt += " prefix: Base directory for the installation (" + buildPrefix + ")\n";
|
txt += " prefix: Base directory for the installation (" + buildPrefix + ")\n";
|
||||||
@@ -236,6 +238,7 @@ function discoverVersion()
|
|||||||
} else if (compiler == "bcb") {
|
} else if (compiler == "bcb") {
|
||||||
vf.WriteLine("INCLUDE=" + buildInclude);
|
vf.WriteLine("INCLUDE=" + buildInclude);
|
||||||
vf.WriteLine("LIB=" + buildLib);
|
vf.WriteLine("LIB=" + buildLib);
|
||||||
|
vf.WriteLine("DYNRUNTIME=" + (dynruntime? "1" : "0"));
|
||||||
}
|
}
|
||||||
vf.Close();
|
vf.Close();
|
||||||
}
|
}
|
||||||
@@ -470,6 +473,8 @@ for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) {
|
|||||||
compiler = arg.substring(opt.length + 1, arg.length);
|
compiler = arg.substring(opt.length + 1, arg.length);
|
||||||
else if (opt == "cruntime")
|
else if (opt == "cruntime")
|
||||||
cruntime = arg.substring(opt.length + 1, arg.length);
|
cruntime = arg.substring(opt.length + 1, arg.length);
|
||||||
|
else if (opt == "dynruntime")
|
||||||
|
dynruntime = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||||
else if (opt == "debug")
|
else if (opt == "debug")
|
||||||
buildDebug = strToBool(arg.substring(opt.length + 1, arg.length));
|
buildDebug = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||||
else if (opt == "static")
|
else if (opt == "static")
|
||||||
@@ -609,6 +614,8 @@ txtOut += "-------------------------\n";
|
|||||||
txtOut += " Compiler: " + compiler + "\n";
|
txtOut += " Compiler: " + compiler + "\n";
|
||||||
if (compiler == "msvc")
|
if (compiler == "msvc")
|
||||||
txtOut += " C-Runtime option: " + cruntime + "\n";
|
txtOut += " C-Runtime option: " + cruntime + "\n";
|
||||||
|
else if (compiler == "bcb")
|
||||||
|
txtOut += " Use dynamic RTL: " + dynruntime + "\n";
|
||||||
txtOut += " Debug symbols: " + boolToStr(buildDebug) + "\n";
|
txtOut += " Debug symbols: " + boolToStr(buildDebug) + "\n";
|
||||||
txtOut += " Static xmllint: " + boolToStr(buildStatic) + "\n";
|
txtOut += " Static xmllint: " + boolToStr(buildStatic) + "\n";
|
||||||
txtOut += " Install prefix: " + buildPrefix + "\n";
|
txtOut += " Install prefix: " + buildPrefix + "\n";
|
||||||
|
Reference in New Issue
Block a user