* removed paths in include directives * changed cmake to provide necessary header search paths * changed name of version.h to productVersion.h due to name conflict
31 lines
660 B
C++
31 lines
660 B
C++
#include "utilityCxx.h"
|
|
|
|
#include "ResourcePaths.h"
|
|
#include "utilityApp.h"
|
|
|
|
namespace utility
|
|
{
|
|
std::vector<FilePath> replaceOrAddCxxCompilerHeaderPath(const std::vector<FilePath>& headerSearchPaths)
|
|
{
|
|
std::vector<FilePath> newHeaderSearchPaths;
|
|
|
|
if (utility::getOsType() == OS_WINDOWS)
|
|
{
|
|
newHeaderSearchPaths = headerSearchPaths;
|
|
}
|
|
else
|
|
{
|
|
for (const FilePath& path : headerSearchPaths)
|
|
{
|
|
if (!path.getConcatenated(L"/stdarg.h").exists())
|
|
{
|
|
newHeaderSearchPaths.push_back(path);
|
|
}
|
|
}
|
|
}
|
|
|
|
newHeaderSearchPaths.push_back(ResourcePaths::getCxxCompilerHeaderPath().getCanonical());
|
|
return newHeaderSearchPaths;
|
|
}
|
|
}
|