diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-12-15 14:45:24 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-10 19:43:09 +0300 |
commit | bf3d969ef2dbc615bd528f559920bcf532dda910 (patch) | |
tree | 8f965c8a2d883f48fd643bc4cdb3f891ef182b99 /bdep/project.hxx | |
parent | 884b16c882863f1eb5144a4bf7d1739bdf99a271 (diff) |
Implement bdep-release that manages project's version during release
Diffstat (limited to 'bdep/project.hxx')
-rw-r--r-- | bdep/project.hxx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/bdep/project.hxx b/bdep/project.hxx index e508374..c252ead 100644 --- a/bdep/project.hxx +++ b/bdep/project.hxx @@ -205,11 +205,26 @@ namespace bdep package_locations packages; }; + // Search project packages in the specified directories or the current + // directory if none were specified. + // project_packages - find_project_packages (const project_options&, + find_project_packages (const dir_paths&, bool ignore_packages, bool load_packages = true); + inline project_packages + find_project_packages (const project_options& po, bool ip, bool lp = true) + { + return find_project_packages (po.directory (), ip, lp); + } + + inline dir_path + find_project (const dir_paths& dirs) + { + return find_project_packages (dirs, true /* ignore_packages */).project; + } + inline dir_path find_project (const project_options& o) { |