From 861307becc48c9a5f449b58e61eb29a4dbe55ccf Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 10 Feb 2014 22:10:22 +0100 Subject: [PATCH] VS2010 build: Fixed debug build. Moved some windows related defines to preprocessor. --- winbuild/dist/include/config.h | 7 ------- winbuild/dist/include/winbuild.h | 3 +++ winbuild/sgminer.vcxproj | 32 +++++++++++++++++++------------- 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/winbuild/dist/include/config.h b/winbuild/dist/include/config.h index 885d3ceb..791c60ae 100644 --- a/winbuild/dist/include/config.h +++ b/winbuild/dist/include/config.h @@ -16,13 +16,6 @@ #define HAVE_CURSES 1 #define HAVE_ADL 1 - -#define WIN32 1 -#define _CRT_SECURE_NO_WARNINGS -#define WIN32_LEAN_AND_MEAN - -#define WANT_X8664_SSE4 - #define STDC_HEADERS 1 #define EXECV_2ND_ARG_TYPE char* const* diff --git a/winbuild/dist/include/winbuild.h b/winbuild/dist/include/winbuild.h index b8127277..24f15458 100644 --- a/winbuild/dist/include/winbuild.h +++ b/winbuild/dist/include/winbuild.h @@ -20,6 +20,9 @@ typedef intptr_t ssize_t; #define snprintf _snprintf #define strdup _strdup +#define execv _execv +#define access _access +#define fdopen _fdopen #define inline __inline diff --git a/winbuild/sgminer.vcxproj b/winbuild/sgminer.vcxproj index 0d575209..7bcb78db 100644 --- a/winbuild/sgminer.vcxproj +++ b/winbuild/sgminer.vcxproj @@ -65,7 +65,7 @@ false $(SolutionDir)output\x86\$(Configuration)\ - $(SolutionDir)output\x86\obj\ + $(SolutionDir)output\x86\$(Configuration)\obj\ false @@ -75,12 +75,12 @@ false $(SolutionDir)output\x86\$(Configuration)\ - $(SolutionDir)output\x86\obj\ + $(SolutionDir)output\x86\$(Configuration)\obj\ false $(SolutionDir)output\x64\$(Configuration)\ - $(SolutionDir)output\x64\obj\ + $(SolutionDir)output\x64\$(Configuration)\obj\ @@ -88,7 +88,7 @@ Level3 Disabled - _M_AMD64;USE_SSE2;_AMD64_;WIN32;_WIN64;NDEBUG;_CONSOLE + USE_SSE2;WIN32;NDEBUG;_CONSOLE;PTW32_STATIC_LIB;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;WIN32_LEAN_AND_MEAN CompileAsCpp $(ProjectDir)..;$(ProjectDir)dist\include\;$(ProjectDir)..\compat\jansson-2.5\src\;%(AdditionalIncludeDirectories) true @@ -106,7 +106,9 @@ true - xcopy /y $(ProjectDir)\dist\dll\x86\pthreadsVC2.dll $(OutDir) + + xcopy /Y /E /I "$(ProjectDir)..\kernel" "$(OutDir)\kernel" + del /f "$(OutDir)*.exe" @@ -123,7 +125,7 @@ exit 0 Level3 Disabled - _M_AMD64;_AMD64_;WIN32;_WIN64;NDEBUG;_CONSOLE + _M_AMD64;_AMD64_;WIN32;_WIN64;NDEBUG;_CONSOLE;PTW32_STATIC_LIB;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;WIN32_LEAN_AND_MEAN CompileAsCpp $(ProjectDir)..;$(ProjectDir)dist\include\;$(ProjectDir)..\compat\jansson-2.5\src\;%(AdditionalIncludeDirectories) true @@ -141,7 +143,9 @@ exit 0 true - xcopy /y $(ProjectDir)\dist\dll\x64\pthreadsVC2.dll $(OutDir) + + xcopy /Y /E /I "$(ProjectDir)..\kernel" "$(OutDir)\kernel" + del /f "$(OutDir)*.exe" @@ -160,7 +164,7 @@ exit 0 MaxSpeed true true - _CONSOLE;PTW32_STATIC_LIB + _CONSOLE;WIN32;PTW32_STATIC_LIB;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;WIN32_LEAN_AND_MEAN CompileAsCpp $(ProjectDir)..;$(ProjectDir)dist\include\;$(ProjectDir)..\compat\jansson-2.5\src\;%(AdditionalIncludeDirectories) false @@ -178,8 +182,9 @@ exit 0 LIBCMT - xcopy /Y /E /I "$(ProjectDir)..\kernel" "$(OutDir)\kernel" - + + xcopy /Y /E /I "$(ProjectDir)..\kernel" "$(OutDir)\kernel" + del /f "$(OutDir)*.exe" @@ -198,7 +203,7 @@ exit 0 MaxSpeed true true - _M_AMD64;_AMD64_;WIN32;_WIN64;PTW32_STATIC_LIB + _M_AMD64;_AMD64_;WIN32;_WIN64;PTW32_STATIC_LIB;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;WIN32_LEAN_AND_MEAN CompileAsCpp $(ProjectDir)..;$(ProjectDir)dist\include\;$(ProjectDir)..\compat\jansson-2.5\src\;%(AdditionalIncludeDirectories) false @@ -219,8 +224,9 @@ exit 0 - xcopy /Y /E /I "$(ProjectDir)..\kernel" "$(OutDir)\kernel" - + + xcopy /Y /E /I "$(ProjectDir)..\kernel" "$(OutDir)\kernel" + del /f "$(OutDir)*.exe"