diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ctor.h | 20 | ||||
-rw-r--r-- | src/rebuild.cc | 2 | ||||
-rw-r--r-- | src/task_cc.cc | 2 | ||||
-rw-r--r-- | src/task_cc.h | 4 | ||||
-rw-r--r-- | src/task_fn.cc | 2 | ||||
-rw-r--r-- | src/task_fn.h | 2 |
6 files changed, 16 insertions, 16 deletions
@@ -41,17 +41,17 @@ enum class output_system build, // Internal tool during cross-compilation }; -struct Source +struct source { - Source(const char* file) : file(file) {} - Source(const std::string& file) : file(file) {} - Source(const char* file, ctor::language lang) : file(file), language(lang) {} - Source(const std::string& file, ctor::language lang) : file(file), language(lang) {} + source(const char* file) : file(file) {} + source(const std::string& file) : file(file) {} + source(const char* file, ctor::language lang) : file(file), language(lang) {} + source(const std::string& file, ctor::language lang) : file(file), language(lang) {} - Source(const char* file, const char* output) : file(file), output(output) {} - Source(const std::string& file, const std::string& output) : file(file), output(output) {} - Source(const char* file, ctor::language lang, const char* output) : file(file), language(lang), output(output) {} - Source(const std::string& file, ctor::language lang, const std::string& output) : file(file), language(lang), output(output) {} + source(const char* file, const char* output) : file(file), output(output) {} + source(const std::string& file, const std::string& output) : file(file), output(output) {} + source(const char* file, ctor::language lang, const char* output) : file(file), language(lang), output(output) {} + source(const std::string& file, ctor::language lang, const std::string& output) : file(file), language(lang), output(output) {} std::string file; ctor::language language{ctor::language::automatic}; @@ -85,7 +85,7 @@ struct BuildConfiguration ctor::target_type type{ctor::target_type::automatic}; ctor::output_system system{ctor::output_system::host}; std::string target; // Output target file for this configuration - std::vector<Source> sources; // source list + std::vector<ctor::source> sources; // source list std::vector<std::string> depends; // internal target dependencies Flags flags; std::vector<std::string> externals; // externals used by this configuration diff --git a/src/rebuild.cc b/src/rebuild.cc index f645275..daf5443 100644 --- a/src/rebuild.cc +++ b/src/rebuild.cc @@ -135,7 +135,7 @@ int reg(ExternalConfigurations (*cb)(const Settings&), namespace { -bool contains(const std::vector<Source>& sources, const std::string& file) +bool contains(const std::vector<ctor::source>& sources, const std::string& file) { for(const auto& source : sources) { diff --git a/src/task_cc.cc b/src/task_cc.cc index 581ca12..0733afc 100644 --- a/src/task_cc.cc +++ b/src/task_cc.cc @@ -15,7 +15,7 @@ using namespace ctor; TaskCC::TaskCC(const BuildConfiguration& config, const Settings& settings, - const std::string& sourceDir, const Source& source) + const std::string& sourceDir, const ctor::source& source) : Task(config, settings, sourceDir) , config(config) , settings(settings) diff --git a/src/task_cc.h b/src/task_cc.h index cdde84b..ee53f6d 100644 --- a/src/task_cc.h +++ b/src/task_cc.h @@ -16,7 +16,7 @@ class TaskCC public: TaskCC(const ctor::BuildConfiguration& config, const ctor::Settings& settings, - const std::string& sourceDir, const ctor::Source& source); + const std::string& sourceDir, const ctor::source& source); virtual ~TaskCC() = default; int registerDepTasksInner(const std::set<std::shared_ptr<Task>>& tasks) override; @@ -51,5 +51,5 @@ protected: const ctor::BuildConfiguration& config; const ctor::Settings& settings; std::filesystem::path sourceDir; - const ctor::Source& _source; + const ctor::source& _source; }; diff --git a/src/task_fn.cc b/src/task_fn.cc index f633704..4af86a4 100644 --- a/src/task_fn.cc +++ b/src/task_fn.cc @@ -14,7 +14,7 @@ using namespace ctor; TaskFn::TaskFn(const BuildConfiguration& config, const Settings& settings, - const std::string& sourceDir, const Source& source) + const std::string& sourceDir, const ctor::source& source) : Task(config, settings, sourceDir) , config(config) , settings(settings) diff --git a/src/task_fn.h b/src/task_fn.h index 654241c..565836b 100644 --- a/src/task_fn.h +++ b/src/task_fn.h @@ -16,7 +16,7 @@ class TaskFn public: TaskFn(const ctor::BuildConfiguration& config, const ctor::Settings& settings, - const std::string& sourceDir, const ctor::Source& source); + const std::string& sourceDir, const ctor::source& source); virtual ~TaskFn() = default; bool dirtyInner() override; |