diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-09-27 21:32:17 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-09-27 21:32:17 +0200 |
commit | e73ee708292aac55070701ff0157db4eab6c06f4 (patch) | |
tree | c377bc83c6975e5a75b4445afda43407d720e904 /src/tasks.cc | |
parent | f30d40ec44e7bb4dda5cdd75e9761d67288af4a7 (diff) |
Add folder hierarchy in build folder corresponding to that of the source folders and store build-files in corresponding locations.
Diffstat (limited to 'src/tasks.cc')
-rw-r--r-- | src/tasks.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tasks.cc b/src/tasks.cc index a52b0be..254404e 100644 --- a/src/tasks.cc +++ b/src/tasks.cc @@ -91,23 +91,24 @@ std::list<std::shared_ptr<Task>> taskFactory(const BuildConfiguration& config, case TargetType::StaticLibrary: tasks.emplace_back(std::make_shared<TaskAR>(config, settings, config.target, - objects)); + objects, sourceDir)); break; case TargetType::DynamicLibrary: + // TODO: Use C++20 starts_with if(targetFile.stem().string().substr(0, 3) != "lib") { std::cerr << "Dynamic library target must have 'lib' prefix\n"; exit(1); } tasks.emplace_back(std::make_shared<TaskSO>(config, settings, config.target, - objects)); + objects, sourceDir)); break; case TargetType::Executable: case TargetType::UnitTest: tasks.emplace_back(std::make_shared<TaskLD>(config, settings, config.target, - objects)); + objects, sourceDir)); break; case TargetType::Object: |