Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-windows10
Commits
842c7b7d
Commit
842c7b7d
authored
Jun 30, 2015
by
Ghislain MARY
Browse files
Add Visual Studio project for xml2 on Windows 10.
parent
149e2b94
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
802 additions
and
0 deletions
+802
-0
submodules/build/xml2/windows10/xml2/config.h
submodules/build/xml2/windows10/xml2/config.h
+125
-0
submodules/build/xml2/windows10/xml2/install_headers.bat
submodules/build/xml2/windows10/xml2/install_headers.bat
+6
-0
submodules/build/xml2/windows10/xml2/libxml2_port.h
submodules/build/xml2/windows10/xml2/libxml2_port.h
+23
-0
submodules/build/xml2/windows10/xml2/xml2.sln
submodules/build/xml2/windows10/xml2/xml2.sln
+34
-0
submodules/build/xml2/windows10/xml2/xml2.vcxproj
submodules/build/xml2/windows10/xml2/xml2.vcxproj
+138
-0
submodules/build/xml2/windows10/xml2/xmlversion.h
submodules/build/xml2/windows10/xml2/xmlversion.h
+476
-0
No files found.
submodules/build/xml2/windows10/xml2/config.h
0 → 100644
View file @
842c7b7d
#ifndef __LIBXML_WIN32_CONFIG__
#define __LIBXML_WIN32_CONFIG__
#define HAVE_CTYPE_H
#define HAVE_STDARG_H
#define HAVE_MALLOC_H
#define HAVE_ERRNO_H
#define HAVE_STDINT_H
#if defined(_WIN32_WCE)
#undef HAVE_ERRNO_H
#include <windows.h>
#include "wincecompat.h"
#else
#define HAVE_SYS_STAT_H
#define HAVE__STAT
#define HAVE_STAT
#define HAVE_STDLIB_H
#define HAVE_TIME_H
#define HAVE_FCNTL_H
#include <io.h>
#include <direct.h>
#endif
#include <libxml/xmlversion.h>
#ifndef ICONV_CONST
#define ICONV_CONST const
#endif
#ifdef NEED_SOCKETS
#include <wsockcompat.h>
#endif
/*
* Windows platforms may define except
*/
#undef except
#define HAVE_ISINF
#define HAVE_ISNAN
#include <math.h>
#if defined(_MSC_VER) || defined(__BORLANDC__)
/* MS C-runtime has functions which can be used in order to determine if
a given floating-point variable contains NaN, (+-)INF. These are
preferred, because floating-point technology is considered propriatary
by MS and we can assume that their functions know more about their
oddities than we do. */
#include <float.h>
/* Bjorn Reese figured a quite nice construct for isinf() using the _fpclass
function. */
#ifndef isinf
#define isinf(d) ((_fpclass(d) == _FPCLASS_PINF) ? 1 \
: ((_fpclass(d) == _FPCLASS_NINF) ? -1 : 0))
#endif
/* _isnan(x) returns nonzero if (x == NaN) and zero otherwise. */
#ifndef isnan
#define isnan(d) (_isnan(d))
#endif
#else
/* _MSC_VER */
#ifndef isinf
static
int
isinf
(
double
d
)
{
int
expon
=
0
;
double
val
=
frexp
(
d
,
&
expon
);
if
(
expon
==
1025
)
{
if
(
val
==
0
.
5
)
{
return
1
;
}
else
if
(
val
==
-
0
.
5
)
{
return
-
1
;
}
else
{
return
0
;
}
}
else
{
return
0
;
}
}
#endif
#ifndef isnan
static
int
isnan
(
double
d
)
{
int
expon
=
0
;
double
val
=
frexp
(
d
,
&
expon
);
if
(
expon
==
1025
)
{
if
(
val
==
0
.
5
)
{
return
0
;
}
else
if
(
val
==
-
0
.
5
)
{
return
0
;
}
else
{
return
1
;
}
}
else
{
return
0
;
}
}
#endif
#endif
/* _MSC_VER */
#if defined(_MSC_VER)
#define mkdir(p,m) _mkdir(p)
//#define snprintf _snprintf
#if _MSC_VER < 1500
#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
#endif
#elif defined(__MINGW32__)
#define mkdir(p,m) _mkdir(p)
#endif
/* Threading API to use should be specified here for compatibility reasons.
This is however best specified on the compiler's command-line. */
#if defined(LIBXML_THREAD_ENABLED)
#if !defined(HAVE_PTHREAD_H) && !defined(HAVE_WIN32_THREADS) && !defined(_WIN32_WCE)
#define HAVE_WIN32_THREADS
#endif
#endif
/* Some third-party libraries far from our control assume the following
is defined, which it is not if we don't include windows.h. */
#if !defined(FALSE)
#define FALSE 0
#endif
#if !defined(TRUE)
#define TRUE (!(FALSE))
#endif
#endif
/* __LIBXML_WIN32_CONFIG__ */
submodules/build/xml2/windows10/xml2/install_headers.bat
0 → 100644
View file @
842c7b7d
SET
curdir
=
%CD%
SET
incdir
=
..\..\..\..\libxml2\include\libxml
SET
installdir
=
%
1
\libxml
Xcopy
/I /Y
%incdir%
\
*
.h
%installdir%
\
Xcopy
/I /Y
xmlversion
.h
%installdir%
\
submodules/build/xml2/windows10/xml2/libxml2_port.h
0 → 100644
View file @
842c7b7d
#ifndef LIBXML2_PORT_H
#define LIBXML2_PORT_H
#if 0
#define CreateMutex(a, b, c) CreateMutexExW(a, c, ((b) ? CREATE_MUTEX_INITIAL_OWNER : 0), 0)
#endif
#define GetVersionEx(osvi) (((osvi)->dwPlatformId = 0) != 0)
#if 0
#define InitializeCriticalSection(cs) InitializeCriticalSectionEx(cs, 0, 0)
#define WaitForSingleObject(hHandle, dwMilliseconds) WaitForSingleObjectEx(hHandle, dwMilliseconds, 0)
#define Sleep(ms) { \
HANDLE sleepEvent = CreateEventEx(NULL, NULL, CREATE_EVENT_MANUAL_RESET, EVENT_ALL_ACCESS); \
if (!sleepEvent) return; \
WaitForSingleObjectEx(sleepEvent, ms, FALSE); \
}
#endif
#endif
/* LIBXML2_PORT_H */
submodules/build/xml2/windows10/xml2/xml2.sln
0 → 100644
View file @
842c7b7d
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.22823.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xml2", "xml2.vcxproj", "{2B04DE79-4D33-4405-AC01-C89E0593A71D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Debug|ARM.ActiveCfg = Debug|ARM
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Debug|ARM.Build.0 = Debug|ARM
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Debug|x64.ActiveCfg = Debug|x64
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Debug|x64.Build.0 = Debug|x64
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Debug|x86.ActiveCfg = Debug|Win32
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Debug|x86.Build.0 = Debug|Win32
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Release|ARM.ActiveCfg = Release|ARM
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Release|ARM.Build.0 = Release|ARM
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Release|x64.ActiveCfg = Release|x64
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Release|x64.Build.0 = Release|x64
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Release|x86.ActiveCfg = Release|Win32
{2B04DE79-4D33-4405-AC01-C89E0593A71D}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
submodules/build/xml2/windows10/xml2/xml2.vcxproj
0 → 100644
View file @
842c7b7d
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"Build"
ToolsVersion=
"14.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ItemGroup
Label=
"ProjectConfigurations"
>
<ProjectConfiguration
Include=
"Debug|ARM"
>
<Configuration>
Debug
</Configuration>
<Platform>
ARM
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Debug|Win32"
>
<Configuration>
Debug
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Debug|x64"
>
<Configuration>
Debug
</Configuration>
<Platform>
x64
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|ARM"
>
<Configuration>
Release
</Configuration>
<Platform>
ARM
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|Win32"
>
<Configuration>
Release
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|x64"
>
<Configuration>
Release
</Configuration>
<Platform>
x64
</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"..\..\..\..\libxml2\c14n.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\catalog.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\chvalid.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\debugXML.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\dict.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\DOCBparser.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\encoding.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\entities.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\error.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\globals.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\hash.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\HTMLparser.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\HTMLtree.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\legacy.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\list.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\nanoftp.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\nanohttp.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\parser.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\parserInternals.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\pattern.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\relaxng.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\SAX.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\SAX2.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\schematron.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\threads.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\tree.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\uri.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\valid.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xinclude.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xlink.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlcatalog.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlIO.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlmemory.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlmodule.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlreader.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlregexp.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlsave.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlschemas.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlschemastypes.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlstring.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlunicode.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xmlwriter.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xpath.c"
/>
<ClCompile
Include=
"..\..\..\..\libxml2\xpointer.c"
/>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"..\..\..\..\libxml2\elfgcchack.h"
/>
<ClInclude
Include=
"..\..\..\..\libxml2\libxml.h"
/>
<ClInclude
Include=
"config.h"
/>
<ClInclude
Include=
"libxml2_port.h"
/>
<ClInclude
Include=
"xmlversion.h"
/>
</ItemGroup>
<PropertyGroup
Label=
"Globals"
>
<ProjectGuid>
{2b04de79-4d33-4405-ac01-c89e0593a71d}
</ProjectGuid>
<Keyword>
DynamicLibrary
</Keyword>
<ProjectName>
xml2
</ProjectName>
<RootNamespace>
xml2
</RootNamespace>
<DefaultLanguage>
en-US
</DefaultLanguage>
<MinimumVisualStudioVersion>
14.0
</MinimumVisualStudioVersion>
<AppContainerApplication>
true
</AppContainerApplication>
<ApplicationType>
Windows Store
</ApplicationType>
<ApplicationTypeRevision>
8.2
</ApplicationTypeRevision>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.Default.props"
/>
<PropertyGroup
Condition=
"'$(Configuration)'=='Debug'"
Label=
"Configuration"
>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<UseDebugLibraries>
true
</UseDebugLibraries>
<PlatformToolset>
v140
</PlatformToolset>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)'=='Release'"
Label=
"Configuration"
>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<UseDebugLibraries>
false
</UseDebugLibraries>
<WholeProgramOptimization>
true
</WholeProgramOptimization>
<PlatformToolset>
v140
</PlatformToolset>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.props"
/>
<ImportGroup
Label=
"ExtensionSettings"
>
</ImportGroup>
<ImportGroup
Label=
"Shared"
>
</ImportGroup>
<ImportGroup
Label=
"PropertySheets"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
</ImportGroup>
<PropertyGroup
Label=
"UserMacros"
/>
<PropertyGroup>
<GenerateManifest>
false
</GenerateManifest>
<IgnoreImportLibrary>
false
</IgnoreImportLibrary>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<PrecompiledHeader>
NotUsing
</PrecompiledHeader>
<CompileAsWinRT>
false
</CompileAsWinRT>
<ForcedIncludeFiles>
$(ProjectDir)libxml2_port.h
</ForcedIncludeFiles>
<AdditionalIncludeDirectories>
$(SolutionDir)$(Platform)\$(Configuration)\include;$(ProjectDir)..\..\..\..\libxml2\include;%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<PreprocessorDefinitions>
HAVE_WIN32_THREADS;HAVE_COMPILER_TLS;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>
Console
</SubSystem>
<IgnoreAllDefaultLibraries>
false
</IgnoreAllDefaultLibraries>
<GenerateWindowsMetadata>
false
</GenerateWindowsMetadata>
</Link>
<PreBuildEvent>
<Command>
install_headers.bat $(SolutionDir)$(Platform)\$(Configuration)\include
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<ImportGroup
Label=
"ExtensionTargets"
>
</ImportGroup>
</Project>
\ No newline at end of file
submodules/build/xml2/windows10/xml2/xmlversion.h
0 → 100644
View file @
842c7b7d
/*
* Summary: compile-time version informations
* Description: compile-time version informations for the XML library
*
* Copy: See Copyright for the status of this software.
*
* Author: Daniel Veillard
*/
#ifndef __XML_VERSION_H__
#define __XML_VERSION_H__
#include <libxml/xmlexports.h>
#ifdef __cplusplus
extern
"C"
{
#endif
/*
* use those to be sure nothing nasty will happen if
* your library and includes mismatch
*/
#ifndef LIBXML2_COMPILING_MSCCDEF
XMLPUBFUN
void
XMLCALL
xmlCheckVersion
(
int
version
);
#endif
/* LIBXML2_COMPILING_MSCCDEF */
/**
* LIBXML_DOTTED_VERSION:
*
* the version string like "1.2.3"
*/
#define LIBXML_DOTTED_VERSION "2.8.0"
/**
* LIBXML_VERSION:
*
* the version number: 1.2.3 value is 10203
*/
#define LIBXML_VERSION 20800
/**
* LIBXML_VERSION_STRING:
*
* the version number string, 1.2.3 value is "10203"
*/
#define LIBXML_VERSION_STRING "20800"
/**
* LIBXML_VERSION_EXTRA:
*
* extra version information, used to show a CVS compilation
*/
#define LIBXML_VERSION_EXTRA ""
/**
* LIBXML_TEST_VERSION:
*
* Macro to check that the libxml version in use is compatible with
* the version the software has been compiled against
*/
#define LIBXML_TEST_VERSION xmlCheckVersion(20800);
#ifndef VMS
#if 0
/**
* WITH_TRIO:
*
* defined if the trio support need to be configured in
*/
#define WITH_TRIO
#else
/**
* WITHOUT_TRIO:
*
* defined if the trio support should not be configured in
*/
#define WITHOUT_TRIO
#endif
#else
/* VMS */
/**
* WITH_TRIO:
*
* defined if the trio support need to be configured in
*/
#define WITH_TRIO 1
#endif
/* VMS */
/**
* LIBXML_THREAD_ENABLED:
*
* Whether the thread support is configured in
*/
#if 1
#if defined(_REENTRANT) || defined(__MT__) || \
(defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE - 0 >= 199506L))
#define LIBXML_THREAD_ENABLED
#endif
#endif
/**
* LIBXML_TREE_ENABLED:
*
* Whether the DOM like tree manipulation API support is configured in
*/
#if 1
#define LIBXML_TREE_ENABLED
#endif
/**
* LIBXML_OUTPUT_ENABLED:
*
* Whether the serialization/saving support is configured in
*/
#if 1
#define LIBXML_OUTPUT_ENABLED
#endif
/**
* LIBXML_PUSH_ENABLED:
*
* Whether the push parsing interfaces are configured in
*/
#if 1
#define LIBXML_PUSH_ENABLED
#endif
/**
* LIBXML_READER_ENABLED:
*
* Whether the xmlReader parsing interface is configured in
*/
#if 1
#define LIBXML_READER_ENABLED
#endif
/**
* LIBXML_PATTERN_ENABLED:
*
* Whether the xmlPattern node selection interface is configured in
*/
#if 1
#define LIBXML_PATTERN_ENABLED
#endif
/**
* LIBXML_WRITER_ENABLED:
*
* Whether the xmlWriter saving interface is configured in
*/
#if 1
#define LIBXML_WRITER_ENABLED
#endif
/**
* LIBXML_SAX1_ENABLED:
*
* Whether the older SAX1 interface is configured in
*/
#if 1
#define LIBXML_SAX1_ENABLED
#endif
/**
* LIBXML_FTP_ENABLED:
*
* Whether the FTP support is configured in
*/
#if 0
#define LIBXML_FTP_ENABLED
#endif
/**
* LIBXML_HTTP_ENABLED:
*
* Whether the HTTP support is configured in
*/
#if 0
#define LIBXML_HTTP_ENABLED
#endif
/**
* LIBXML_VALID_ENABLED:
*
* Whether the DTD validation support is configured in
*/
#if 1
#define LIBXML_VALID_ENABLED
#endif
/**
* LIBXML_HTML_ENABLED:
*
* Whether the HTML support is configured in
*/
#if 1
#define LIBXML_HTML_ENABLED
#endif
/**
* LIBXML_LEGACY_ENABLED:
*
* Whether the deprecated APIs are compiled in for compatibility
*/
#if 1
#define LIBXML_LEGACY_ENABLED
#endif
/**
* LIBXML_C14N_ENABLED:
*
* Whether the Canonicalization support is configured in
*/
#if 1
#define LIBXML_C14N_ENABLED
#endif
/**
* LIBXML_CATALOG_ENABLED:
*
* Whether the Catalog support is configured in
*/
#if 0
#define LIBXML_CATALOG_ENABLED
#endif
/**
* LIBXML_DOCB_ENABLED:
*
* Whether the SGML Docbook support is configured in
*/
#if 1
#define LIBXML_DOCB_ENABLED
#endif
/**
* LIBXML_XPATH_ENABLED:
*
* Whether XPath is configured in
*/
#if 1
#define LIBXML_XPATH_ENABLED
#endif
/**
* LIBXML_XPTR_ENABLED:
*
* Whether XPointer is configured in
*/
#if 1
#define LIBXML_XPTR_ENABLED
#endif
/**
* LIBXML_XINCLUDE_ENABLED:
*
* Whether XInclude is configured in
*/
#if 1
#define LIBXML_XINCLUDE_ENABLED
#endif
/**
* LIBXML_ICONV_ENABLED:
*
* Whether iconv support is available
*/
#if 0
#define LIBXML_ICONV_ENABLED
#endif
/**
* LIBXML_ICU_ENABLED:
*
* Whether icu support is available
*/
#if 0
#define LIBXML_ICU_ENABLED
#endif
/**
* LIBXML_ISO8859X_ENABLED: