1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
// file : bdep/sync.hxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#ifndef BDEP_SYNC_HXX
#define BDEP_SYNC_HXX
#include <bdep/types.hxx>
#include <bdep/utility.hxx>
#include <bdep/project.hxx>
#include <bdep/sync-options.hxx>
namespace bdep
{
// The optional pkg_args are the additional dependency packages and/or
// configuration variables to pass to bpkg-pkg-build (see bdep-init).
//
// If fetch is false, don't perform a (shallow) fetch of the project
// repository. If yes is false, then don't suppress bpkg prompts. If
// name_cfg is true then include the configuration name/directory into
// progress.
//
void
cmd_sync (const common_options&,
const dir_path& prj,
const shared_ptr<configuration>&,
const strings& pkg_args,
bool implicit,
bool fetch = true,
bool yes = true,
bool name_cfg = false);
// As above but perform an implicit sync without a configuration object
// (i.e., as if from the hook).
//
void
cmd_sync_implicit (const common_options&,
const dir_path& cfg,
bool fetch = true,
bool yes = true,
bool name_cfg = true);
int
cmd_sync (cmd_sync_options&&, cli::group_scanner& args);
// Return the list of additional (to prj, if not empty) projects that are
// using this configuration.
//
dir_paths
configuration_projects (const common_options& co,
const dir_path& cfg,
const dir_path& prj = dir_path ());
default_options_files
options_files (const char* cmd,
const cmd_sync_options&,
const strings& args);
cmd_sync_options
merge_options (const default_options<cmd_sync_options>&,
const cmd_sync_options&);
// Note that the hook is installed into the bpkg-created configuration which
// always uses the standard build file/directory naming scheme.
//
extern const path hook_file; // build/bootstrap/pre-bdep-sync.build
}
#endif // BDEP_SYNC_HXX
|