Add includedirexcldep makgen.xml flag
- New flag is used to add include directories without making them part of the include dependency graph. - Can be used to remove dependency graphs for include directories that aren't generally modified, like operating system library include directories
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# This Makefile was generated using MakeGen v1.3.4 made by Tim Håkansson
|
||||
# This Makefile was generated using MakeGen v1.3.5 made by Tim Håkansson
|
||||
# and is licensed under MIT. Full source of the project can be found at
|
||||
# https://github.com/Thraix/MakeGen
|
||||
CC=@g++
|
||||
|
||||
+1
-1
@@ -19,5 +19,5 @@
|
||||
<srcdir>src/</srcdir>
|
||||
</configuration>
|
||||
<target>Release</target>
|
||||
<version>v1.3.4</version>
|
||||
<version>v1.3.5</version>
|
||||
</makegen>
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
// Release, should be backwards compatible with any minor version
|
||||
#define MAKEGEN_VERSION_RELEASE 3
|
||||
// Minor changes, generally bug fixes
|
||||
#define MAKEGEN_VERSION_MINOR 4
|
||||
#define MAKEGEN_VERSION_MINOR 5
|
||||
|
||||
#define MAKEGEN_VERSION ("v" STR(MAKEGEN_VERSION_MAJOR) "." STR(MAKEGEN_VERSION_RELEASE) "." STR(MAKEGEN_VERSION_MINOR))
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include "compatibility/ConfigFileConf.h"
|
||||
#include "xml/XML.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <fstream>
|
||||
|
||||
ConfigFile::ConfigFile(const std::string& path, int)
|
||||
|
||||
+7
-1
@@ -18,7 +18,7 @@ struct ConfigCache
|
||||
enum class ConfigSetting
|
||||
{
|
||||
// vectors
|
||||
Library = 0, LibraryDir = 1, IncludeDir = 2, Define = 3, Dependency = 4, CFlag = 5, LFlag = 6, ExcludeSource = 7, ExcludeHeader = 8, ExecPreArgument = 9, ExecArgument = 10, SourceFile = 11,
|
||||
Library = 0, LibraryDir = 1, IncludeDir = 2, Define = 3, Dependency = 4, CFlag = 5, LFlag = 6, ExcludeSource = 7, ExcludeHeader = 8, ExecPreArgument = 9, ExecArgument = 10, SourceFile = 11, IncludeDirExclDep = 12,
|
||||
// Strings
|
||||
SourceDir = 32, OutputDir = 33, OutputName = 34, OutputType = 35, ProjectName = 36, HFileName = 37,
|
||||
// Bools
|
||||
@@ -71,6 +71,8 @@ struct ConfigUtils
|
||||
return "generatehfile";
|
||||
case ConfigSetting::SourceFile:
|
||||
return "sourcefile";
|
||||
case ConfigSetting::IncludeDirExclDep:
|
||||
return "includedirexcldep";
|
||||
case ConfigSetting::Invalid:
|
||||
return "invalid";
|
||||
}
|
||||
@@ -86,6 +88,7 @@ struct ConfigUtils
|
||||
case ConfigSetting::LibraryDir:
|
||||
case ConfigSetting::IncludeDir:
|
||||
case ConfigSetting::Dependency:
|
||||
case ConfigSetting::IncludeDirExclDep:
|
||||
return true;
|
||||
case ConfigSetting::OutputName:
|
||||
case ConfigSetting::OutputType:
|
||||
@@ -131,6 +134,7 @@ struct ConfigUtils
|
||||
case ConfigSetting::ExecArgument:
|
||||
case ConfigSetting::GenerateHFile:
|
||||
case ConfigSetting::SourceFile:
|
||||
case ConfigSetting::IncludeDirExclDep:
|
||||
case ConfigSetting::Invalid:
|
||||
return false;
|
||||
}
|
||||
@@ -153,6 +157,7 @@ struct ConfigUtils
|
||||
case ConfigSetting::ExecPreArgument:
|
||||
case ConfigSetting::ExecArgument:
|
||||
case ConfigSetting::SourceFile:
|
||||
case ConfigSetting::IncludeDirExclDep:
|
||||
return true;
|
||||
case ConfigSetting::SourceDir:
|
||||
case ConfigSetting::OutputDir:
|
||||
@@ -191,6 +196,7 @@ struct ConfigUtils
|
||||
case ConfigSetting::ExecArgument:
|
||||
case ConfigSetting::SourceFile:
|
||||
case ConfigSetting::Invalid:
|
||||
case ConfigSetting::IncludeDirExclDep:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -41,6 +41,11 @@ void Makefile::Save(ConfigFile& conf, unsigned int flags)
|
||||
{
|
||||
outputFile << "-I " << *it << " ";
|
||||
}
|
||||
std::vector<std::string>& includedirsexcldep = conf.GetSettingVectorString(ConfigSetting::IncludeDirExclDep);
|
||||
for(auto it = includedirsexcldep.begin(); it != includedirsexcldep.end(); ++it)
|
||||
{
|
||||
outputFile << "-I " << *it << " ";
|
||||
}
|
||||
outputFile << std::endl;
|
||||
outputFile << "OBJECTS=";
|
||||
for(auto it = cppFiles.begin();it!=cppFiles.end();++it)
|
||||
|
||||
Reference in New Issue
Block a user