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
~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 );
*/
#include "../../pch.h"
#include <assert.h>
+#include <algorithm>
#include "../../rbuild.h"
#include "mingw.h"
}
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" );
}
bool
-ProxyMakefile::GenerateProxyMakefile ( Module& module )
+ProxyMakefile::GenerateProxyMakefile ( const Module& module )
{
return module.output->directory == OutputDirectory;
}
Name="VCCLCompilerTool"\r
Optimization="0"\r
AdditionalIncludeDirectories="..,../../lib/inflib,../../include/reactos;../../include"\r
- PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;INFLIB_HOST"\r
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;INFLIB_HOST;_CRT_SECURE_NO_WARNINGS"\r
BasicRuntimeChecks="3"\r
RuntimeLibrary="1"\r
DefaultCharIsUnsigned="true"\r