diff options
Diffstat (limited to 'bdep/project.hxx')
-rw-r--r-- | bdep/project.hxx | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/bdep/project.hxx b/bdep/project.hxx new file mode 100644 index 0000000..6a748d5 --- /dev/null +++ b/bdep/project.hxx @@ -0,0 +1,33 @@ +// file : bdep/project.hxx -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BDEP_PROJECT_HXX +#define BDEP_PROJECT_HXX + +#include <bdep/types.hxx> +#include <bdep/utility.hxx> + +#include <bdep/project-options.hxx> + +namespace bdep +{ + // Given project_options (and CWD) locate the packages and their project. + // The result is the absolute and normalized project directory and a vector + // of relative (to the project directory) package directories (which will be + // empty if ignore_packages is true). + // + // Note that if the package directory is the same as project, then the + // package directory will be empty (and not ./). + // + struct project_packages + { + dir_path project; + dir_paths packages; + }; + + project_packages + find_project_packages (const project_options&, bool ignore_packages = false); +} + +#endif // BDEP_PROJECT_HXX |