From 9664d2849ee30d63cd10ce5b258f1433a650b488 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 21 Jul 2021 21:31:18 +0300 Subject: Add support for automatic creation of configurations for build-time dependencies --- bdep/config.hxx | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'bdep/config.hxx') diff --git a/bdep/config.hxx b/bdep/config.hxx index 111ce15..b8ad1cc 100644 --- a/bdep/config.hxx +++ b/bdep/config.hxx @@ -26,6 +26,26 @@ namespace bdep optional id = nullopt, const char* what = "added"); + // Configuration directory should exist and its path should be absolute and + // normalized. + // + shared_ptr + cmd_config_add (const dir_path& prj, + transaction&, + const dir_path& path, + const optional& name, + string type, + bool default_ = true, + bool forward = true, + bool auto_sync = true, + optional id = nullopt); + + void + cmd_config_add_print (diag_record&, + const dir_path& prj, + const dir_path&, + const optional& name); + shared_ptr cmd_config_create (const common_options&, const configuration_add_options&, @@ -38,6 +58,35 @@ namespace bdep string type, optional id = nullopt); + // Configuration directory path should be absolute and normalized. + // + shared_ptr + cmd_config_create (const common_options&, + const dir_path& prj, + transaction&, + const dir_path& path, + const optional& name, + string type, + bool default_ = true, + bool forward = true, + bool auto_sync = true, + bool existing = false, + bool wipe = false, + const strings& args = {}, + optional id = nullopt); + + void + cmd_config_create_print (diag_record&, + const dir_path& prj, + const dir_path&, + const optional& name, + const string& type); + + void + cmd_config_link (const common_options&, + const shared_ptr&, + const shared_ptr&); + int cmd_config (cmd_config_options&&, cli::scanner& args); -- cgit v1.1