Author: cwittich Date: Mon Oct 30 15:53:25 2006 New Revision: 24662
URL: http://svn.reactos.org/svn/reactos?rev=24662&view=rev Log: -force include of warning.h from WDK -removed CRT_SECURE_NO_DEPRECATE because it is declared in warning.h -set warning level to /W3 -set calling convention to stdcall -use nasmw for asm files
Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp
Modified: trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/msvc/v... ============================================================================== --- trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp (original) +++ trunk/reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp Mon Oct 30 15:53:25 2006 @@ -253,6 +253,7 @@
fprintf ( OUT, "\t\t\t<Tool\r\n" ); fprintf ( OUT, "\t\t\t\tName="VCCLCompilerTool"\r\n" ); + fprintf ( OUT, "\t\t\t\tForcedIncludeFiles="warning.h"\r\n" ); fprintf ( OUT, "\t\t\t\tOptimization="%d"\r\n", release ? 2 : 0 );
fprintf ( OUT, "\t\t\t\tAdditionalIncludeDirectories="" ); @@ -299,9 +300,6 @@ { // this is a define in MinGW w32api, but not Microsoft's headers defines.insert ( "STDCALL=__stdcall" ); - // MinGW doesn't have a safe-string library yet - defines.insert ( "_CRT_SECURE_NO_DEPRECATE" ); - defines.insert ( "_CRT_NON_CONFORMING_SWPRINTFS" ); }
if ( lib || exe ) @@ -358,12 +356,11 @@ fprintf ( OUT, "\t\t\t\tStringPooling="true"\r\n" ); }
- fprintf ( OUT, "\t\t\t\tDisableSpecificWarnings="4201;4127;4214"\r\n" ); - fprintf ( OUT, "\t\t\t\tWarningLevel="%s"\r\n", speed ? "0" : "4" ); + fprintf ( OUT, "\t\t\t\tWarningLevel="%s"\r\n", speed ? "0" : "3" ); fprintf ( OUT, "\t\t\t\tDetect64BitPortabilityProblems="%s"\r\n", speed ? "FALSE" : "TRUE"); if ( !module.cplusplus ) fprintf ( OUT, "\t\t\t\tCompileAs="1"\r\n" ); - fprintf ( OUT, "\t\t\t\tCallingConvention="%d"\r\n", (sys || (exe && module.type == Kernel)) ? 2: 0); // 2=__stdcall 0=__cdecl + fprintf ( OUT, "\t\t\t\tCallingConvention="%d"\r\n", 2 ); // 2=__stdcall 0=__cdecl fprintf ( OUT, "\t\t\t\tDebugInformationFormat="%s"/>\r\n", speed ? "0" : release ? "3": "4"); // 3=/Zi 4=ZI
fprintf ( OUT, "\t\t\t<Tool\r\n" ); @@ -583,7 +580,7 @@ else if ((source_file.find(".asm") != string::npos || tolower(source_file.at(source_file.size() - 1)) == 's')) { fprintf ( OUT, "\t\t\t\t\t\tName="VCCustomBuildTool"\r\n" ); - fprintf ( OUT, "\t\t\t\t\t\tCommandLine="cl /E "$(InputPath)" %s /D__ASM__ | as -o "$(OutDir)\$(InputName).obj""\r\n",include_string.c_str() ); + fprintf ( OUT, "\t\t\t\t\t\tCommandLine="nasmw $(InputPath) -f coff -o "$(OutDir)\$(InputName).obj""\r\n"); fprintf ( OUT, "\t\t\t\t\t\tOutputs="$(OutDir)\$(InputName).obj"/>\r\n" ); } fprintf ( OUT, "\t\t\t\t</FileConfiguration>\r\n" );