- Only add a command for deleting the proxy makefile, when one was really generated.

Should fix all those "Error 1 (ignored)" warnings (if there aren't even more problems ;-)
- Include <algorithm> in modulehandler.cpp. Fixes compilation with MSVC.
- Add _CRT_SECURE_NO_WARNINGS to the MSVC project file to disable a bunch of MSVC warnings.

svn path=/trunk/; revision=32399
This commit is contained in:
Colin Finck 2008-02-16 23:45:23 +00:00
parent de244cca92
commit cc6beed26a
4 changed files with 8 additions and 4 deletions

View file

@ -133,10 +133,11 @@ public:
~ProxyMakefile ();
void GenerateProxyMakefiles ( bool verbose,
std::string outputTree );
static bool GenerateProxyMakefile ( const Module& module );
private:
std::string GeneratePathToParentDirectory ( int numberOfParentDirectories );
std::string GetPathToTopDirectory ( Module& module );
bool GenerateProxyMakefile ( Module& module );
void GenerateProxyMakefileForModule ( Module& module,
bool verbose,
std::string outputTree );

View file

@ -18,6 +18,7 @@
*/
#include "../../pch.h"
#include <assert.h>
#include <algorithm>
#include "../../rbuild.h"
#include "mingw.h"
@ -615,13 +616,15 @@ MingwModuleHandler::GenerateCleanTarget () const
}
fprintf ( fMakefile, " 2>$(NUL)\n" );
if ( module.name != "zlib" ) /* Avoid make warning */
if( ProxyMakefile::GenerateProxyMakefile(module) )
{
DirectoryLocation root;
if ( backend->configuration.GenerateProxyMakefilesInSourceTree )
root = SourceDirectory;
else
root = OutputDirectory;
FileLocation proxyMakefile ( root,
module.output->relative_path,
"GNUmakefile" );

View file

@ -33,7 +33,7 @@ ProxyMakefile::~ProxyMakefile ()
}
bool
ProxyMakefile::GenerateProxyMakefile ( Module& module )
ProxyMakefile::GenerateProxyMakefile ( const Module& module )
{
return module.output->directory == OutputDirectory;
}

View file

@ -133,7 +133,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..,../../lib/inflib,../../include/reactos;../../include"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;INFLIB_HOST"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;INFLIB_HOST;_CRT_SECURE_NO_WARNINGS"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
DefaultCharIsUnsigned="true"