diff options
Diffstat (limited to 'src/libctor.h')
-rw-r--r-- | src/libctor.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/libctor.h b/src/libctor.h index 6026ffb..5c22614 100644 --- a/src/libctor.h +++ b/src/libctor.h @@ -35,14 +35,10 @@ enum class OutputSystem struct Source { - Source(const char* file) - : file(file) {} - Source(const std::string& file) - : file(file) {} - Source(const char* file, Language language) - : file(file), language(language) {} - Source(const std::string& file, Language language) - : file(file), language(language) {} + Source(const char* file) : file(file) {} + Source(const std::string& file) : file(file) {} + Source(const char* file, Language lang) : file(file), language(lang) {} + Source(const std::string& file, Language lang) : file(file), language(lang) {} std::string file; Language language{Language::Auto}; @@ -50,9 +46,10 @@ struct Source struct BuildConfiguration { + std::string name; // Name - used for referring in other configurations. TargetType type{TargetType::Auto}; OutputSystem system{OutputSystem::Host}; - std::string target; + std::string target; // Output target file for this configuration std::vector<Source> sources; // source list std::vector<std::string> depends; // internal dependencies std::vector<std::string> cxxflags; // flags for c++ compiler |