forked from enlightenment/efl
* src/lib/dlfcn/dlfcn.c:
fix warnings * src/lib/evil_fnmatch_list_of_states.c: fix vc++ warning * win32/MANIFEST.txt: * win32/README.txt: * win32/start.bat: * win32/vs9/evil.sln: * win32/vs9/libdlfcn.vcproj: * win32/vs9/libevil.vcproj: * win32/vs9/test/out/update_deps.bat: * win32/vs9/test/start.bat: * win32/vs9/test/test.sln: * win32/vs9/test/test.vcproj: * win32/vs9/test/test_fnmatch.cpp: * win32/vs9 (added): * win32/vs9/test (added): * win32/vs9/test/test_fnmatch.cpp (added): * win32/vs9/test/test.vcproj (added): * win32/vs9/test/start.bat (added): * win32/vs9/test/out (added): * win32/vs9/test/out/update_deps.bat (added): * win32/vs9/test/test.sln (added): * win32/vs9/libdlfcn.vcproj (added): * win32/vs9/libevil.vcproj (added): * win32/vs9/evil.sln (added): * win32/start.bat (added): * win32/vs8/libmman.vcproj (deleted): * win32/vs8/start.bat (deleted): * win32/set_env.bat (deleted): update the Visual Studio environment. Now, there is only one script to launch (start.bat) in win32/. It detects automatically the latest Visual Studio environment which is installed and launch the solution. Currently supported VS are 2005 and 2008. SVN revision: 42029
This commit is contained in:
parent
654330e183
commit
bb6e659965
|
@ -1,3 +1,42 @@
|
||||||
|
2009-08-27 Vincent Torri <doursse at users dot sf dot net>
|
||||||
|
|
||||||
|
* src/lib/dlfcn/dlfcn.c:
|
||||||
|
fix warnings
|
||||||
|
|
||||||
|
* src/lib/evil_fnmatch_list_of_states.c:
|
||||||
|
fix vc++ warning
|
||||||
|
|
||||||
|
* win32/MANIFEST.txt:
|
||||||
|
* win32/README.txt:
|
||||||
|
* win32/start.bat:
|
||||||
|
* win32/vs9/evil.sln:
|
||||||
|
* win32/vs9/libdlfcn.vcproj:
|
||||||
|
* win32/vs9/libevil.vcproj:
|
||||||
|
* win32/vs9/test/out/update_deps.bat:
|
||||||
|
* win32/vs9/test/start.bat:
|
||||||
|
* win32/vs9/test/test.sln:
|
||||||
|
* win32/vs9/test/test.vcproj:
|
||||||
|
* win32/vs9/test/test_fnmatch.cpp:
|
||||||
|
* win32/vs9 (added):
|
||||||
|
* win32/vs9/test (added):
|
||||||
|
* win32/vs9/test/test_fnmatch.cpp (added):
|
||||||
|
* win32/vs9/test/test.vcproj (added):
|
||||||
|
* win32/vs9/test/start.bat (added):
|
||||||
|
* win32/vs9/test/out (added):
|
||||||
|
* win32/vs9/test/out/update_deps.bat (added):
|
||||||
|
* win32/vs9/test/test.sln (added):
|
||||||
|
* win32/vs9/libdlfcn.vcproj (added):
|
||||||
|
* win32/vs9/libevil.vcproj (added):
|
||||||
|
* win32/vs9/evil.sln (added):
|
||||||
|
* win32/start.bat (added):
|
||||||
|
* win32/vs8/libmman.vcproj (deleted):
|
||||||
|
* win32/vs8/start.bat (deleted):
|
||||||
|
* win32/set_env.bat (deleted):
|
||||||
|
update the Visual Studio environment. Now, there is only one
|
||||||
|
script to launch (start.bat) in win32/. It detects automatically
|
||||||
|
the latest Visual Studio environment which is installed and launch
|
||||||
|
the solution. Currently supported VS are 2005 and 2008.
|
||||||
|
|
||||||
2009-06-13 Lars Munch <lars at segv dot dk>
|
2009-06-13 Lars Munch <lars at segv dot dk>
|
||||||
|
|
||||||
* src/lib/evil_main.c:
|
* src/lib/evil_main.c:
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#if defined(__CEGCC__) || defined(__MINGW32CE__)
|
#if defined(__CEGCC__) || defined(__MINGW32CE__) || defined(_MSC_VER)
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
#endif /* __CEGCC__ || __MINGW32CE__ */
|
#endif /* __CEGCC__ || __MINGW32CE__ || _MSC_VER */
|
||||||
|
|
||||||
#include "../Evil.h"
|
#include "../Evil.h"
|
||||||
|
|
||||||
|
@ -20,8 +20,8 @@ static void
|
||||||
get_last_error(char *desc)
|
get_last_error(char *desc)
|
||||||
{
|
{
|
||||||
char *str;
|
char *str;
|
||||||
int l1;
|
size_t l1;
|
||||||
int l2;
|
size_t l2;
|
||||||
|
|
||||||
str = evil_last_error_get();
|
str = evil_last_error_get();
|
||||||
|
|
||||||
|
@ -57,9 +57,9 @@ dlopen(const char* path, int mode __UNUSED__)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char *new_path;
|
char *new_path;
|
||||||
int l;
|
size_t l;
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
/* according to MSDN, we must change the slash to backslash */
|
/* according to MSDN, we must change the slash to backslash */
|
||||||
l = strlen(path);
|
l = strlen(path);
|
||||||
|
@ -137,11 +137,11 @@ dlsym(void *handle, const char *symbol)
|
||||||
int
|
int
|
||||||
dladdr (const void *addr __UNUSED__, Dl_info *info)
|
dladdr (const void *addr __UNUSED__, Dl_info *info)
|
||||||
{
|
{
|
||||||
TCHAR tpath[PATH_MAX];
|
TCHAR tpath[PATH_MAX];
|
||||||
char *path;
|
char *path;
|
||||||
char *tmp;
|
char *tmp;
|
||||||
int length;
|
size_t length;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (!info)
|
if (!info)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -22,7 +22,8 @@ fnmatch_list_of_states_alloc(size_t n,
|
||||||
unsigned char *has;
|
unsigned char *has;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
if (! (l = malloc(n * struct_size)))
|
l = malloc(n * struct_size);
|
||||||
|
if (!l)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
states = (unsigned char *) (l + n);
|
states = (unsigned char *) (l + n);
|
||||||
|
|
|
@ -14,12 +14,15 @@
|
||||||
fnmatch_private.h - fnmatch private header
|
fnmatch_private.h - fnmatch private header
|
||||||
|
|
||||||
vs8 - Visual Studio 8 project files
|
vs8 - Visual Studio 8 project files
|
||||||
start.bat - batch script to start work with the solution
|
|
||||||
evil.sln - Evil MSVC solution
|
evil.sln - Evil MSVC solution
|
||||||
libdlfcn.vcproj - libdlfcn project
|
libdlfcn.vcproj - libdlfcn project
|
||||||
libevil.vcproj - libevil project
|
libevil.vcproj - libevil project
|
||||||
libmman.vcproj - libmman project
|
|
||||||
|
|
||||||
set_env.bat - common environment startup
|
vs9 - Visual Studio 9 project files
|
||||||
|
evil.sln - Evil MSVC solution
|
||||||
|
libdlfcn.vcproj - libdlfcn project
|
||||||
|
libevil.vcproj - libevil project
|
||||||
|
|
||||||
|
start.bat - batch script to start work with the solution
|
||||||
MANIFEST.txt - this file
|
MANIFEST.txt - this file
|
||||||
README.txt - about this folder
|
README.txt - about this folder
|
||||||
|
|
|
@ -4,10 +4,12 @@
|
||||||
Important:
|
Important:
|
||||||
|
|
||||||
Do not launch manually any solutions or projects in the folder, to start
|
Do not launch manually any solutions or projects in the folder, to start
|
||||||
a solution run proper start.bat script, it will setup environment for
|
a solution run the start.bat script, it will setup environment for
|
||||||
projects and will check system requirements.
|
projects and will check system requirements. start.bat will detect
|
||||||
|
automatically the version of Visual Studio which is installed. It
|
||||||
|
currently supports Visual Studio 2005 and 2008.
|
||||||
|
|
||||||
Before start make sure that set_env.bat:EXT_DIR variable points to proper
|
Before start make sure that the EXT_DIR variable points to proper
|
||||||
extern directory. Extern directory layout and content (may be different, but
|
extern directory. Extern directory layout and content (may be different, but
|
||||||
this is guaranteed to be enough):
|
this is guaranteed to be enough):
|
||||||
|
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
@echo off
|
|
||||||
|
|
||||||
rem Set external libraries directory.
|
|
||||||
set EXT_DIR=%cd%\..\..\..\extern
|
|
||||||
|
|
||||||
if not exist %EXT_DIR% (
|
|
||||||
set EXT_DIR=
|
|
||||||
echo ERROR: External libs dir is not set.
|
|
||||||
pause
|
|
||||||
goto END
|
|
||||||
)
|
|
||||||
|
|
||||||
rem Add installation directory pathes.
|
|
||||||
set INCLUDE=%EXT_DIR%\include;%INCLUDE%
|
|
||||||
set LIB=%EXT_DIR%\lib;%LIB%
|
|
||||||
|
|
||||||
set INCLUDE=%cd%\common;%cd%\..\src\lib;%INCLUDE%
|
|
||||||
|
|
||||||
:END
|
|
|
@ -0,0 +1,63 @@
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
rem Set external libraries directory.
|
||||||
|
set EXT_DIR=%cd%\..\..\..\extern
|
||||||
|
|
||||||
|
if not exist %EXT_DIR% (
|
||||||
|
set EXT_DIR=
|
||||||
|
echo ERROR: External libs dir is not set.
|
||||||
|
pause
|
||||||
|
goto END
|
||||||
|
)
|
||||||
|
|
||||||
|
rem Setup common Win32 environment variables
|
||||||
|
|
||||||
|
rem Add installation directory pathes.
|
||||||
|
set INCLUDE=%EXT_DIR%\include;%INCLUDE%
|
||||||
|
set LIB=%EXT_DIR%\lib;%LIB%
|
||||||
|
|
||||||
|
set INCLUDE=%cd%\common;%cd%\..\src\lib;%INCLUDE%
|
||||||
|
|
||||||
|
rem Check for basic requirements for Visual Studio 2008
|
||||||
|
if "%VS90COMNTOOLS%" == "" (
|
||||||
|
echo ERROR: Microsoft Visual Studio 2008 is not installed.
|
||||||
|
pause
|
||||||
|
goto NOVS9
|
||||||
|
)
|
||||||
|
|
||||||
|
set SolutionDirectory=%cd%\vs9
|
||||||
|
set DebugOutputDirectory=%SolutionDirectory%\out
|
||||||
|
set ReleaseOutputDirectory=%SolutionDirectory%\out
|
||||||
|
set DebugLibraryDirectory=%SolutionDirectory%\out
|
||||||
|
set ReleaseLibraryDirectory=%SolutionDirectory%\out
|
||||||
|
set TemporaryDirectory=%SolutionDirectory%\temp
|
||||||
|
|
||||||
|
rem Setting environment for using Microsoft Visual Studio 2008 x86 tools.
|
||||||
|
call "%VS90COMNTOOLS%vsvars32.bat"
|
||||||
|
|
||||||
|
vs9\evil.sln
|
||||||
|
|
||||||
|
goto END
|
||||||
|
|
||||||
|
:NOVS9
|
||||||
|
|
||||||
|
rem Check for basic requirements for Visual Studio 2005
|
||||||
|
if "%VS80COMNTOOLS%" == "" (
|
||||||
|
echo ERROR: Microsoft Visual Studio 2005 is not installed.
|
||||||
|
pause
|
||||||
|
goto END
|
||||||
|
)
|
||||||
|
|
||||||
|
set SolutionDirectory=%cd%\vs8
|
||||||
|
set DebugOutputDirectory=%SolutionDirectory%\out
|
||||||
|
set ReleaseOutputDirectory=%SolutionDirectory%\out
|
||||||
|
set DebugLibraryDirectory=%SolutionDirectory%\out
|
||||||
|
set ReleaseLibraryDirectory=%SolutionDirectory%\out
|
||||||
|
set TemporaryDirectory=%SolutionDirectory%\temp
|
||||||
|
|
||||||
|
rem Setting environment for using Microsoft Visual Studio 2005 x86 tools.
|
||||||
|
call "%VS80COMNTOOLS%vsvars32.bat"
|
||||||
|
|
||||||
|
vs8\evil.sln
|
||||||
|
|
||||||
|
:END
|
|
@ -0,0 +1,29 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||||
|
# Visual C++ Express 2008
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libevil", "libevil.vcproj", "{689B4F2B-666D-439F-9BF3-1203D813DE3F}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libdlfcn", "libdlfcn.vcproj", "{2DAB1902-38E3-4F58-8403-C1BC7C077E1F}"
|
||||||
|
ProjectSection(ProjectDependencies) = postProject
|
||||||
|
{689B4F2B-666D-439F-9BF3-1203D813DE3F} = {689B4F2B-666D-439F-9BF3-1203D813DE3F}
|
||||||
|
EndProjectSection
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{689B4F2B-666D-439F-9BF3-1203D813DE3F}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{689B4F2B-666D-439F-9BF3-1203D813DE3F}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{689B4F2B-666D-439F-9BF3-1203D813DE3F}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{689B4F2B-666D-439F-9BF3-1203D813DE3F}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{2DAB1902-38E3-4F58-8403-C1BC7C077E1F}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{2DAB1902-38E3-4F58-8403-C1BC7C077E1F}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{2DAB1902-38E3-4F58-8403-C1BC7C077E1F}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{2DAB1902-38E3-4F58-8403-C1BC7C077E1F}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
|
@ -1,205 +1,200 @@
|
||||||
<?xml version="1.0" encoding="windows-1251"?>
|
<?xml version="1.0" encoding="windows-1251"?>
|
||||||
<VisualStudioProject
|
<VisualStudioProject
|
||||||
ProjectType="Visual C++"
|
ProjectType="Visual C++"
|
||||||
Version="8,00"
|
Version="9,00"
|
||||||
Name="libmman"
|
Name="libdlfcn"
|
||||||
ProjectGUID="{799E26AA-26BC-4C21-B65F-0DF8F02E8F5F}"
|
ProjectGUID="{2DAB1902-38E3-4F58-8403-C1BC7C077E1F}"
|
||||||
RootNamespace="libmman"
|
RootNamespace="libdlfcn"
|
||||||
Keyword="Win32Proj"
|
Keyword="Win32Proj"
|
||||||
>
|
TargetFrameworkVersion="131072"
|
||||||
<Platforms>
|
>
|
||||||
<Platform
|
<Platforms>
|
||||||
Name="Win32"
|
<Platform
|
||||||
/>
|
Name="Win32"
|
||||||
</Platforms>
|
/>
|
||||||
<ToolFiles>
|
</Platforms>
|
||||||
</ToolFiles>
|
<ToolFiles>
|
||||||
<Configurations>
|
</ToolFiles>
|
||||||
<Configuration
|
<Configurations>
|
||||||
Name="Debug|Win32"
|
<Configuration
|
||||||
OutputDirectory="$(DebugOutputDirectory)"
|
Name="Debug|Win32"
|
||||||
IntermediateDirectory="$(TemporaryDirectory)\$(TargetName)\$(ConfigurationName)"
|
OutputDirectory="$(DebugOutputDirectory)"
|
||||||
ConfigurationType="2"
|
IntermediateDirectory="$(TemporaryDirectory)\$(TargetName)\$(ConfigurationName)"
|
||||||
CharacterSet="0"
|
ConfigurationType="2"
|
||||||
>
|
CharacterSet="0"
|
||||||
<Tool
|
>
|
||||||
Name="VCPreBuildEventTool"
|
<Tool
|
||||||
/>
|
Name="VCPreBuildEventTool"
|
||||||
<Tool
|
/>
|
||||||
Name="VCCustomBuildTool"
|
<Tool
|
||||||
/>
|
Name="VCCustomBuildTool"
|
||||||
<Tool
|
/>
|
||||||
Name="VCXMLDataGeneratorTool"
|
<Tool
|
||||||
/>
|
Name="VCXMLDataGeneratorTool"
|
||||||
<Tool
|
/>
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
<Tool
|
||||||
/>
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
<Tool
|
/>
|
||||||
Name="VCMIDLTool"
|
<Tool
|
||||||
/>
|
Name="VCMIDLTool"
|
||||||
<Tool
|
/>
|
||||||
Name="VCCLCompilerTool"
|
<Tool
|
||||||
Optimization="0"
|
Name="VCCLCompilerTool"
|
||||||
AdditionalIncludeDirectories="$(INCLUDE)"
|
Optimization="0"
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;EFL_EVIL_MMAN_BUILD;DLL_EXPORT;__CRT_INLINE=__inline"
|
AdditionalIncludeDirectories="$(INCLUDE)"
|
||||||
MinimalRebuild="true"
|
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;EFL_EVIL_DLFCN_BUILD;DLL_EXPORT;_POSIX_;__UNUSED__="
|
||||||
BasicRuntimeChecks="3"
|
MinimalRebuild="true"
|
||||||
RuntimeLibrary="3"
|
BasicRuntimeChecks="3"
|
||||||
UsePrecompiledHeader="0"
|
RuntimeLibrary="3"
|
||||||
WarningLevel="3"
|
UsePrecompiledHeader="0"
|
||||||
Detect64BitPortabilityProblems="true"
|
WarningLevel="3"
|
||||||
DebugInformationFormat="4"
|
Detect64BitPortabilityProblems="true"
|
||||||
CompileAs="0"
|
DebugInformationFormat="4"
|
||||||
/>
|
CompileAs="0"
|
||||||
<Tool
|
/>
|
||||||
Name="VCManagedResourceCompilerTool"
|
<Tool
|
||||||
/>
|
Name="VCManagedResourceCompilerTool"
|
||||||
<Tool
|
/>
|
||||||
Name="VCResourceCompilerTool"
|
<Tool
|
||||||
/>
|
Name="VCResourceCompilerTool"
|
||||||
<Tool
|
/>
|
||||||
Name="VCPreLinkEventTool"
|
<Tool
|
||||||
/>
|
Name="VCPreLinkEventTool"
|
||||||
<Tool
|
/>
|
||||||
Name="VCLinkerTool"
|
<Tool
|
||||||
AdditionalDependencies="libevil.lib"
|
Name="VCLinkerTool"
|
||||||
OutputFile="$(OutDir)\libmman.dll"
|
AdditionalDependencies="libevil.lib"
|
||||||
AdditionalLibraryDirectories="$(LIB); $(DebugLibraryDirectory)"
|
OutputFile="$(OutDir)\libdl.dll"
|
||||||
/>
|
AdditionalLibraryDirectories="$(LIB); $(DebugLibraryDirectory)"
|
||||||
<Tool
|
RandomizedBaseAddress="1"
|
||||||
Name="VCALinkTool"
|
DataExecutionPrevention="0"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCManifestTool"
|
Name="VCALinkTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCXDCMakeTool"
|
Name="VCManifestTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCBscMakeTool"
|
Name="VCXDCMakeTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCFxCopTool"
|
Name="VCBscMakeTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCAppVerifierTool"
|
Name="VCFxCopTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCWebDeploymentTool"
|
Name="VCAppVerifierTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPostBuildEventTool"
|
Name="VCPostBuildEventTool"
|
||||||
/>
|
/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Release|Win32"
|
Name="Release|Win32"
|
||||||
OutputDirectory="$(ReleaseOutputDirectory)"
|
OutputDirectory="$(ReleaseOutputDirectory)"
|
||||||
IntermediateDirectory="$(TemporaryDirectory)\$(TargetName)\$(ConfigurationName)"
|
IntermediateDirectory="$(TemporaryDirectory)\$(TargetName)\$(ConfigurationName)"
|
||||||
ConfigurationType="2"
|
ConfigurationType="2"
|
||||||
CharacterSet="0"
|
CharacterSet="0"
|
||||||
WholeProgramOptimization="1"
|
WholeProgramOptimization="1"
|
||||||
>
|
>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPreBuildEventTool"
|
Name="VCPreBuildEventTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCustomBuildTool"
|
Name="VCCustomBuildTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCXMLDataGeneratorTool"
|
Name="VCXMLDataGeneratorTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCMIDLTool"
|
Name="VCMIDLTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
AdditionalIncludeDirectories="$(INCLUDE)"
|
AdditionalIncludeDirectories="$(INCLUDE)"
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;EFL_EVIL_MMAN_BUILD;DLL_EXPORT;__CRT_INLINE=__inline"
|
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;EFL_EVIL_DLFCN_BUILD;DLL_EXPORT;_POSIX_;__UNUSED__="
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
Detect64BitPortabilityProblems="true"
|
Detect64BitPortabilityProblems="true"
|
||||||
DebugInformationFormat="3"
|
DebugInformationFormat="3"
|
||||||
CompileAs="0"
|
CompileAs="0"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCManagedResourceCompilerTool"
|
Name="VCManagedResourceCompilerTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCResourceCompilerTool"
|
Name="VCResourceCompilerTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPreLinkEventTool"
|
Name="VCPreLinkEventTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCLinkerTool"
|
Name="VCLinkerTool"
|
||||||
AdditionalDependencies="libevil.lib"
|
AdditionalDependencies="libevil.lib"
|
||||||
OutputFile="$(OutDir)\libmman.dll"
|
OutputFile="$(OutDir)\libdl.dll"
|
||||||
AdditionalLibraryDirectories="$(LIB); $(ReleaseLibraryDirectory)"
|
AdditionalLibraryDirectories="$(LIB); $(ReleaseLibraryDirectory)"
|
||||||
/>
|
RandomizedBaseAddress="1"
|
||||||
<Tool
|
DataExecutionPrevention="0"
|
||||||
Name="VCALinkTool"
|
/>
|
||||||
/>
|
<Tool
|
||||||
<Tool
|
Name="VCALinkTool"
|
||||||
Name="VCManifestTool"
|
/>
|
||||||
/>
|
<Tool
|
||||||
<Tool
|
Name="VCManifestTool"
|
||||||
Name="VCXDCMakeTool"
|
/>
|
||||||
/>
|
<Tool
|
||||||
<Tool
|
Name="VCXDCMakeTool"
|
||||||
Name="VCBscMakeTool"
|
/>
|
||||||
/>
|
<Tool
|
||||||
<Tool
|
Name="VCBscMakeTool"
|
||||||
Name="VCFxCopTool"
|
/>
|
||||||
/>
|
<Tool
|
||||||
<Tool
|
Name="VCFxCopTool"
|
||||||
Name="VCAppVerifierTool"
|
/>
|
||||||
/>
|
<Tool
|
||||||
<Tool
|
Name="VCAppVerifierTool"
|
||||||
Name="VCWebDeploymentTool"
|
/>
|
||||||
/>
|
<Tool
|
||||||
<Tool
|
Name="VCPostBuildEventTool"
|
||||||
Name="VCPostBuildEventTool"
|
/>
|
||||||
/>
|
</Configuration>
|
||||||
</Configuration>
|
</Configurations>
|
||||||
</Configurations>
|
<References>
|
||||||
<References>
|
</References>
|
||||||
</References>
|
<Files>
|
||||||
<Files>
|
<Filter
|
||||||
<Filter
|
Name="Source Files"
|
||||||
Name="Source Files"
|
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
>
|
||||||
>
|
<File
|
||||||
<File
|
RelativePath="..\..\src\lib\dlfcn\dlfcn.c"
|
||||||
RelativePath="..\..\src\lib\mman\mman.c"
|
>
|
||||||
>
|
</File>
|
||||||
</File>
|
</Filter>
|
||||||
</Filter>
|
<Filter
|
||||||
<Filter
|
Name="Header Files"
|
||||||
Name="Header Files"
|
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
>
|
||||||
>
|
<File
|
||||||
<Filter
|
RelativePath="..\..\src\lib\dlfcn\dlfcn.h"
|
||||||
Name="sys"
|
>
|
||||||
>
|
</File>
|
||||||
<File
|
</Filter>
|
||||||
RelativePath="..\..\src\lib\mman\sys\mman.h"
|
<Filter
|
||||||
>
|
Name="Resource Files"
|
||||||
</File>
|
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||||
</Filter>
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||||
</Filter>
|
>
|
||||||
<Filter
|
</Filter>
|
||||||
Name="Resource Files"
|
</Files>
|
||||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
<Globals>
|
||||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
</Globals>
|
||||||
>
|
</VisualStudioProject>
|
||||||
</Filter>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
|
@ -0,0 +1,338 @@
|
||||||
|
<?xml version="1.0" encoding="windows-1251"?>
|
||||||
|
<VisualStudioProject
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="9,00"
|
||||||
|
Name="libevil"
|
||||||
|
ProjectGUID="{689B4F2B-666D-439F-9BF3-1203D813DE3F}"
|
||||||
|
RootNamespace="libevil"
|
||||||
|
Keyword="Win32Proj"
|
||||||
|
TargetFrameworkVersion="131072"
|
||||||
|
>
|
||||||
|
<Platforms>
|
||||||
|
<Platform
|
||||||
|
Name="Win32"
|
||||||
|
/>
|
||||||
|
</Platforms>
|
||||||
|
<ToolFiles>
|
||||||
|
</ToolFiles>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
OutputDirectory="$(DebugOutputDirectory)"
|
||||||
|
IntermediateDirectory="$(TemporaryDirectory)\$(TargetName)\$(ConfigurationName)"
|
||||||
|
ConfigurationType="2"
|
||||||
|
CharacterSet="0"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories="$(INCLUDE)"
|
||||||
|
PreprocessorDefinitions="HAVE_ERRNO_H;SECURITY_WIN32;WIN32;_DEBUG;_WINDOWS;_USRDLL;EFL_EVIL_BUILD;DLL_EXPORT;snprintf=_snprintf_c;__CRT_INLINE=__inline;inline=__inline;__UNUSED__=;_CRT_SECURE_NO_WARNINGS"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="3"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="4"
|
||||||
|
CompileAs="0"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
IgnoreImportLibrary="false"
|
||||||
|
LinkLibraryDependencies="true"
|
||||||
|
AdditionalDependencies="wsock32.lib Secur32.lib"
|
||||||
|
OutputFile="$(OutDir)\libevil.dll"
|
||||||
|
LinkIncremental="2"
|
||||||
|
AdditionalLibraryDirectories="$(LIB); $(DebugLibraryDirectory)"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="2"
|
||||||
|
RandomizedBaseAddress="1"
|
||||||
|
DataExecutionPrevention="0"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
OutputDirectory="$(ReleaseOutputDirectory)"
|
||||||
|
IntermediateDirectory="$(TemporaryDirectory)\$(TargetName)\$(ConfigurationName)"
|
||||||
|
ConfigurationType="2"
|
||||||
|
CharacterSet="0"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalIncludeDirectories="$(INCLUDE)"
|
||||||
|
PreprocessorDefinitions="HAVE_ERRNO_H;SECURITY_WIN32;WIN32;NDEBUG;_WINDOWS;_USRDLL;EFL_EVIL_BUILD;DLL_EXPORT;snprintf=_snprintf_c;__CRT_INLINE=__inline;inline=__inline;__UNUSED__="
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="3"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
CompileAs="0"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
IgnoreImportLibrary="false"
|
||||||
|
LinkLibraryDependencies="true"
|
||||||
|
AdditionalDependencies="wsock32.lib Secur32.lib"
|
||||||
|
OutputFile="$(OutDir)\libevil.dll"
|
||||||
|
LinkIncremental="1"
|
||||||
|
AdditionalLibraryDirectories="$(LIB); $(ReleaseLibraryDirectory)"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="2"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
RandomizedBaseAddress="1"
|
||||||
|
DataExecutionPrevention="0"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
</References>
|
||||||
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="Source Files"
|
||||||
|
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||||
|
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_dirent.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_errno.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_fcntl.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_fnmatch.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_fnmatch_list_of_states.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_langinfo.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_link_xp.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_main.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_mman.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_pwd.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_stdio.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_stdlib.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_string.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_time.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_unistd.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_util.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_uuid.c"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Header Files"
|
||||||
|
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||||
|
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\dirent.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\errno.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\Evil.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_fcntl.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_fnmatch_private.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_langinfo.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_main.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_private.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_stdio.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_stdlib.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_string.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_unistd.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\evil_util.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\fnmatch.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\sys\mman.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\lib\pwd.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Resource Files"
|
||||||
|
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||||
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||||
|
>
|
||||||
|
</Filter>
|
||||||
|
</Files>
|
||||||
|
<Globals>
|
||||||
|
</Globals>
|
||||||
|
</VisualStudioProject>
|
|
@ -0,0 +1,15 @@
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
set Target=%cd%
|
||||||
|
set e17=%cd%\..\..\..\..\..\..
|
||||||
|
set Libs=%e17%\libs
|
||||||
|
set Proto=%e17%\proto
|
||||||
|
set Extern=%e17%\..\extern
|
||||||
|
|
||||||
|
|
||||||
|
rem Copy proto
|
||||||
|
cd %Proto%\evil\win32\vs8\out
|
||||||
|
xcopy libdl.dll %Target%\ /Q /Y
|
||||||
|
if exist libdl.pdb xcopy libdl.pdb %Target%\ /Q /Y
|
||||||
|
xcopy libevil.dll %Target%\ /Q /Y
|
||||||
|
if exist libevil.pdb xcopy libevil.pdb %Target%\ /Q /Y
|
|
@ -1,30 +1,35 @@
|
||||||
@echo off
|
@echo off
|
||||||
rem Warning: environment is set for Win32 platform.
|
rem Warning: environment is set for Win32 platform.
|
||||||
|
|
||||||
rem Setup common Win32 environment variables
|
set PROJECT_TYPE=vs8
|
||||||
|
|
||||||
pushd ..
|
pushd ..\..
|
||||||
call set_env.bat
|
call set_env.bat
|
||||||
popd
|
popd
|
||||||
|
|
||||||
set SolutionDirectory=%cd%
|
if "%EXT_DIR%" == "" goto END
|
||||||
set DebugOutputDirectory=%SolutionDirectory%\out
|
|
||||||
set ReleaseOutputDirectory=%SolutionDirectory%\out
|
rem Setup common Win32 environment variables
|
||||||
set DebugLibraryDirectory=%SolutionDirectory%\out
|
|
||||||
set ReleaseLibraryDirectory=%SolutionDirectory%\out
|
set SolutionDirectory=%cd%
|
||||||
set TemporaryDirectory=%SolutionDirectory%\temp
|
set DebugOutputDirectory=%SolutionDirectory%\out
|
||||||
|
set ReleaseOutputDirectory=%SolutionDirectory%\out
|
||||||
|
set DebugLibraryDirectory=%SolutionDirectory%\out
|
||||||
rem Check for basic requirements
|
set ReleaseLibraryDirectory=%SolutionDirectory%\out
|
||||||
if "%VS80COMNTOOLS%" == "" (
|
set TemporaryDirectory=%SolutionDirectory%\temp
|
||||||
echo ERROR: Microsoft Visual Studio 2005 is not installed.
|
|
||||||
pause
|
rem Check for basic requirements
|
||||||
goto END
|
if "%VS80COMNTOOLS%" == "" (
|
||||||
)
|
echo ERROR: Microsoft Visual Studio 2005 is not installed.
|
||||||
|
pause
|
||||||
rem Setting environment for using Microsoft Visual Studio 2005 x86 tools.
|
goto END
|
||||||
call "%VS80COMNTOOLS%vsvars32.bat"
|
)
|
||||||
|
|
||||||
evil.sln
|
rem Setting environment for using Microsoft Visual Studio 2005 x86 tools.
|
||||||
|
call "%VS80COMNTOOLS%vsvars32.bat"
|
||||||
|
|
||||||
|
set LIB=%SolutionDirectory%\..\out;%LIB%
|
||||||
|
|
||||||
|
test.sln
|
||||||
|
|
||||||
:END
|
:END
|
|
@ -0,0 +1,20 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||||
|
# Visual Studio 2005
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test", "test.vcproj", "{5C640EA7-6E65-46FF-A1FE-EB0955B0CC5A}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{5C640EA7-6E65-46FF-A1FE-EB0955B0CC5A}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{5C640EA7-6E65-46FF-A1FE-EB0955B0CC5A}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{5C640EA7-6E65-46FF-A1FE-EB0955B0CC5A}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{5C640EA7-6E65-46FF-A1FE-EB0955B0CC5A}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
|
@ -0,0 +1,205 @@
|
||||||
|
<?xml version="1.0" encoding="windows-1251"?>
|
||||||
|
<VisualStudioProject
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="8,00"
|
||||||
|
Name="test"
|
||||||
|
ProjectGUID="{5C640EA7-6E65-46FF-A1FE-EB0955B0CC5A}"
|
||||||
|
RootNamespace="test"
|
||||||
|
Keyword="Win32Proj"
|
||||||
|
>
|
||||||
|
<Platforms>
|
||||||
|
<Platform
|
||||||
|
Name="Win32"
|
||||||
|
/>
|
||||||
|
</Platforms>
|
||||||
|
<ToolFiles>
|
||||||
|
</ToolFiles>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
OutputDirectory="$(DebugOutputDirectory)"
|
||||||
|
IntermediateDirectory="$(TemporaryDirectory)\$(TargetName)\$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories="$(INCLUDE)"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_EVIL;__CRT_INLINE=__inline;snprintf=_snprintf_c;PACKAGE_DATA_DIR=;HAVE_EVAS_DIRECT3D;HAVE_EVAS_SOFTWARE_DDRAW;_USE_MATH_DEFINES"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="3"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="4"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="libevil.lib libdl.lib"
|
||||||
|
OutputFile="$(OutDir)\test.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
AdditionalLibraryDirectories="$(LIB); $(DebugLibraryDirectory)"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="1"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
OutputDirectory="$(ReleaseOutputDirectory)"
|
||||||
|
IntermediateDirectory="$(TemporaryDirectory)\$(TargetName)\$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
CharacterSet="1"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalIncludeDirectories="$(INCLUDE)"
|
||||||
|
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;HAVE_EVIL;__CRT_INLINE=__inline;snprintf=_snprintf_c;PACKAGE_DATA_DIR=;HAVE_EVAS_DIRECT3D;HAVE_EVAS_SOFTWARE_DDRAW;_USE_MATH_DEFINES"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="3"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="libevil.lib libdl.lib"
|
||||||
|
OutputFile="$(OutDir)\test.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
AdditionalLibraryDirectories="$(LIB); $(ReleaseLibraryDirectory)"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
</References>
|
||||||
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="Source Files"
|
||||||
|
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||||
|
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\test_fnmatch.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Header Files"
|
||||||
|
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||||
|
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||||
|
>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Resource Files"
|
||||||
|
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||||
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||||
|
>
|
||||||
|
</Filter>
|
||||||
|
</Files>
|
||||||
|
<Globals>
|
||||||
|
</Globals>
|
||||||
|
</VisualStudioProject>
|
|
@ -0,0 +1,85 @@
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <windows.h>
|
||||||
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
|
#include <Evil.h>
|
||||||
|
#include <fnmatch.h>
|
||||||
|
|
||||||
|
const char *translate_return_value(int ret)
|
||||||
|
{
|
||||||
|
static char buf[256] = "";
|
||||||
|
switch (ret)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
strcpy(buf, "Match");
|
||||||
|
break;
|
||||||
|
case FNM_NOMATCH:
|
||||||
|
strcpy(buf, "NoMatch");
|
||||||
|
break;
|
||||||
|
case FNM_SYNTAXERR:
|
||||||
|
strcpy(buf, "SyntaxErr");
|
||||||
|
break;
|
||||||
|
case FNM_NOMEM:
|
||||||
|
strcpy(buf, "NoMem");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
sprintf(buf, "%d", ret);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define TEST_CASE(a) printf(#a " = %s\n", translate_return_value(a));
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
TEST_CASE(fnmatch("", "", 0));
|
||||||
|
TEST_CASE(fnmatch("a", "a", 0));
|
||||||
|
TEST_CASE(fnmatch("a", "b", 0));
|
||||||
|
TEST_CASE(fnmatch("a", "ba", 0));
|
||||||
|
TEST_CASE(fnmatch("a", "ab", 0));
|
||||||
|
TEST_CASE(fnmatch("a", "ba", 0));
|
||||||
|
TEST_CASE(fnmatch("a", "b a", 0));
|
||||||
|
TEST_CASE(fnmatch("a", "aa", 0));
|
||||||
|
TEST_CASE(fnmatch("ab", "ab", 0));
|
||||||
|
TEST_CASE(fnmatch("ab", "ab ", 0));
|
||||||
|
TEST_CASE(fnmatch("ab", " ab", 0));
|
||||||
|
TEST_CASE(fnmatch("ab", "abc", 0));
|
||||||
|
TEST_CASE(fnmatch("ab", "ab c", 0));
|
||||||
|
TEST_CASE(fnmatch("ab", "ba", 0));
|
||||||
|
|
||||||
|
TEST_CASE(fnmatch("a*", "a", 0));
|
||||||
|
TEST_CASE(fnmatch("a*", "b", 0));
|
||||||
|
TEST_CASE(fnmatch("a*", "ab", 0));
|
||||||
|
TEST_CASE(fnmatch("a*", "ba", 0));
|
||||||
|
TEST_CASE(fnmatch("a*", "aba", 0));
|
||||||
|
|
||||||
|
TEST_CASE(fnmatch("a?", "a", 0));
|
||||||
|
TEST_CASE(fnmatch("a?", "b", 0));
|
||||||
|
TEST_CASE(fnmatch("a?", "ab", 0));
|
||||||
|
TEST_CASE(fnmatch("a?", "ba", 0));
|
||||||
|
TEST_CASE(fnmatch("a?", "aa", 0));
|
||||||
|
TEST_CASE(fnmatch("a?", "aba", 0));
|
||||||
|
TEST_CASE(fnmatch("a?", "a a", 0));
|
||||||
|
|
||||||
|
TEST_CASE(fnmatch("*.*", "a", 0));
|
||||||
|
TEST_CASE(fnmatch("*.*", "a.", 0));
|
||||||
|
TEST_CASE(fnmatch("*.*", ".", 0));
|
||||||
|
TEST_CASE(fnmatch("*.*", ".a", 0));
|
||||||
|
TEST_CASE(fnmatch("*.*", " . ", 0));
|
||||||
|
TEST_CASE(fnmatch("*.*", "aa.aa", 0));
|
||||||
|
|
||||||
|
TEST_CASE(fnmatch("*", "", 0));
|
||||||
|
TEST_CASE(fnmatch("*", "a", 0));
|
||||||
|
|
||||||
|
TEST_CASE(fnmatch("*?", "", 0));
|
||||||
|
TEST_CASE(fnmatch("*?", "a", 0));
|
||||||
|
|
||||||
|
TEST_CASE(fnmatch("*abc*", "aabbccabcaa", 0));
|
||||||
|
|
||||||
|
TEST_CASE(fnmatch("\\", "", 0));
|
||||||
|
}
|
Loading…
Reference in New Issue