mirror of
https://git.wownero.com/wownero/RandomWOW.git
synced 2024-12-22 07:48:54 +00:00
Support building a shared library (#53)
This commit is contained in:
parent
d660798b9f
commit
cc2551b02b
10
randomx.sln
10
randomx.sln
@ -29,6 +29,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "perf-simulation", "vcxproj\
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "runtime-distr", "vcxproj\runtime-distr.vcxproj", "{F207EC8C-C55F-46C0-8851-887A71574F54}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "runtime-distr", "vcxproj\runtime-distr.vcxproj", "{F207EC8C-C55F-46C0-8851-887A71574F54}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "randomx-dll", "vcxproj\randomx-dll.vcxproj", "{59560AD8-18E3-463E-A941-BBD808EC7C83}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|x64 = Debug|x64
|
Debug|x64 = Debug|x64
|
||||||
@ -133,6 +135,14 @@ Global
|
|||||||
{F207EC8C-C55F-46C0-8851-887A71574F54}.Release|x64.Build.0 = Release|x64
|
{F207EC8C-C55F-46C0-8851-887A71574F54}.Release|x64.Build.0 = Release|x64
|
||||||
{F207EC8C-C55F-46C0-8851-887A71574F54}.Release|x86.ActiveCfg = Release|Win32
|
{F207EC8C-C55F-46C0-8851-887A71574F54}.Release|x86.ActiveCfg = Release|Win32
|
||||||
{F207EC8C-C55F-46C0-8851-887A71574F54}.Release|x86.Build.0 = Release|Win32
|
{F207EC8C-C55F-46C0-8851-887A71574F54}.Release|x86.Build.0 = Release|Win32
|
||||||
|
{59560AD8-18E3-463E-A941-BBD808EC7C83}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{59560AD8-18E3-463E-A941-BBD808EC7C83}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{59560AD8-18E3-463E-A941-BBD808EC7C83}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
|
{59560AD8-18E3-463E-A941-BBD808EC7C83}.Debug|x86.Build.0 = Debug|Win32
|
||||||
|
{59560AD8-18E3-463E-A941-BBD808EC7C83}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{59560AD8-18E3-463E-A941-BBD808EC7C83}.Release|x64.Build.0 = Release|x64
|
||||||
|
{59560AD8-18E3-463E-A941-BBD808EC7C83}.Release|x86.ActiveCfg = Release|Win32
|
||||||
|
{59560AD8-18E3-463E-A941-BBD808EC7C83}.Release|x86.Build.0 = Release|Win32
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -34,6 +34,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#define RANDOMX_HASH_SIZE 32
|
#define RANDOMX_HASH_SIZE 32
|
||||||
#define RANDOMX_DATASET_ITEM_SIZE 64
|
#define RANDOMX_DATASET_ITEM_SIZE 64
|
||||||
|
|
||||||
|
#ifndef RANDOMX_EXPORT
|
||||||
|
#define RANDOMX_EXPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
RANDOMX_FLAG_DEFAULT = 0,
|
RANDOMX_FLAG_DEFAULT = 0,
|
||||||
RANDOMX_FLAG_LARGE_PAGES = 1,
|
RANDOMX_FLAG_LARGE_PAGES = 1,
|
||||||
@ -62,7 +66,7 @@ extern "C" {
|
|||||||
* NULL is returned if memory allocation fails or if the RANDOMX_FLAG_JIT
|
* NULL is returned if memory allocation fails or if the RANDOMX_FLAG_JIT
|
||||||
* is set and JIT compilation is not supported on the current platform.
|
* is set and JIT compilation is not supported on the current platform.
|
||||||
*/
|
*/
|
||||||
randomx_cache *randomx_alloc_cache(randomx_flags flags);
|
RANDOMX_EXPORT randomx_cache *randomx_alloc_cache(randomx_flags flags);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes the cache memory and SuperscalarHash using the provided key value.
|
* Initializes the cache memory and SuperscalarHash using the provided key value.
|
||||||
@ -71,14 +75,14 @@ randomx_cache *randomx_alloc_cache(randomx_flags flags);
|
|||||||
* @param key is a pointer to memory which contains the key value. Must not be NULL.
|
* @param key is a pointer to memory which contains the key value. Must not be NULL.
|
||||||
* @param keySize is the number of bytes of the key.
|
* @param keySize is the number of bytes of the key.
|
||||||
*/
|
*/
|
||||||
void randomx_init_cache(randomx_cache *cache, const void *key, size_t keySize);
|
RANDOMX_EXPORT void randomx_init_cache(randomx_cache *cache, const void *key, size_t keySize);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Releases all memory occupied by the randomx_cache structure.
|
* Releases all memory occupied by the randomx_cache structure.
|
||||||
*
|
*
|
||||||
* @param cache is a pointer to a previously allocated randomx_cache structure.
|
* @param cache is a pointer to a previously allocated randomx_cache structure.
|
||||||
*/
|
*/
|
||||||
void randomx_release_cache(randomx_cache* cache);
|
RANDOMX_EXPORT void randomx_release_cache(randomx_cache* cache);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a randomx_dataset structure and allocates memory for RandomX Dataset.
|
* Creates a randomx_dataset structure and allocates memory for RandomX Dataset.
|
||||||
@ -89,14 +93,14 @@ void randomx_release_cache(randomx_cache* cache);
|
|||||||
* @return Pointer to an allocated randomx_dataset structure.
|
* @return Pointer to an allocated randomx_dataset structure.
|
||||||
* NULL is returned if memory allocation fails.
|
* NULL is returned if memory allocation fails.
|
||||||
*/
|
*/
|
||||||
randomx_dataset *randomx_alloc_dataset(randomx_flags flags);
|
RANDOMX_EXPORT randomx_dataset *randomx_alloc_dataset(randomx_flags flags);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the number of items contained in the dataset.
|
* Gets the number of items contained in the dataset.
|
||||||
*
|
*
|
||||||
* @return the number of items contained in the dataset.
|
* @return the number of items contained in the dataset.
|
||||||
*/
|
*/
|
||||||
unsigned long randomx_dataset_item_count(void);
|
RANDOMX_EXPORT unsigned long randomx_dataset_item_count(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes dataset items.
|
* Initializes dataset items.
|
||||||
@ -109,7 +113,7 @@ unsigned long randomx_dataset_item_count(void);
|
|||||||
* @param startItem is the item number where intialization should start.
|
* @param startItem is the item number where intialization should start.
|
||||||
* @param itemCount is the number of items that should be initialized.
|
* @param itemCount is the number of items that should be initialized.
|
||||||
*/
|
*/
|
||||||
void randomx_init_dataset(randomx_dataset *dataset, randomx_cache *cache, unsigned long startItem, unsigned long itemCount);
|
RANDOMX_EXPORT void randomx_init_dataset(randomx_dataset *dataset, randomx_cache *cache, unsigned long startItem, unsigned long itemCount);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a pointer to the internal memory buffer of the dataset structure. The size
|
* Returns a pointer to the internal memory buffer of the dataset structure. The size
|
||||||
@ -119,14 +123,14 @@ void randomx_init_dataset(randomx_dataset *dataset, randomx_cache *cache, unsign
|
|||||||
*
|
*
|
||||||
* @return Pointer to the internal memory buffer of the dataset structure.
|
* @return Pointer to the internal memory buffer of the dataset structure.
|
||||||
*/
|
*/
|
||||||
void *randomx_get_dataset_memory(randomx_dataset *dataset);
|
RANDOMX_EXPORT void *randomx_get_dataset_memory(randomx_dataset *dataset);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Releases all memory occupied by the randomx_dataset structure.
|
* Releases all memory occupied by the randomx_dataset structure.
|
||||||
*
|
*
|
||||||
* @param dataset is a pointer to a previously allocated randomx_dataset structure.
|
* @param dataset is a pointer to a previously allocated randomx_dataset structure.
|
||||||
*/
|
*/
|
||||||
void randomx_release_dataset(randomx_dataset *dataset);
|
RANDOMX_EXPORT void randomx_release_dataset(randomx_dataset *dataset);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates and initializes a RandomX virtual machine.
|
* Creates and initializes a RandomX virtual machine.
|
||||||
@ -151,7 +155,7 @@ void randomx_release_dataset(randomx_dataset *dataset);
|
|||||||
* (3) cache parameter is NULL and RANDOMX_FLAG_FULL_MEM is not set
|
* (3) cache parameter is NULL and RANDOMX_FLAG_FULL_MEM is not set
|
||||||
* (4) dataset parameter is NULL and RANDOMX_FLAG_FULL_MEM is set
|
* (4) dataset parameter is NULL and RANDOMX_FLAG_FULL_MEM is set
|
||||||
*/
|
*/
|
||||||
randomx_vm *randomx_create_vm(randomx_flags flags, randomx_cache *cache, randomx_dataset *dataset);
|
RANDOMX_EXPORT randomx_vm *randomx_create_vm(randomx_flags flags, randomx_cache *cache, randomx_dataset *dataset);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reinitializes a virtual machine with a new Cache. This function should be called anytime
|
* Reinitializes a virtual machine with a new Cache. This function should be called anytime
|
||||||
@ -161,7 +165,7 @@ randomx_vm *randomx_create_vm(randomx_flags flags, randomx_cache *cache, randomx
|
|||||||
* without RANDOMX_FLAG_FULL_MEM. Must not be NULL.
|
* without RANDOMX_FLAG_FULL_MEM. Must not be NULL.
|
||||||
* @param cache is a pointer to an initialized randomx_cache structure. Must not be NULL.
|
* @param cache is a pointer to an initialized randomx_cache structure. Must not be NULL.
|
||||||
*/
|
*/
|
||||||
void randomx_vm_set_cache(randomx_vm *machine, randomx_cache* cache);
|
RANDOMX_EXPORT void randomx_vm_set_cache(randomx_vm *machine, randomx_cache* cache);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reinitializes a virtual machine with a new Dataset.
|
* Reinitializes a virtual machine with a new Dataset.
|
||||||
@ -170,14 +174,14 @@ void randomx_vm_set_cache(randomx_vm *machine, randomx_cache* cache);
|
|||||||
* with RANDOMX_FLAG_FULL_MEM. Must not be NULL.
|
* with RANDOMX_FLAG_FULL_MEM. Must not be NULL.
|
||||||
* @param dataset is a pointer to an initialized randomx_dataset structure. Must not be NULL.
|
* @param dataset is a pointer to an initialized randomx_dataset structure. Must not be NULL.
|
||||||
*/
|
*/
|
||||||
void randomx_vm_set_dataset(randomx_vm *machine, randomx_dataset *dataset);
|
RANDOMX_EXPORT void randomx_vm_set_dataset(randomx_vm *machine, randomx_dataset *dataset);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Releases all memory occupied by the randomx_vm structure.
|
* Releases all memory occupied by the randomx_vm structure.
|
||||||
*
|
*
|
||||||
* @param machine is a pointer to a previously created randomx_vm structure.
|
* @param machine is a pointer to a previously created randomx_vm structure.
|
||||||
*/
|
*/
|
||||||
void randomx_destroy_vm(randomx_vm *machine);
|
RANDOMX_EXPORT void randomx_destroy_vm(randomx_vm *machine);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates a RandomX hash value.
|
* Calculates a RandomX hash value.
|
||||||
@ -188,7 +192,7 @@ void randomx_destroy_vm(randomx_vm *machine);
|
|||||||
* @param output is a pointer to memory where the hash will be stored. Must not
|
* @param output is a pointer to memory where the hash will be stored. Must not
|
||||||
* be NULL and at least RANDOMX_HASH_SIZE bytes must be available for writing.
|
* be NULL and at least RANDOMX_HASH_SIZE bytes must be available for writing.
|
||||||
*/
|
*/
|
||||||
void randomx_calculate_hash(randomx_vm *machine, const void *input, size_t inputSize, void *output);
|
RANDOMX_EXPORT void randomx_calculate_hash(randomx_vm *machine, const void *input, size_t inputSize, void *output);
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
}
|
}
|
||||||
|
211
vcxproj/randomx-dll.vcxproj
Normal file
211
vcxproj/randomx-dll.vcxproj
Normal file
@ -0,0 +1,211 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="15.0" 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>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\src\aes_hash.hpp" />
|
||||||
|
<ClInclude Include="..\src\allocator.hpp" />
|
||||||
|
<ClInclude Include="..\src\argon2.h" />
|
||||||
|
<ClInclude Include="..\src\argon2_core.h" />
|
||||||
|
<ClInclude Include="..\src\assembly_generator_x86.hpp" />
|
||||||
|
<ClInclude Include="..\src\blake2_generator.hpp" />
|
||||||
|
<ClInclude Include="..\src\common.hpp" />
|
||||||
|
<ClInclude Include="..\src\configuration.h" />
|
||||||
|
<ClInclude Include="..\src\dataset.hpp" />
|
||||||
|
<ClInclude Include="..\src\instruction.hpp" />
|
||||||
|
<ClInclude Include="..\src\instruction_weights.hpp" />
|
||||||
|
<ClInclude Include="..\src\intrin_portable.h" />
|
||||||
|
<ClInclude Include="..\src\jit_compiler.hpp" />
|
||||||
|
<ClInclude Include="..\src\jit_compiler_a64.hpp" />
|
||||||
|
<ClInclude Include="..\src\jit_compiler_fallback.hpp" />
|
||||||
|
<ClInclude Include="..\src\jit_compiler_x86.hpp" />
|
||||||
|
<ClInclude Include="..\src\jit_compiler_x86_static.hpp" />
|
||||||
|
<ClInclude Include="..\src\program.hpp" />
|
||||||
|
<ClInclude Include="..\src\randomx.h" />
|
||||||
|
<ClInclude Include="..\src\reciprocal.h" />
|
||||||
|
<ClInclude Include="..\src\soft_aes.h" />
|
||||||
|
<ClInclude Include="..\src\superscalar.hpp" />
|
||||||
|
<ClInclude Include="..\src\superscalar_program.hpp" />
|
||||||
|
<ClInclude Include="..\src\virtual_machine.hpp" />
|
||||||
|
<ClInclude Include="..\src\virtual_memory.hpp" />
|
||||||
|
<ClInclude Include="..\src\vm_compiled.hpp" />
|
||||||
|
<ClInclude Include="..\src\vm_compiled_light.hpp" />
|
||||||
|
<ClInclude Include="..\src\vm_interpreted.hpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<MASM Include="..\src\jit_compiler_x86_static.asm" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\src\aes_hash.cpp" />
|
||||||
|
<ClCompile Include="..\src\allocator.cpp" />
|
||||||
|
<ClCompile Include="..\src\argon2_core.c" />
|
||||||
|
<ClCompile Include="..\src\argon2_ref.c" />
|
||||||
|
<ClCompile Include="..\src\assembly_generator_x86.cpp" />
|
||||||
|
<ClCompile Include="..\src\blake2\blake2b.c" />
|
||||||
|
<ClCompile Include="..\src\blake2_generator.cpp" />
|
||||||
|
<ClCompile Include="..\src\dataset.cpp" />
|
||||||
|
<ClCompile Include="..\src\instruction.cpp" />
|
||||||
|
<ClCompile Include="..\src\instructions_portable.cpp" />
|
||||||
|
<ClCompile Include="..\src\jit_compiler_x86.cpp" />
|
||||||
|
<ClCompile Include="..\src\randomx.cpp" />
|
||||||
|
<ClCompile Include="..\src\reciprocal.c" />
|
||||||
|
<ClCompile Include="..\src\soft_aes.cpp" />
|
||||||
|
<ClCompile Include="..\src\superscalar.cpp" />
|
||||||
|
<ClCompile Include="..\src\virtual_machine.cpp" />
|
||||||
|
<ClCompile Include="..\src\virtual_memory.cpp" />
|
||||||
|
<ClCompile Include="..\src\vm_compiled.cpp" />
|
||||||
|
<ClCompile Include="..\src\vm_compiled_light.cpp" />
|
||||||
|
<ClCompile Include="..\src\vm_interpreted.cpp" />
|
||||||
|
<ClCompile Include="..\src\vm_interpreted_light.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<VCProjectVersion>15.0</VCProjectVersion>
|
||||||
|
<ProjectGuid>{59560AD8-18E3-463E-A941-BBD808EC7C83}</ProjectGuid>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<RootNamespace>randomxdll</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v141</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.props" />
|
||||||
|
</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)'=='Release|Win32'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<TargetName>randomx</TargetName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;RANDOMXDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;RANDOMXDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;RANDOMXDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>false</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>NDEBUG;RANDOMXDLL_EXPORTS;_WINDOWS;_USRDLL;RANDOMX_EXPORT=__declspec(dllexport)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
173
vcxproj/randomx-dll.vcxproj.filters
Normal file
173
vcxproj/randomx-dll.vcxproj.filters
Normal file
@ -0,0 +1,173 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<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>
|
||||||
|
<ClInclude Include="..\src\randomx.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\aes_hash.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\allocator.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\argon2.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\argon2_core.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\assembly_generator_x86.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\blake2_generator.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\common.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\configuration.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\dataset.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\instruction.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\instruction_weights.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\intrin_portable.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\jit_compiler.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\jit_compiler_a64.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\jit_compiler_fallback.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\jit_compiler_x86.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\jit_compiler_x86_static.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\program.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\reciprocal.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\soft_aes.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\superscalar.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\superscalar_program.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\virtual_machine.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\virtual_memory.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\vm_compiled.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\vm_compiled_light.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\src\vm_interpreted.hpp">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<MASM Include="..\src\jit_compiler_x86_static.asm">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</MASM>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\src\argon2_core.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\argon2_ref.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\reciprocal.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\aes_hash.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\allocator.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\assembly_generator_x86.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\blake2_generator.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\dataset.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\instruction.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\instructions_portable.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\jit_compiler_x86.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\randomx.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\soft_aes.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\superscalar.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\virtual_machine.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\virtual_memory.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\vm_compiled.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\vm_compiled_light.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\vm_interpreted.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\vm_interpreted_light.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\blake2\blake2b.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
Loading…
Reference in New Issue
Block a user