diff options
author | Vincent Peyruqueou | 2023-03-27 11:43:54 +0200 |
---|---|---|
committer | Vincent Peyruqueou | 2023-03-27 11:43:54 +0200 |
commit | 5443d6828eaf5cbc7dc4613d9d75b4c192d17730 (patch) | |
tree | 7b6675df201d3afe1b2e26aaa4e67205ef888456 | |
parent | 7c608bc1d5c126df839c699c5ae531828a00caa3 (diff) | |
download | ivy-c-5443d6828eaf5cbc7dc4613d9d75b4c192d17730.zip ivy-c-5443d6828eaf5cbc7dc4613d9d75b4c192d17730.tar.gz ivy-c-5443d6828eaf5cbc7dc4613d9d75b4c192d17730.tar.bz2 ivy-c-5443d6828eaf5cbc7dc4613d9d75b4c192d17730.tar.xz |
Microsoft Visual Studio (2022) solution to test IVY (perf and test ready)
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | tools/IvyPerf/IvyPerf.vcxproj | 159 | ||||
-rw-r--r-- | tools/IvyPerf/IvyPerf.vcxproj.filters | 30 | ||||
-rw-r--r-- | tools/IvyTestReady/IvyTestReady.vcxproj | 171 | ||||
-rw-r--r-- | tools/IvyTestReady/IvyTestReady.vcxproj.filters | 22 | ||||
-rw-r--r-- | tools/RunIvyPerf.bat | 6 | ||||
-rw-r--r-- | tools/RunIvyTestReady.bat | 6 | ||||
-rw-r--r-- | tools/Tools_IVY_C.sln | 41 | ||||
-rw-r--r-- | tools/ivyperf.c | 8 | ||||
-rwxr-xr-x | tools/ivytestready.c | 30 |
10 files changed, 472 insertions, 7 deletions
@@ -2,3 +2,9 @@ src/Win32/ src/ivy_c.vcxproj.user .vs/ +tools/IvyPerf/IvyPerf.vcxproj.user +tools/IvyPerf/Win32/ +tools/IvyTestReady/IvyTestReady.vcxproj.user +tools/IvyTestReady/Win32/ +tools/IvyTestReady/x64/ +tools/Win32/ diff --git a/tools/IvyPerf/IvyPerf.vcxproj b/tools/IvyPerf/IvyPerf.vcxproj new file mode 100644 index 0000000..4fae423 --- /dev/null +++ b/tools/IvyPerf/IvyPerf.vcxproj @@ -0,0 +1,159 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <VCProjectVersion>16.0</VCProjectVersion> + <Keyword>Win32Proj</Keyword> + <ProjectGuid>{ef4407ae-4f42-4316-959a-e93eabb81db5}</ProjectGuid> + <RootNamespace>IvyPerf</RootNamespace> + <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>true</UseDebugLibraries> + <PlatformToolset>v143</PlatformToolset> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>false</UseDebugLibraries> + <PlatformToolset>v143</PlatformToolset> + <WholeProgramOptimization>true</WholeProgramOptimization> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>true</UseDebugLibraries> + <PlatformToolset>v143</PlatformToolset> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>false</UseDebugLibraries> + <PlatformToolset>v143</PlatformToolset> + <WholeProgramOptimization>true</WholeProgramOptimization> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Label="Shared"> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir> + <IntDir>$(Platform)\$(Configuration)\</IntDir> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir> + <IntDir>$(Platform)\$(Configuration)\</IntDir> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + <AdditionalIncludeDirectories>..\..\src</AdditionalIncludeDirectories> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <GenerateDebugInformation>true</GenerateDebugInformation> + <AdditionalDependencies>ivy.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalLibraryDirectories>..\..\$(Platform)\$(Configuration)</AdditionalLibraryDirectories> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <FunctionLevelLinking>true</FunctionLevelLinking> + <IntrinsicFunctions>true</IntrinsicFunctions> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + <AdditionalIncludeDirectories>..\..\src</AdditionalIncludeDirectories> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <OptimizeReferences>true</OptimizeReferences> + <GenerateDebugInformation>true</GenerateDebugInformation> + <AdditionalDependencies>ivy.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalLibraryDirectories>..\..\$(Platform)\$(Configuration)</AdditionalLibraryDirectories> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + <AdditionalIncludeDirectories>..\..\src</AdditionalIncludeDirectories> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <GenerateDebugInformation>true</GenerateDebugInformation> + <AdditionalDependencies>ivy.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalLibraryDirectories>..\..\$(Platform)\$(Configuration)</AdditionalLibraryDirectories> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <FunctionLevelLinking>true</FunctionLevelLinking> + <IntrinsicFunctions>true</IntrinsicFunctions> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + <AdditionalIncludeDirectories>..\..\src</AdditionalIncludeDirectories> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <OptimizeReferences>true</OptimizeReferences> + <GenerateDebugInformation>true</GenerateDebugInformation> + <AdditionalDependencies>ivy.lib;%(AdditionalDependencies)</AdditionalDependencies> + <AdditionalLibraryDirectories>..\..\$(Platform)\$(Configuration)</AdditionalLibraryDirectories> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="..\getopt.c" /> + <ClCompile Include="..\ivyperf.c" /> + </ItemGroup> + <ItemGroup> + <ClInclude Include="..\getopt.h" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/tools/IvyPerf/IvyPerf.vcxproj.filters b/tools/IvyPerf/IvyPerf.vcxproj.filters new file mode 100644 index 0000000..7b07197 --- /dev/null +++ b/tools/IvyPerf/IvyPerf.vcxproj.filters @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Fichiers sources"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Fichiers d%27en-tête"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> + </Filter> + <Filter Include="Fichiers de ressources"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="..\ivyperf.c"> + <Filter>Fichiers sources</Filter> + </ClCompile> + <ClCompile Include="..\getopt.c"> + <Filter>Fichiers sources</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <ClInclude Include="..\getopt.h"> + <Filter>Fichiers d%27en-tête</Filter> + </ClInclude> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/tools/IvyTestReady/IvyTestReady.vcxproj b/tools/IvyTestReady/IvyTestReady.vcxproj new file mode 100644 index 0000000..c2a9f4d --- /dev/null +++ b/tools/IvyTestReady/IvyTestReady.vcxproj @@ -0,0 +1,171 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <VCProjectVersion>16.0</VCProjectVersion> + <Keyword>Win32Proj</Keyword> + <ProjectGuid>{faaca143-51e8-4aa6-a26d-d069d8d9645d}</ProjectGuid> + <RootNamespace>IvyTestReady</RootNamespace> + <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>true</UseDebugLibraries> + <PlatformToolset>v143</PlatformToolset> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>false</UseDebugLibraries> + <PlatformToolset>v143</PlatformToolset> + <WholeProgramOptimization>true</WholeProgramOptimization> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>true</UseDebugLibraries> + <PlatformToolset>v143</PlatformToolset> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>false</UseDebugLibraries> + <PlatformToolset>v143</PlatformToolset> + <WholeProgramOptimization>true</WholeProgramOptimization> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Label="Shared"> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir> + <IntDir>$(Platform)\$(Configuration)\</IntDir> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir> + <IntDir>$(Platform)\$(Configuration)\</IntDir> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + <AdditionalIncludeDirectories>..\..\src</AdditionalIncludeDirectories> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <GenerateDebugInformation>true</GenerateDebugInformation> + <AdditionalLibraryDirectories>..\..\$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> + <AdditionalDependencies>ivy.lib;%(AdditionalDependencies)</AdditionalDependencies> + </Link> + <PostBuildEvent> + <Command>copy "..\..\$(Platform)\$(Configuration)\libpcre.dll" "$(OutDir)\libpcre.dll" +copy "..\..\$(Platform)\$(Configuration)\Ivy.dll" "$(OutDir)\Ivy.dll"</Command> + </PostBuildEvent> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <FunctionLevelLinking>true</FunctionLevelLinking> + <IntrinsicFunctions>true</IntrinsicFunctions> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + <AdditionalIncludeDirectories>..\..\src</AdditionalIncludeDirectories> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <OptimizeReferences>true</OptimizeReferences> + <GenerateDebugInformation>true</GenerateDebugInformation> + <AdditionalLibraryDirectories>..\..\$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> + <AdditionalDependencies>ivy.lib;%(AdditionalDependencies)</AdditionalDependencies> + </Link> + <PostBuildEvent> + <Command>copy "..\..\$(Platform)\$(Configuration)\libpcre.dll" "$(OutDir)\libpcre.dll" +copy "..\..\$(Platform)\$(Configuration)\Ivy.dll" "$(OutDir)\Ivy.dll"</Command> + </PostBuildEvent> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + <AdditionalIncludeDirectories>..\..\src</AdditionalIncludeDirectories> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <GenerateDebugInformation>true</GenerateDebugInformation> + <AdditionalLibraryDirectories>..\..\$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> + <AdditionalDependencies>ivy.lib;%(AdditionalDependencies)</AdditionalDependencies> + </Link> + <PostBuildEvent> + <Command>copy "..\..\$(Platform)\$(Configuration)\libpcre.dll" "$(OutDir)\libpcre.dll" +copy "..\..\$(Platform)\$(Configuration)\Ivy.dll" "$(OutDir)\Ivy.dll"</Command> + </PostBuildEvent> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <FunctionLevelLinking>true</FunctionLevelLinking> + <IntrinsicFunctions>true</IntrinsicFunctions> + <SDLCheck>true</SDLCheck> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <ConformanceMode>true</ConformanceMode> + <AdditionalIncludeDirectories>..\..\src</AdditionalIncludeDirectories> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <OptimizeReferences>true</OptimizeReferences> + <GenerateDebugInformation>true</GenerateDebugInformation> + <AdditionalLibraryDirectories>..\..\$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> + <AdditionalDependencies>ivy.lib;%(AdditionalDependencies)</AdditionalDependencies> + </Link> + <PostBuildEvent> + <Command>copy "..\..\$(Platform)\$(Configuration)\libpcre.dll" "$(OutDir)\libpcre.dll" +copy "..\..\$(Platform)\$(Configuration)\Ivy.dll" "$(OutDir)\Ivy.dll"</Command> + </PostBuildEvent> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="..\ivytestready.c" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/tools/IvyTestReady/IvyTestReady.vcxproj.filters b/tools/IvyTestReady/IvyTestReady.vcxproj.filters new file mode 100644 index 0000000..ff5bdc9 --- /dev/null +++ b/tools/IvyTestReady/IvyTestReady.vcxproj.filters @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Fichiers sources"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Fichiers d%27en-tête"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions> + </Filter> + <Filter Include="Fichiers de ressources"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="..\ivytestready.c"> + <Filter>Fichiers sources</Filter> + </ClCompile> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/tools/RunIvyPerf.bat b/tools/RunIvyPerf.bat new file mode 100644 index 0000000..aac8bce --- /dev/null +++ b/tools/RunIvyPerf.bat @@ -0,0 +1,6 @@ +@echo off +echo Starting Perf 1 +start Win32\Release\IvyPerf.exe 250 20 +echo Starting Perf 2 +start Win32\Release\IvyPerf.exe 250 20 +pause diff --git a/tools/RunIvyTestReady.bat b/tools/RunIvyTestReady.bat new file mode 100644 index 0000000..b908633 --- /dev/null +++ b/tools/RunIvyTestReady.bat @@ -0,0 +1,6 @@ +@echo off +echo Starting Application A +start Win32\Release\IvyTestReady.exe +echo Starting Application B +start Win32\Release\IvyTestReady.exe 0 +pause diff --git a/tools/Tools_IVY_C.sln b/tools/Tools_IVY_C.sln new file mode 100644 index 0000000..4feb09e --- /dev/null +++ b/tools/Tools_IVY_C.sln @@ -0,0 +1,41 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33414.496 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IvyPerf", "IvyPerf\IvyPerf.vcxproj", "{EF4407AE-4F42-4316-959A-E93EABB81DB5}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IvyTestReady", "IvyTestReady\IvyTestReady.vcxproj", "{FAACA143-51E8-4AA6-A26D-D069D8D9645D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EF4407AE-4F42-4316-959A-E93EABB81DB5}.Debug|x64.ActiveCfg = Debug|x64 + {EF4407AE-4F42-4316-959A-E93EABB81DB5}.Debug|x64.Build.0 = Debug|x64 + {EF4407AE-4F42-4316-959A-E93EABB81DB5}.Debug|x86.ActiveCfg = Debug|Win32 + {EF4407AE-4F42-4316-959A-E93EABB81DB5}.Debug|x86.Build.0 = Debug|Win32 + {EF4407AE-4F42-4316-959A-E93EABB81DB5}.Release|x64.ActiveCfg = Release|x64 + {EF4407AE-4F42-4316-959A-E93EABB81DB5}.Release|x64.Build.0 = Release|x64 + {EF4407AE-4F42-4316-959A-E93EABB81DB5}.Release|x86.ActiveCfg = Release|Win32 + {EF4407AE-4F42-4316-959A-E93EABB81DB5}.Release|x86.Build.0 = Release|Win32 + {FAACA143-51E8-4AA6-A26D-D069D8D9645D}.Debug|x64.ActiveCfg = Debug|x64 + {FAACA143-51E8-4AA6-A26D-D069D8D9645D}.Debug|x64.Build.0 = Debug|x64 + {FAACA143-51E8-4AA6-A26D-D069D8D9645D}.Debug|x86.ActiveCfg = Debug|Win32 + {FAACA143-51E8-4AA6-A26D-D069D8D9645D}.Debug|x86.Build.0 = Debug|Win32 + {FAACA143-51E8-4AA6-A26D-D069D8D9645D}.Release|x64.ActiveCfg = Release|x64 + {FAACA143-51E8-4AA6-A26D-D069D8D9645D}.Release|x64.Build.0 = Release|x64 + {FAACA143-51E8-4AA6-A26D-D069D8D9645D}.Release|x86.ActiveCfg = Release|Win32 + {FAACA143-51E8-4AA6-A26D-D069D8D9645D}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D547DA65-BF4B-403A-8C1F-4B46CB9C3812} + EndGlobalSection +EndGlobal diff --git a/tools/ivyperf.c b/tools/ivyperf.c index a7845f0..823f516 100644 --- a/tools/ivyperf.c +++ b/tools/ivyperf.c @@ -40,6 +40,11 @@ extern int optind; #include "ivyloop.h" #define MILLISEC 1000.0 +//const char* IVY_ADDR = "127.0.0.255"; +//const char* IVY_ADDR = "192.168.1.255"; +//const char* IVY_ADDR = "10.33.39.255"; +//const char* IVY_PORT = "2023"; + const char *mymessages[] = { "IvyPerf", "ping", "pong" }; static double origin = 0; int nbMsgReceive=0; @@ -123,11 +128,14 @@ void binCB( IvyClientPtr app, void *user_data, int id, const char* regexp, IvyB } } + int main(int argc, char *argv[]) { long time=200; int c; const char * bus = NULL; + //const char* bus = "192.168.1.255:2023"; + while ((c = getopt(argc, argv, "b:")) != EOF) switch (c) { case 'b': diff --git a/tools/ivytestready.c b/tools/ivytestready.c index 46fe1de..976754d 100755 --- a/tools/ivytestready.c +++ b/tools/ivytestready.c @@ -23,7 +23,7 @@ #include <getopt.h> #endif #else -#include <sys/time.h> +#include <time.h> #include <unistd.h> #ifdef __INTERIX extern char *optarg; @@ -32,12 +32,16 @@ extern int optind; #endif -#include "ivysocket.h" #include "ivy.h" #include "timer.h" #include "ivyloop.h" #define MILLISEC 1000.0 +//const char* IVY_ADDR = "127.0.0.255"; +const char* IVY_ADDR = "192.168.1.255"; +//const char* IVY_ADDR = "10.33.39.255"; +const char* IVY_PORT = "2023"; + const char * me = "A"; const char * other = "B"; char ready_message[1000] = "A ready"; @@ -88,22 +92,29 @@ void binCB( IvyClientPtr app, void *user_data, int id, const char* regexp, IvyB - int main(int argc, char *argv[]) { /* Mainloop management */ if ( argc > 1 ) { - me = "B" ; + me = "B"; other = "A"; - strcpy( ready_message, "B ready"); - strcpy( ready_bind, "^A ready"); +#ifdef WIN32 + strcpy_s( ready_message, sizeof(ready_message), "B ready"); + strcpy_s( ready_bind, sizeof(ready_bind), "^A ready"); +#else + strcpy(ready_message, "B ready"); + strcpy(ready_bind, "^A ready"); +#endif } IvyInit (me, ready_message, NULL,NULL,NULL,NULL); IvySetBindCallback( binCB, 0 ); +#ifdef WIN32 + IvyBindMsg(Ready, NULL, ready_bind); +#else #if defined(__GNUC__) && __GNUC_PREREQ(4,7) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat-security" @@ -112,12 +123,17 @@ int main(int argc, char *argv[]) #if defined(__GNUC__) && __GNUC_PREREQ(4,7) #pragma GCC diagnostic pop #endif +#endif IvyBindMsg (Question, NULL, "^are you there %s",me); IvyBindMsg (Reply, NULL, "^(yes i am %s)",other); - IvyStart (0); + //IvyStart (NULL); + char domain[30]; + snprintf(domain, sizeof(domain), "%s:%s", IVY_ADDR, IVY_PORT); + + IvyStart (domain); IvyMainLoop (); return 0; |