mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 23:43:52 +00:00
- 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:
parent
de244cca92
commit
cc6beed26a
4 changed files with 8 additions and 4 deletions
|
@ -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 );
|
||||
|
|
|
@ -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" );
|
||||
|
|
|
@ -33,7 +33,7 @@ ProxyMakefile::~ProxyMakefile ()
|
|||
}
|
||||
|
||||
bool
|
||||
ProxyMakefile::GenerateProxyMakefile ( Module& module )
|
||||
ProxyMakefile::GenerateProxyMakefile ( const Module& module )
|
||||
{
|
||||
return module.output->directory == OutputDirectory;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue