fixed the build options for different configurations
authorChristoph von Wittich <christoph_vw@reactos.org>
Wed, 30 Nov 2005 23:33:29 +0000 (23:33 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Wed, 30 Nov 2005 23:33:29 +0000 (23:33 +0000)
svn path=/trunk/; revision=19792

reactos/tools/rbuild/backend/msvc/vcprojmaker.cpp

index b6f3c47..c8cfb07 100644 (file)
@@ -228,7 +228,7 @@ MSVCBackend::_generate_vcproj ( const Module& module )
 \r
                fprintf ( OUT, "\t\t\t<Tool\r\n" );\r
                fprintf ( OUT, "\t\t\t\tName=\"VCCLCompilerTool\"\r\n" );\r
-               fprintf ( OUT, "\t\t\t\tOptimization=\"%d\"\r\n", debug ? 0 : 2 );\r
+               fprintf ( OUT, "\t\t\t\tOptimization=\"%d\"\r\n", release ? 2 : 0 );\r
 \r
                fprintf ( OUT, "\t\t\t\tAdditionalIncludeDirectories=\"" );\r
                bool multiple_includes = false;\r
@@ -278,7 +278,7 @@ MSVCBackend::_generate_vcproj ( const Module& module )
                }\r
                fprintf ( OUT, "\"\r\n" );\r
 \r
-               fprintf ( OUT, "\t\t\t\tMinimalRebuild=\"TRUE\"\r\n" );\r
+               fprintf ( OUT, "\t\t\t\tMinimalRebuild=\"%s\"\r\n", speed ? "FALSE" : "TRUE" );\r
                fprintf ( OUT, "\t\t\t\tBasicRuntimeChecks=\"%s\"\r\n", debug ? "3" : "0" );\r
                fprintf ( OUT, "\t\t\t\tRuntimeLibrary=\"5\"\r\n" );\r
                fprintf ( OUT, "\t\t\t\tBufferSecurityCheck=\"%s\"\r\n", debug ? "TRUE" : "FALSE" );\r
@@ -298,6 +298,14 @@ MSVCBackend::_generate_vcproj ( const Module& module )
                }\r
 \r
                fprintf ( OUT, "\t\t\t\tWholeProgramOptimization=\"%s\"\r\n", release ? "TRUE" : "FALSE");\r
+               if ( release )\r
+               {\r
+                       fprintf ( OUT, "\t\t\t\tFavorSizeOrSpeed=\"1\"\r\n" );\r
+                       fprintf ( OUT, "\t\t\t\tStringPooling=\"true\"\r\n" );\r
+               }\r
+\r
+               fprintf ( OUT, "\t\t\t\tEnablePREfast=\"%s\"\r\n", debug ? "TRUE" : "FALSE");\r
+               fprintf ( OUT, "\t\t\t\tDisableSpecificWarnings=\"4201;4127\"\r\n" );\r
                fprintf ( OUT, "\t\t\t\tWarningLevel=\"%s\"\r\n", release ? "0" : "4" );\r
                fprintf ( OUT, "\t\t\t\tDetect64BitPortabilityProblems=\"%s\"\r\n", release ? "FALSE" : "TRUE");\r
                fprintf ( OUT, "\t\t\t\tDebugInformationFormat=\"%s\"/>\r\n", speed ? "0" : "4");\r