mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-29 15:41:13 +03:00
apply patch from Rob Richards to improve build with VS2005 Daniel
* win32/Makefile.msvc win32/configure.js: apply patch from Rob Richards to improve build with VS2005 Daniel svn path=/trunk/; revision=1435
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Fri Aug 3 15:49:26 CEST 2007 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* win32/Makefile.msvc win32/configure.js: apply patch from
|
||||||
|
Rob Richards to improve build with VS2005
|
||||||
|
|
||||||
Thu Jul 26 12:43:38 PDT 2007 William Brack <wbrack@mmm.com.hk>
|
Thu Jul 26 12:43:38 PDT 2007 William Brack <wbrack@mmm.com.hk>
|
||||||
|
|
||||||
* libxslt/xslt.c: Removed the exclude-result-prefix change of
|
* libxslt/xslt.c: Removed the exclude-result-prefix change of
|
||||||
|
@ -24,8 +24,8 @@ installed. The xsltproc command is a command line interface to the XSLT engine
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Libraries, includes, etc. to embed the GNOME XSLT engine
|
Summary: Libraries, includes, etc. to embed the GNOME XSLT engine
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libxslt = %{version}
|
Requires: libxslt = %{version}-%{release}
|
||||||
Requires: libxml2-devel >= 2.5.6
|
Requires: libxml2-devel >= @LIBXML_REQUIRED_VERSION@
|
||||||
Requires: libgcrypt-devel
|
Requires: libgcrypt-devel
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
|
||||||
@ -38,10 +38,10 @@ installed.
|
|||||||
%package python
|
%package python
|
||||||
Summary: Python bindings for the libxslt library
|
Summary: Python bindings for the libxslt library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libxslt = %{version}
|
Requires: libxslt = %{version}-%{release}
|
||||||
Requires: libxml2 >= @LIBXML_REQUIRED_VERSION@
|
Requires: libxml2 >= @LIBXML_REQUIRED_VERSION@
|
||||||
Requires: libxml2-python >= @LIBXML_REQUIRED_VERSION@
|
Requires: libxml2-python >= @LIBXML_REQUIRED_VERSION@
|
||||||
Requires: %{_libdir}/python%(echo `python -c "import sys; print sys.version[0:3]"`)
|
Requires: python
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
The libxslt-python package contains a module that permits applications
|
The libxslt-python package contains a module that permits applications
|
||||||
|
@ -141,6 +141,14 @@ EXSLT_OBJS_A = $(EXSLT_INTDIR_A)\common.obj\
|
|||||||
# Xsltproc and friends executables.
|
# Xsltproc and friends executables.
|
||||||
UTILS = $(BINDIR)\xsltproc.exe
|
UTILS = $(BINDIR)\xsltproc.exe
|
||||||
|
|
||||||
|
!if "$(VCMANIFEST)" == "1"
|
||||||
|
_VC_MANIFEST_EMBED_EXE= if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;1
|
||||||
|
_VC_MANIFEST_EMBED_DLL= if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;2
|
||||||
|
!else
|
||||||
|
_VC_MANIFEST_EMBED_EXE=
|
||||||
|
_VC_MANIFEST_EMBED_DLL=
|
||||||
|
!endif
|
||||||
|
|
||||||
all : libxslt libxslta libexslt libexslta utils
|
all : libxslt libxslta libexslt libexslta utils
|
||||||
|
|
||||||
libxslt : $(BINDIR)\$(XSLT_SO)
|
libxslt : $(BINDIR)\$(XSLT_SO)
|
||||||
@ -233,6 +241,7 @@ $(BINDIR)\$(XSLT_SO) : $(BINDIR) $(XSLT_OBJS) $(XSLT_INTDIR)\$(XSLT_DEF)
|
|||||||
/VERSION:$(LIBXSLT_MAJOR_VERSION).$(LIBXSLT_MINOR_VERSION) \
|
/VERSION:$(LIBXSLT_MAJOR_VERSION).$(LIBXSLT_MINOR_VERSION) \
|
||||||
/IMPLIB:$(BINDIR)\$(XSLT_IMP) /OUT:$(BINDIR)\$(XSLT_SO) \
|
/IMPLIB:$(BINDIR)\$(XSLT_IMP) /OUT:$(BINDIR)\$(XSLT_SO) \
|
||||||
$(XSLT_OBJS) $(LIBS) libxml2.lib
|
$(XSLT_OBJS) $(LIBS) libxml2.lib
|
||||||
|
@$(_VC_MANIFEST_EMBED_DLL)
|
||||||
|
|
||||||
#$(BINDIR)\$(XSLT_SO) : $(BINDIR) $(XSLT_OBJS) $(XSLT_INTDIR)\$(XSLT_DEF)
|
#$(BINDIR)\$(XSLT_SO) : $(BINDIR) $(XSLT_OBJS) $(XSLT_INTDIR)\$(XSLT_DEF)
|
||||||
# $(LD) $(LDFLAGS) /DLL /DEF:$(XSLT_INTDIR)\$(XSLT_DEF) \
|
# $(LD) $(LDFLAGS) /DLL /DEF:$(XSLT_INTDIR)\$(XSLT_DEF) \
|
||||||
@ -278,6 +287,7 @@ $(BINDIR)\$(EXSLT_SO) : $(BINDIR) $(EXSLT_OBJS) $(EXSLT_INTDIR)\$(EXSLT_DEF) lib
|
|||||||
/VERSION:$(LIBEXSLT_MAJOR_VERSION).$(LIBEXSLT_MINOR_VERSION) \
|
/VERSION:$(LIBEXSLT_MAJOR_VERSION).$(LIBEXSLT_MINOR_VERSION) \
|
||||||
/IMPLIB:$(BINDIR)\$(EXSLT_IMP) /OUT:$(BINDIR)\$(EXSLT_SO) \
|
/IMPLIB:$(BINDIR)\$(EXSLT_IMP) /OUT:$(BINDIR)\$(EXSLT_SO) \
|
||||||
$(EXSLT_OBJS) $(XSLT_IMP) $(LIBS) libxml2.lib
|
$(EXSLT_OBJS) $(XSLT_IMP) $(LIBS) libxml2.lib
|
||||||
|
@$(_VC_MANIFEST_EMBED_DLL)
|
||||||
|
|
||||||
#$(BINDIR)\$(EXSLT_SO) : $(BINDIR) $(EXSLT_OBJS) $(EXSLT_INTDIR)\$(EXSLT_DEF) libxslt
|
#$(BINDIR)\$(EXSLT_SO) : $(BINDIR) $(EXSLT_OBJS) $(EXSLT_INTDIR)\$(EXSLT_DEF) libxslt
|
||||||
# $(LD) $(LDFLAGS) /DLL /DEF:$(EXSLT_INTDIR)\$(EXSLT_DEF) \
|
# $(LD) $(LDFLAGS) /DLL /DEF:$(EXSLT_INTDIR)\$(EXSLT_DEF) \
|
||||||
@ -308,11 +318,13 @@ APPLIBS = $(APPLIBS) zlib.lib
|
|||||||
$(CC) /D "LIBXML_STATIC" /D "LIBXSLT_STATIC" /D "LIBEXSLT_STATIC" \
|
$(CC) /D "LIBXML_STATIC" /D "LIBXSLT_STATIC" /D "LIBEXSLT_STATIC" \
|
||||||
$(CFLAGS) /Fo$(UTILS_INTDIR)\ /c $<
|
$(CFLAGS) /Fo$(UTILS_INTDIR)\ /c $<
|
||||||
$(LD) $(LDFLAGS) /OUT:$@ $(XSLT_A) $(EXSLT_A) $(APPLIBS) $(UTILS_INTDIR)\$(<B).obj
|
$(LD) $(LDFLAGS) /OUT:$@ $(XSLT_A) $(EXSLT_A) $(APPLIBS) $(UTILS_INTDIR)\$(<B).obj
|
||||||
|
@$(_VC_MANIFEST_EMBED_EXE)
|
||||||
!else
|
!else
|
||||||
APPLIBS = $(LIBS) libxml2.lib
|
APPLIBS = $(LIBS) libxml2.lib
|
||||||
{$(UTILS_SRCDIR)}.c{$(BINDIR)}.exe:
|
{$(UTILS_SRCDIR)}.c{$(BINDIR)}.exe:
|
||||||
$(CC) $(CFLAGS) /Fo$(UTILS_INTDIR)\ /c $<
|
$(CC) $(CFLAGS) /Fo$(UTILS_INTDIR)\ /c $<
|
||||||
$(LD) $(LDFLAGS) /OUT:$@ $(XSLT_IMP) $(EXSLT_IMP) $(APPLIBS) $(UTILS_INTDIR)\$(<B).obj
|
$(LD) $(LDFLAGS) /OUT:$@ $(XSLT_IMP) $(EXSLT_IMP) $(APPLIBS) $(UTILS_INTDIR)\$(<B).obj
|
||||||
|
@$(_VC_MANIFEST_EMBED_EXE)
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
# Builds xsltproc and friends. Uses the implicit rule for commands.
|
# Builds xsltproc and friends. Uses the implicit rule for commands.
|
||||||
|
@ -51,6 +51,7 @@ var withModules = false;
|
|||||||
var dirSep = "\\";
|
var dirSep = "\\";
|
||||||
var compiler = "msvc";
|
var compiler = "msvc";
|
||||||
var cruntime = "/MD";
|
var cruntime = "/MD";
|
||||||
|
var vcmanifest = false;
|
||||||
var buildDebug = 0;
|
var buildDebug = 0;
|
||||||
var buildStatic = 0;
|
var buildStatic = 0;
|
||||||
var buildPrefix = ".";
|
var buildPrefix = ".";
|
||||||
@ -108,6 +109,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] (" + compiler + ")\n";
|
txt += " compiler: Compiler to be used [msvc|mingw] (" + compiler + ")\n";
|
||||||
txt += " cruntime: C-runtime compiler option (only msvc) (" + cruntime + ")\n";
|
txt += " cruntime: C-runtime compiler option (only msvc) (" + cruntime + ")\n";
|
||||||
|
txt += " vcmanifest: Embed VC manifest (only msvc) (" + (vcmanifest? "yes" : "no") + ")\n";
|
||||||
txt += " debug: Build unoptimised debug executables (" + (buildDebug? "yes" : "no") + ")\n";
|
txt += " debug: Build unoptimised debug executables (" + (buildDebug? "yes" : "no") + ")\n";
|
||||||
txt += " static: Link xsltproc statically to libxslt (" + (buildStatic? "yes" : "no") + ")\n";
|
txt += " static: Link xsltproc statically to libxslt (" + (buildStatic? "yes" : "no") + ")\n";
|
||||||
txt += " Note: automatically enabled if cruntime is not /MD or /MDd\n";
|
txt += " Note: automatically enabled if cruntime is not /MD or /MDd\n";
|
||||||
@ -201,6 +203,7 @@ function discoverVersion()
|
|||||||
vf.WriteLine("INCLUDE=$(INCLUDE);" + buildInclude);
|
vf.WriteLine("INCLUDE=$(INCLUDE);" + buildInclude);
|
||||||
vf.WriteLine("LIB=$(LIB);" + buildLib);
|
vf.WriteLine("LIB=$(LIB);" + buildLib);
|
||||||
vf.WriteLine("CRUNTIME=" + cruntime);
|
vf.WriteLine("CRUNTIME=" + cruntime);
|
||||||
|
vf.WriteLine("VCMANIFEST=" + (vcmanifest? "1" : "0"));
|
||||||
} else if (compiler == "mingw") {
|
} else if (compiler == "mingw") {
|
||||||
vf.WriteLine("INCLUDE+=;" + buildInclude);
|
vf.WriteLine("INCLUDE+=;" + buildInclude);
|
||||||
vf.WriteLine("LIB+=;" + buildLib);
|
vf.WriteLine("LIB+=;" + buildLib);
|
||||||
@ -344,6 +347,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 == "vcmanifest")
|
||||||
|
vcmanifest = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||||
else if (opt == "static")
|
else if (opt == "static")
|
||||||
buildStatic = strToBool(arg.substring(opt.length + 1, arg.length));
|
buildStatic = strToBool(arg.substring(opt.length + 1, arg.length));
|
||||||
else if (opt == "prefix")
|
else if (opt == "prefix")
|
||||||
@ -478,6 +483,7 @@ 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";
|
||||||
|
txtOut += " Embed Manifest: " + boolToStr(vcmanifest) + "\n";
|
||||||
txtOut += " Debug symbols: " + boolToStr(buildDebug) + "\n";
|
txtOut += " Debug symbols: " + boolToStr(buildDebug) + "\n";
|
||||||
txtOut += " Static xsltproc: " + boolToStr(buildStatic) + "\n";
|
txtOut += " Static xsltproc: " + boolToStr(buildStatic) + "\n";
|
||||||
txtOut += " Install prefix: " + buildPrefix + "\n";
|
txtOut += " Install prefix: " + buildPrefix + "\n";
|
||||||
|
Reference in New Issue
Block a user