// file : bdep/sync.hxx -*- C++ -*- // copyright : Copyright (c) 2014-2019 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #ifndef BDEP_SYNC_HXX #define BDEP_SYNC_HXX #include #include #include #include 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&, const strings& pkg_args, bool implicit, bool fetch = true, bool yes = true, bool name_cfg = false); 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 ()); extern const path hook_file; // build/bootstrap/pre-bdep-sync.build } #endif // BDEP_SYNC_HXX