Start working on build system.
This commit is contained in:
parent
4b308f6c32
commit
521486be62
88 changed files with 1065 additions and 349 deletions
25
src/base/compiler/BuildLibrary.cpp
Normal file
25
src/base/compiler/BuildLibrary.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#include "BuildLibrary.h"
|
||||
|
||||
#include "Logger.h"
|
||||
#include "Directory.h"
|
||||
|
||||
BuildLibrary::BuildLibrary(const FileSystemPath& build_config)
|
||||
: m_build_config(build_config)
|
||||
{
|
||||
}
|
||||
|
||||
Status BuildLibrary::scan()
|
||||
{
|
||||
LOG_INFO("Scanning build file at: " << m_build_config);
|
||||
const auto search_dir = m_build_config.parent_path();
|
||||
const auto status = Directory::getFilesWithExtension(search_dir,
|
||||
".cpp",
|
||||
m_sources,
|
||||
true);
|
||||
return status;
|
||||
}
|
||||
|
||||
const Vector<FileSystemPath>& BuildLibrary::get_sources() const
|
||||
{
|
||||
return m_sources;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue