psx - build with vs2015, so we can pass mednafen's internal integrity checks, and force a widespread test of vs2015-built unmanaged dlls
This commit is contained in:
parent
a354473237
commit
ae22972e25
Binary file not shown.
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
|
@ -46,6 +46,7 @@
|
||||||
<ClCompile Include="..\psx\spu.cpp" />
|
<ClCompile Include="..\psx\spu.cpp" />
|
||||||
<ClCompile Include="..\psx\timer.cpp" />
|
<ClCompile Include="..\psx\timer.cpp" />
|
||||||
<ClCompile Include="..\Stream.cpp" />
|
<ClCompile Include="..\Stream.cpp" />
|
||||||
|
<ClCompile Include="..\tests.cpp" />
|
||||||
<ClCompile Include="..\video\Deinterlacer.cpp" />
|
<ClCompile Include="..\video\Deinterlacer.cpp" />
|
||||||
<ClCompile Include="..\video\surface.cpp" />
|
<ClCompile Include="..\video\surface.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -101,18 +102,21 @@
|
||||||
<ProjectGuid>{5F35CAFC-6208-4FBE-AD17-0E69BA3F70EC}</ProjectGuid>
|
<ProjectGuid>{5F35CAFC-6208-4FBE-AD17-0E69BA3F70EC}</ProjectGuid>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<RootNamespace>octoshock</RootNamespace>
|
<RootNamespace>octoshock</RootNamespace>
|
||||||
|
<TargetPlatformVersion>8.1</TargetPlatformVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<PlatformToolset>v140_xp</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<PlatformToolset>v140_xp</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
<ImportGroup Label="ExtensionSettings">
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
@ -145,6 +149,7 @@
|
||||||
</PrecompiledHeaderOutputFile>
|
</PrecompiledHeaderOutputFile>
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
<MinimalRebuild>false</MinimalRebuild>
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
|
@ -165,6 +170,7 @@
|
||||||
</PrecompiledHeaderOutputFile>
|
</PrecompiledHeaderOutputFile>
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
<AdditionalIncludeDirectories>../emuware/msvc;..</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>../emuware/msvc;..</AdditionalIncludeDirectories>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
|
|
|
@ -114,6 +114,7 @@
|
||||||
<ClCompile Include="..\cdrom\CDUtility.cpp">
|
<ClCompile Include="..\cdrom\CDUtility.cpp">
|
||||||
<Filter>cdrom</Filter>
|
<Filter>cdrom</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\tests.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\psx\cdc.h">
|
<ClInclude Include="..\psx\cdc.h">
|
||||||
|
|
|
@ -5,6 +5,12 @@
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
#define SIZEOF_CHAR sizeof(char)
|
||||||
|
#define SIZEOF_SHORT sizeof(short)
|
||||||
|
#define SIZEOF_INT sizeof(int)
|
||||||
|
#define SIZEOF_LONG sizeof(long)
|
||||||
|
#define SIZEOF_LONG_LONG sizeof(long long)
|
||||||
|
#define SIZEOF_OFF_T sizeof(void*)
|
||||||
typedef __int64 s64;
|
typedef __int64 s64;
|
||||||
typedef __int32 s32;
|
typedef __int32 s32;
|
||||||
typedef __int16 s16;
|
typedef __int16 s16;
|
||||||
|
@ -42,8 +48,6 @@ typedef __uint16_t uint16;
|
||||||
typedef __uint8_t uint8;
|
typedef __uint8_t uint8;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define final
|
|
||||||
#define noexcept
|
|
||||||
|
|
||||||
//#if MDFN_GCC_VERSION >= MDFN_MAKE_GCCV(4,7,0)
|
//#if MDFN_GCC_VERSION >= MDFN_MAKE_GCCV(4,7,0)
|
||||||
// #define MDFN_ASSUME_ALIGNED(p, align) __builtin_assume_aligned((p), (align))
|
// #define MDFN_ASSUME_ALIGNED(p, align) __builtin_assume_aligned((p), (align))
|
||||||
|
@ -78,11 +82,17 @@ typedef __uint8_t uint8;
|
||||||
#define UNALIGNED
|
#define UNALIGNED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER)
|
||||||
|
#define strncasecmp _strnicmp
|
||||||
|
#define NO_CLONE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#define vsnprintf _vsnprintf
|
#define vsnprintf _vsnprintf
|
||||||
#define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
#define strncasecmp _strnicmp
|
#define final
|
||||||
|
#define noexcept
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TRUE_1 1
|
#define TRUE_1 1
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef __MDFN_FASTFIFO_H
|
#ifndef __MDFN_FASTFIFO_H
|
||||||
#define __MDFN_FASTFIFO_H
|
#define __MDFN_FASTFIFO_H
|
||||||
|
|
||||||
|
#include "emuware/EW_state.h"
|
||||||
|
|
||||||
// size should be a power of 2.
|
// size should be a power of 2.
|
||||||
template<typename T, size_t size>
|
template<typename T, size_t size>
|
||||||
class FastFIFO
|
class FastFIFO
|
||||||
|
|
|
@ -15,7 +15,9 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
#pragma GCC optimize ("no-unroll-loops,no-peel-loops")
|
#pragma GCC optimize ("no-unroll-loops,no-peel-loops")
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "psx.h"
|
#include "psx.h"
|
||||||
#include "gpu.h"
|
#include "gpu.h"
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include "Stream.h"
|
#include "Stream.h"
|
||||||
#include "spu.h"
|
#include "spu.h"
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
#include "tests.h"
|
||||||
#include "endian.h"
|
#include "endian.h"
|
||||||
#include "emuware/EW_state.h"
|
#include "emuware/EW_state.h"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
|
@ -20,12 +20,14 @@
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
<ConfigurationType>Application</ConfigurationType>
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
<PlatformToolset>v140</PlatformToolset>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
<ImportGroup Label="ExtensionSettings">
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
||||||
|
#ifndef __MDFN_TESTS_H
|
||||||
|
#define __MDFN_TESTS_H
|
||||||
|
|
||||||
|
bool MDFN_RunMathTests(void);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue