mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[xalan-c] switch to https://github.com/apache/xalan-c (#7489) (#7505)
* [xalan-c] switch to https://github.com/apache/xalan-c (#7489) * [xalan-c] updated homepage
This commit is contained in:
parent
2bf8b26aa4
commit
77c3e0aa2e
@ -1,65 +0,0 @@
|
||||
diff --git a/c/Projects/Win32/VC10/AllInOne/AllInOne.vcxproj b/c/Projects/Win32/VC10/AllInOne/AllInOne.vcxproj
|
||||
index 5a9d6a0..a0d12e8 100644
|
||||
--- a/c/Projects/Win32/VC10/AllInOne/AllInOne.vcxproj
|
||||
+++ b/c/Projects/Win32/VC10/AllInOne/AllInOne.vcxproj
|
||||
@@ -159,7 +159,7 @@
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(XERCESCROOT)\include;$(XERCESCROOT)\src;..\..\..\..\src\;$(OutDir)Nls\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
- <PreprocessorDefinitions>XALAN_BUILD_DLL;XALAN_INMEM_MSG_LOADER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
+ <PreprocessorDefinitions>_ALLOW_RTCc_IN_STL;XALAN_BUILD_DLL;XALAN_INMEM_MSG_LOADER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
@@ -197,7 +197,7 @@
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(XERCESCROOT)\include;$(XERCESCROOT)\src;..\..\..\..\src\;$(OutDir)Nls\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
- <PreprocessorDefinitions>XALAN_BUILD_DLL;XALAN_INMEM_MSG_LOADER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
+ <PreprocessorDefinitions>_ALLOW_RTCc_IN_STL;XALAN_BUILD_DLL;XALAN_INMEM_MSG_LOADER;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
diff --git a/c/Projects/Win32/VC10/Utils/MsgCreator/MsgCreator.vcxproj b/c/Projects/Win32/VC10/Utils/MsgCreator/MsgCreator.vcxproj
|
||||
index 27958b5..9f7767b 100644
|
||||
--- a/c/Projects/Win32/VC10/Utils/MsgCreator/MsgCreator.vcxproj
|
||||
+++ b/c/Projects/Win32/VC10/Utils/MsgCreator/MsgCreator.vcxproj
|
||||
@@ -159,6 +159,7 @@
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(XERCESCROOT)\include;$(XERCESCROOT)\src;..\..\..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
+ <PreprocessorDefinitions>_ALLOW_RTCc_IN_STL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
@@ -191,7 +192,7 @@
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(XERCESCROOT)\include;$(XERCESCROOT)\src;..\..\..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
- <PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
+ <PreprocessorDefinitions>_ALLOW_RTCc_IN_STL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
diff --git a/c/Projects/Win32/VC10/Utils/XalanMsgLib/XalanMsgLib.vcxproj b/c/Projects/Win32/VC10/Utils/XalanMsgLib/XalanMsgLib.vcxproj
|
||||
index facbbc1..53b83a8 100644
|
||||
--- a/c/Projects/Win32/VC10/Utils/XalanMsgLib/XalanMsgLib.vcxproj
|
||||
+++ b/c/Projects/Win32/VC10/Utils/XalanMsgLib/XalanMsgLib.vcxproj
|
||||
@@ -144,7 +144,7 @@
|
||||
<Optimization>Disabled</Optimization>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<AdditionalIncludeDirectories>$(XERCESCROOT)\include;$(XERCESCROOT)\src;..\..\..\..\..\src;$(OutDir)Nls\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
- <PreprocessorDefinitions>XALAN_XALANMSGLIB_BUILD_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
+ <PreprocessorDefinitions>_ALLOW_RTCc_IN_STL;XALAN_XALANMSGLIB_BUILD_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<SmallerTypeCheck>true</SmallerTypeCheck>
|
||||
@@ -170,7 +170,7 @@
|
||||
<Optimization>Disabled</Optimization>
|
||||
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||
<AdditionalIncludeDirectories>$(XERCESCROOT)\include;$(XERCESCROOT)\src;..\..\..\..\..\src;$(OutDir)Nls\Include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
- <PreprocessorDefinitions>XALAN_XALANMSGLIB_BUILD_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
+ <PreprocessorDefinitions>_ALLOW_RTCc_IN_STL;XALAN_XALANMSGLIB_BUILD_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<SmallerTypeCheck>true</SmallerTypeCheck>
|
@ -1,21 +0,0 @@
|
||||
diff -urN a/c/Projects/Win32/Res/AllInOne/AllInOne.rc b/c/Projects/Win32/Res/AllInOne/AllInOne.rc
|
||||
--- a/c/Projects/Win32/Res/AllInOne/AllInOne.rc 2012-03-19 16:18:11.000000000 +0000
|
||||
+++ b/c/Projects/Win32/Res/AllInOne/AllInOne.rc 2018-09-07 16:08:59.871434376 +0100
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
-#include "afxres.h"
|
||||
+#include "windows.h"
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@@ -75,7 +75,7 @@
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
- "#include ""afxres.h""\r\n"
|
||||
+ "#include ""windows.h""\r\n"
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
@ -1,45 +0,0 @@
|
||||
diff -urN a/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp b/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp
|
||||
--- a/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp 2012-03-19 16:18:10.000000000 +0000
|
||||
+++ b/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp 2018-09-07 16:08:39.207316486 +0100
|
||||
@@ -84,7 +84,7 @@
|
||||
const XalanDOMChar*
|
||||
getName() const
|
||||
{
|
||||
- return name;
|
||||
+ return const_cast<XalanDOMChar*>(reinterpret_cast<const XalanDOMChar*>(&name[0]));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -261,7 +261,7 @@
|
||||
#pragma warning(disable: 4244)
|
||||
theHandleType theSearchHandle =
|
||||
_wfindfirst(
|
||||
- const_cast<wchar_t*>(theConversionFunction(theFullSearchSpec)),
|
||||
+ reinterpret_cast<wchar_t*>(const_cast<XalanDOMChar*>(theConversionFunction(theFullSearchSpec))),
|
||||
&theFindData);
|
||||
#pragma warning(pop)
|
||||
|
||||
diff -urN a/c/src/xalanc/PlatformSupport/DOMStringHelper.cpp b/c/src/xalanc/PlatformSupport/DOMStringHelper.cpp
|
||||
--- a/c/src/xalanc/PlatformSupport/DOMStringHelper.cpp 2012-03-19 16:18:10.000000000 +0000
|
||||
+++ b/c/src/xalanc/PlatformSupport/DOMStringHelper.cpp 2018-09-07 16:08:39.207316486 +0100
|
||||
@@ -868,7 +868,7 @@
|
||||
const XalanDOMChar* theRHS)
|
||||
{
|
||||
#if defined(XALAN_USE_WINDOWS_COLLATION)
|
||||
- return _wcscoll_l(theLHS, theRHS, s_locale);
|
||||
+ return _wcscoll_l(reinterpret_cast<const wchar_t *>(theLHS), reinterpret_cast<const wchar_t *>(theRHS), s_locale);
|
||||
#else
|
||||
return doCollationCompare(
|
||||
theLHS,
|
||||
diff -urN a/c/src/xalanc/PlatformSupport/XalanFileOutputStream.cpp b/c/src/xalanc/PlatformSupport/XalanFileOutputStream.cpp
|
||||
--- a/c/src/xalanc/PlatformSupport/XalanFileOutputStream.cpp 2012-03-19 16:18:10.000000000 +0000
|
||||
+++ b/c/src/xalanc/PlatformSupport/XalanFileOutputStream.cpp 2018-09-07 16:08:39.207316486 +0100
|
||||
@@ -123,7 +123,7 @@
|
||||
|
||||
#if defined(XALAN_WINDOWS)
|
||||
HandleType theFileHandle = CreateFileW(
|
||||
- theFileName.c_str(),
|
||||
+ reinterpret_cast<const wchar_t *>(theFileName.c_str()),
|
||||
GENERIC_WRITE,
|
||||
0,
|
||||
0,
|
@ -1,12 +0,0 @@
|
||||
diff -urN a/c/Makefile.incl.in b/c/Makefile.incl.in
|
||||
--- a/c/Makefile.incl.in 2012-10-14 21:54:01.000000000 +0100
|
||||
+++ b/c/Makefile.incl.in 2018-09-07 16:08:15.559182228 +0100
|
||||
@@ -598,7 +598,7 @@
|
||||
MAKE_SHARED = ${CXX} $(CXXFLAGS) -D${PLATFORM} -dynamiclib -prebind -seg1addr 0x38000000 -compatibility_version 1 -current_version $(LIB_MAJOR_DOT_VER) -install_name ${LINK_NAME} ${LDFLAGS}
|
||||
LINK = ${CXX} $(CXXFLAGS) ${PLATFORM_COMPILE_OPTIONS} ${LDFLAGS}
|
||||
|
||||
- export DYLD_LIBRARY_PATH := $(XERCESCROOT)/lib:$(ICULIB_LOC):$(DYLD_LIBRARY_PATH)
|
||||
+ export DYLD_FALLBACK_LIBRARY_PATH := $(XERCESCROOT)/lib:$(ICULIB_LOC):$(DYLD_FALLBACK_LIBRARY_PATH)
|
||||
LOC_LIB = ${LOC_LIBNAME}.${LIB_MAJOR_VER}.${LIB_MINOR_VER}$(SHLIBSUFFIX)
|
||||
LOC_SONAME = ${LOC_LIBNAME}.${LIB_MAJOR_VER}${SHLIBSUFFIX}
|
||||
MAKE_SHARED_LOC= ${CXX} $(CXXFLAGS) -D${PLATFORM} -dynamiclib -prebind -seg1addr 0x40000000 -compatibility_version 1 -current_version $(LIB_MAJOR_DOT_VER) -install_name ${LOC_LIBNAME}${SHLIBSUFFIX} ${LDFLAGS}
|
@ -1,186 +0,0 @@
|
||||
diff -urN a/c/samples/Makefile.in b/c/samples/Makefile.in
|
||||
--- a/c/samples/Makefile.in 2012-03-19 16:18:12.000000000 +0000
|
||||
+++ b/c/samples/Makefile.in 2018-09-07 16:07:59.063089005 +0100
|
||||
@@ -88,7 +88,7 @@
|
||||
|
||||
$(XSL_LIB_DIR)/mod_xslt$(SHLIBSUFFIX) : $(XSL_OBJ_DIR)/mod_xslt.o
|
||||
$(MAKE_SHARED) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/ApacheModuleXSLT/%.c
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) -I/usr/include/apache/ $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/CompileStylesheet: $(XSL_OBJ_DIR)/CompileStylesheet.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/CompileStylesheet/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/DocumentBuilder: $(XSL_OBJ_DIR)/DocumentBuilder.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/DocumentBuilder/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/EntityResolver: $(XSL_OBJ_DIR)/EntityResolver.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/EntityResolver/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/ExternalFunction: $(XSL_OBJ_DIR)/ExternalFunction.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/ExternalFunction/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/ParsedSourceWrappers: $(XSL_OBJ_DIR)/ParsedSourceWrappers.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/ParsedSourceWrappers/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/SerializeNodeSet: $(XSL_OBJ_DIR)/SerializeNodeSet.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/SerializeNodeSet/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/SimpleTransform: $(XSL_OBJ_DIR)/SimpleTransform.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/SimpleTransform/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/SimpleXPathAPI: $(XSL_OBJ_DIR)/SimpleXPathAPI.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/SimpleXPathAPI/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/SimpleXPathCAPI: $(XSL_OBJ_DIR)/SimpleXPathCAPI.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/SimpleXPathCAPI/%.c
|
||||
$(CC4) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/StreamTransform: $(XSL_OBJ_DIR)/StreamTransform.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/StreamTransform/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/TraceListen: $(XSL_OBJ_DIR)/TraceListen.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/TraceListen/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/TransformToXercesDOM: $(XSL_OBJ_DIR)/TransformToXercesDOM.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/TransformToXercesDOM/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/UseStylesheetParam: $(XSL_OBJ_DIR)/UseStylesheetParam.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/UseStylesheetParam/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -200,7 +200,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/XalanTransform: $(XSL_OBJ_DIR)/XalanTransform.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/XalanTransform/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/XalanTransformerCallback: $(XSL_OBJ_DIR)/XalanTransformerCallback.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/XalanTransformerCallback/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -216,7 +216,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/ThreadSafe: $(XSL_OBJ_DIR)/ThreadSafe.o
|
||||
$(LINK) $(XSL_BUILD_OPTIONS) $(PLATFORM_LIB_LINK_OPTIONS) \
|
||||
- $(EXTRA_LINK_OPTIONS) $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ $(EXTRA_LINK_OPTIONS) $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
$(XSL_OBJ_DIR)/%.o:$(SAMPLES_DIR)/ThreadSafe/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
diff -urN a/c/Tests/Makefile.in b/c/Tests/Makefile.in
|
||||
--- a/c/Tests/Makefile.in 2012-03-19 16:18:12.000000000 +0000
|
||||
+++ b/c/Tests/Makefile.in 2018-09-07 16:07:59.063089005 +0100
|
||||
@@ -62,7 +62,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/ThreadTest: ${XSL_OBJ_DIR}/ThreadTest.o
|
||||
${LINK} $(XSL_BUILD_OPTIONS) ${PLATFORM_LIB_LINK_OPTIONS} \
|
||||
- ${EXTRA_LINK_OPTIONS} $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ ${EXTRA_LINK_OPTIONS} $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
${XSL_OBJ_DIR}/%.o:$(TESTS_DIR)/Threads/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/Conf: ${XSL_OBJ_DIR}/conf.o
|
||||
${LINK} $(XSL_BUILD_OPTIONS) ${PLATFORM_LIB_LINK_OPTIONS} \
|
||||
- ${EXTRA_LINK_OPTIONS} $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ ${EXTRA_LINK_OPTIONS} $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
${XSL_OBJ_DIR}/%.o:$(TESTS_DIR)/Conf/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
|
||||
$(XSL_BIN_DIR)/Perf: $(PERF_OBJECTS)
|
||||
${LINK} $(XSL_BUILD_OPTIONS) ${PLATFORM_LIB_LINK_OPTIONS} \
|
||||
- ${EXTRA_LINK_OPTIONS} $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) $^ -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
+ ${EXTRA_LINK_OPTIONS} $^ $(XALAN_LIB) $(ALLLIBS) $(CXXFLAGS) -o $@ $(OTHER_LINK_PARAMETERS)
|
||||
|
||||
${XSL_OBJ_DIR}/%.o:$(TESTS_DIR)/Performance/%.cpp
|
||||
$(CC1) $(XSL_BUILD_OPTIONS) -c $(XSL_INCL) $(EXTRA_COMPILE_OPTIONS) -o $@ $<
|
@ -1,12 +0,0 @@
|
||||
diff -urN a/c/src/xalanc/PlatformSupport/XalanLocator.hpp b/c/src/xalanc/PlatformSupport/XalanLocator.hpp
|
||||
--- a/c/src/xalanc/PlatformSupport/XalanLocator.hpp 2012-09-27 07:59:33.000000000 +0100
|
||||
+++ b/c/src/xalanc/PlatformSupport/XalanLocator.hpp 2018-09-07 16:07:11.070819930 +0100
|
||||
@@ -91,7 +91,7 @@
|
||||
const XalanDOMChar* theAlternateId = getEmptyPtr())
|
||||
{
|
||||
return theLocator == 0 ? theAlternateId : (theLocator->getSystemId() ?
|
||||
- theLocator->getPublicId() : theAlternateId);
|
||||
+ theLocator->getSystemId() : theAlternateId);
|
||||
}
|
||||
|
||||
/**
|
@ -1,21 +0,0 @@
|
||||
diff -urN a/c/README b/c/README
|
||||
--- a/c/README 2012-10-13 05:52:45.000000000 +0100
|
||||
+++ b/c/README 2018-09-07 16:06:24.602562653 +0100
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
Project Description:
|
||||
The Apache Xalan C/C++ Project provides a library and a
|
||||
- comand line program to transform XML documents using a
|
||||
+ command line program to transform XML documents using a
|
||||
stylesheet that conforms to XSLT 1.0 standards.
|
||||
|
||||
The source package contains all the code to create the library,
|
||||
@@ -84,7 +84,7 @@
|
||||
XalanMessages_1_11.exp - Windows DLL export definitions
|
||||
XalanMessages_1_11.lib - Windows DLL library definitions
|
||||
XalanMessages_1_11D.exp - Windows DLL export definitions
|
||||
- XalanMessages_1_11D.lib - Windows DLL library defnitions
|
||||
+ XalanMessages_1_11D.lib - Windows DLL library definitions
|
||||
|
||||
SUPPORTED PLATFORMS:
|
||||
- This is only a partial list
|
@ -1,5 +1,5 @@
|
||||
Source: xalan-c
|
||||
Version: 1.11-6
|
||||
Homepage: https://www-us.apache.org/dist/xalan/xalan-c/
|
||||
Version: 1.11-7
|
||||
Homepage: https://github.com/apache/xalan-c
|
||||
Description: Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types
|
||||
Build-Depends: xerces-c
|
||||
|
48
ports/xalan-c/fix-missing-dll-error.patch
Normal file
48
ports/xalan-c/fix-missing-dll-error.patch
Normal file
@ -0,0 +1,48 @@
|
||||
diff --git a/src/xalanc/Utils/CMakeLists.txt b/src/xalanc/Utils/CMakeLists.txt
|
||||
index dc39ad0..2d78685 100644
|
||||
--- a/src/xalanc/Utils/CMakeLists.txt
|
||||
+++ b/src/xalanc/Utils/CMakeLists.txt
|
||||
@@ -40,6 +40,13 @@ set(SUPPORTMSGINDEX "${GEN_SUPPORTDIR}/LocalMsgIndex.hpp")
|
||||
add_custom_target(locale ALL)
|
||||
set_target_properties(locale PROPERTIES FOLDER "Message Library")
|
||||
|
||||
+# workaround for case of missing xerces-c dll
|
||||
+if(EXISTS ${XercesC_INCLUDE_DIR}/../bin)
|
||||
+ set(MsgCreator_WD $<TARGET_FILE_DIR:XercesC::XercesC>/../bin)
|
||||
+else()
|
||||
+ set(MsgCreator_WD "${XSL_NLS_GEN_DIR}")
|
||||
+endif()
|
||||
+
|
||||
if(msgloader STREQUAL "inmemory")
|
||||
add_custom_command(
|
||||
OUTPUT "${GENMSGINDEX}"
|
||||
@@ -48,7 +55,8 @@ if(msgloader STREQUAL "inmemory")
|
||||
"${XLIFF_FILE_NAME}"
|
||||
-TYPE inmem
|
||||
-LOCALE ${LOCALE}
|
||||
- WORKING_DIRECTORY "${XSL_NLS_GEN_DIR}"
|
||||
+ -OUTDIR "${XSL_NLS_GEN_DIR}"
|
||||
+ WORKING_DIRECTORY "${MsgCreator_WD}"
|
||||
COMMENT "Generating inmemory locale message data"
|
||||
DEPENDS MsgCreator "${XLIFF_FILE_NAME}")
|
||||
|
||||
@@ -92,7 +100,8 @@ if(msgloader STREQUAL "icu")
|
||||
"${XLIFF_FILE_NAME}"
|
||||
-TYPE icu
|
||||
-LOCALE ${LOCALE}
|
||||
- WORKING_DIRECTORY "${XSL_NLS_GEN_DIR}"
|
||||
+ -OUTDIR "${XSL_NLS_GEN_DIR}"
|
||||
+ WORKING_DIRECTORY "${MsgCreator_WD}"
|
||||
COMMENT "Generating ICU locale message data"
|
||||
DEPENDS MsgCreator "${XLIFF_FILE_NAME}")
|
||||
|
||||
@@ -141,7 +150,8 @@ if(msgloader STREQUAL "nls")
|
||||
"${XLIFF_FILE_NAME}"
|
||||
-TYPE nls
|
||||
-LOCALE ${LOCALE}
|
||||
- WORKING_DIRECTORY "${XSL_NLS_GEN_DIR}"
|
||||
+ -OUTDIR "${XSL_NLS_GEN_DIR}"
|
||||
+ WORKING_DIRECTORY "${MsgCreator_WD}"
|
||||
COMMENT "Generating nls locale message data"
|
||||
DEPENDS MsgCreator "${XLIFF_FILE_NAME}")
|
||||
|
15
ports/xalan-c/fix-win-deprecated-err.patch
Normal file
15
ports/xalan-c/fix-win-deprecated-err.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git a/src/xalanc/Utils/MsgCreator/CMakeLists.txt b/src/xalanc/Utils/MsgCreator/CMakeLists.txt
|
||||
index 20215d4..dc74c1b 100644
|
||||
--- a/src/xalanc/Utils/MsgCreator/CMakeLists.txt
|
||||
+++ b/src/xalanc/Utils/MsgCreator/CMakeLists.txt
|
||||
@@ -37,6 +37,10 @@ set(msgcreator_headers
|
||||
NLSHandler.hpp
|
||||
SAX2Handler.hpp)
|
||||
|
||||
+if(MSVC)
|
||||
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
|
||||
+endif()
|
||||
+
|
||||
add_executable(MsgCreator ${msgcreator_sources} ${msgcreator_headers})
|
||||
target_include_directories(MsgCreator PUBLIC
|
||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>
|
@ -1,132 +1,42 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
string(LENGTH "${CURRENT_BUILDTREES_DIR}" BUILDTREES_PATH_LENGTH)
|
||||
if(BUILDTREES_PATH_LENGTH GREATER 37 AND CMAKE_HOST_WIN32)
|
||||
message(WARNING "${PORT}'s buildsystem uses very long paths and may fail on your system.\n"
|
||||
"We recommend moving vcpkg to a short path such as 'C:\\src\\vcpkg' or using the subst command."
|
||||
)
|
||||
endif()
|
||||
|
||||
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
|
||||
|
||||
set(XALANC_VERSION 1.11)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "http://www-us.apache.org/dist/xalan/xalan-c/sources/xalan_c-${XALANC_VERSION}-src.zip"
|
||||
FILENAME "xalan_c-${XALANC_VERSION}-src.zip"
|
||||
SHA512 2e79a2c8f755c9660ffc94b26b6bd4b140685e05a88d8e5abb19a2f271383a3f2f398b173ef403f65dc33af75206214bd21ac012c39b4c0051b3a9f61f642fe6
|
||||
)
|
||||
|
||||
vcpkg_download_distfile(XALAN_PATCH8
|
||||
URLS "https://github.com/rleigh-codelibre/vcpkg-patches/raw/ca09d69280469ce8f787c67b48f86e46a463ef5d/xalan-c/0008-remove-unary-binary-function.patch"
|
||||
FILENAME "0008-remove-unary-binary-function.patch"
|
||||
SHA512 059d9a39b29125ae770369e4c44ab7804ae16d4ff5c90e35f25b7990dc987161bf1187ceb2dcbab181ffb72490a9d9f45e30ab5928644734e7627cb74b03e201
|
||||
)
|
||||
|
||||
vcpkg_download_distfile(XALAN_PATCH9
|
||||
URLS "https://raw.githubusercontent.com/rleigh-codelibre/vcpkg-patches/ca09d69280469ce8f787c67b48f86e46a463ef5d/xalan-c/0009-remove-select-workaround.patch"
|
||||
FILENAME "0009-remove-select-workaround.patch"
|
||||
SHA512 73730736cd1f1809ebcc35562017402d606cbfd5a64665d104a21d89d679ab3274f6f5685ab63305c57fffab74e62084c0e18c76d19eb5f9c2e36be6679fd4d3
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
REF ${XALANC_VERSION}
|
||||
REPO apache/xalan-c
|
||||
REF 177da75646a80fae2c22a315c0d987a5eadba143
|
||||
SHA512 e0f095b7031394c39c8e0fdca1f820c4222466f8c6e9df7bc40a21f9ca0e9291b7b6cdfb0a2d67db275ae97d7a7cdd447637102639e74716f0fb23a946b30ebe
|
||||
PATCHES
|
||||
0001-ALLOW_RTCc_IN_STL.patch
|
||||
0002-no-mfc.patch
|
||||
0003-char16_t.patch
|
||||
0004-macosx-dyld-fallback.patch
|
||||
0005-fix-ftbfs-ld-as-needed.patch
|
||||
0006-fix-testxslt-segfault.patch
|
||||
0007-fix-readme-typos.patch
|
||||
${XALAN_PATCH8}
|
||||
${XALAN_PATCH9}
|
||||
fix-win-deprecated-err.patch
|
||||
fix-missing-dll-error.patch
|
||||
)
|
||||
|
||||
if (VCPKG_TARGET_ARCHITECTURE MATCHES "x86")
|
||||
set(BITS 32)
|
||||
elseif (VCPKG_TARGET_ARCHITECTURE MATCHES "x64")
|
||||
set(BITS 64)
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/xalan-c)
|
||||
else()
|
||||
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/XalanC TARGET_PATH share/xalan-c)
|
||||
endif()
|
||||
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
||||
list(APPEND BUILD_TYPES "release")
|
||||
endif()
|
||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
||||
list(APPEND BUILD_TYPES "debug")
|
||||
endif()
|
||||
# cleanup
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/share
|
||||
)
|
||||
|
||||
set(XALANCROOT ${SOURCE_PATH}/c)
|
||||
set(ENV{XALANCROOT} ${XALANCROOT})
|
||||
foreach(BUILD_TYPE IN LISTS BUILD_TYPES)
|
||||
if(BUILD_TYPE STREQUAL "release")
|
||||
set(P ${CURRENT_PACKAGES_DIR})
|
||||
set(SHORT rel)
|
||||
set(OPTS)
|
||||
set(ENV{XERCESCROOT} ${CURRENT_INSTALLED_DIR})
|
||||
else()
|
||||
set(P ${CURRENT_PACKAGES_DIR}/debug)
|
||||
set(SHORT dbg)
|
||||
set(OPTS -d -z -I${CURRENT_INSTALLED_DIR}/include)
|
||||
set(ENV{XERCESCROOT} ${CURRENT_INSTALLED_DIR}/debug)
|
||||
endif()
|
||||
set(DIR ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-${SHORT})
|
||||
file(REMOVE_RECURSE ${DIR})
|
||||
file(MAKE_DIRECTORY ${DIR})
|
||||
message(STATUS "Configuring ${TARGET_TRIPLET}-${SHORT}")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND ${XALANCROOT}/runConfigure -p linux -c gcc -x g++ -b ${BITS} -P ${P} ${OPTS}
|
||||
WORKING_DIRECTORY ${DIR}
|
||||
LOGNAME configure-${TARGET_TRIPLET}-${SHORT}
|
||||
)
|
||||
message(STATUS "Building ${TARGET_TRIPLET}-${SHORT}")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND make -i -j${VCPKG_CONCURRENCY}
|
||||
WORKING_DIRECTORY ${DIR}
|
||||
LOGNAME make-${TARGET_TRIPLET}-${SHORT}
|
||||
)
|
||||
message(STATUS "Installing ${TARGET_TRIPLET}-${SHORT}")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND make install
|
||||
WORKING_DIRECTORY ${DIR}
|
||||
LOGNAME install-${TARGET_TRIPLET}-${SHORT}
|
||||
)
|
||||
endforeach()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(COPY ${SOURCE_PATH}/c/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
else()
|
||||
set(ENV{CL} "$ENV{CL} \"/I${CURRENT_INSTALLED_DIR}/include\"")
|
||||
set(ENV{PATH} "$ENV{PATH};${CURRENT_INSTALLED_DIR}/bin;${CURRENT_INSTALLED_DIR}/debug/bin")
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin/Xalan.exe ${CURRENT_PACKAGES_DIR}/debug/bin/Xalan.exe)
|
||||
endif()
|
||||
|
||||
vcpkg_install_msbuild(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PROJECT_SUBPATH c/projects/Win32/VC10/AllInOne/AllInOne.vcxproj
|
||||
OPTIONS_RELEASE /p:XERCESCROOT=${CURRENT_INSTALLED_DIR}
|
||||
OPTIONS_DEBUG /p:XERCESCROOT=${CURRENT_INSTALLED_DIR}/debug
|
||||
LICENSE_SUBPATH c/LICENSE
|
||||
SKIP_CLEAN
|
||||
)
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/xalan-c)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/xalan-c/LICENSE ${CURRENT_PACKAGES_DIR}/share/xalan-c/copyright)
|
||||
|
||||
file(COPY ${SOURCE_PATH}/c/src/xalanc DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN *.hpp)
|
||||
|
||||
# LocalMsgIndex.hpp and LocalMsgData.hpp are here
|
||||
file(GLOB NLS_INCLUDES "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*/c/Build/*/VC10/Release/Nls/Include/*.hpp")
|
||||
if(NOT NLS_INCLUDES)
|
||||
message(FATAL_ERROR "Could not locate LocalMsgIndex.hpp")
|
||||
endif()
|
||||
file(COPY ${NLS_INCLUDES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/xalanc/PlatformSupport)
|
||||
|
||||
vcpkg_clean_msbuild()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xalanc/NLS)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xalanc/util/MsgLoaders/ICU/resources)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xalanc/TestXSLT)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xalanc/XalanExe)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xalanc/XPathCAPI)
|
||||
endif()
|
||||
vcpkg_copy_pdbs()
|
||||
|
Loading…
x
Reference in New Issue
Block a user