aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorKonstantin Podsvirov <konstantin@podsvirov.pro>2017-09-22 02:16:14 +0300
committerKonstantin Podsvirov <konstantin@podsvirov.pro>2017-09-28 00:21:26 +0300
commit68b9c2d8b9119acb48643447a7561a5c2b733d25 (patch)
treefcf90bb4ce270c7477ca805bd7e80c527d7f23c7 /toolsrc/include
parent5199507a5892ab997b1beee2f1b7d2a6c7e75115 (diff)
downloadvcpkg-68b9c2d8b9119acb48643447a7561a5c2b733d25.tar.gz
vcpkg-68b9c2d8b9119acb48643447a7561a5c2b733d25.zip
[vcpkg-export-ifw] Separate IFW loop
Separate IFW loop compatible with main export loop Fixed mistakes in templates Set current date to ReleaseDate tag
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg_Commands_Export.h14
-rw-r--r--toolsrc/include/vcpkg_Commands_Export_IFW.h13
2 files changed, 22 insertions, 5 deletions
diff --git a/toolsrc/include/vcpkg_Commands_Export.h b/toolsrc/include/vcpkg_Commands_Export.h
new file mode 100644
index 000000000..31003422d
--- /dev/null
+++ b/toolsrc/include/vcpkg_Commands_Export.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include "StatusParagraphs.h"
+#include "VcpkgCmdArguments.h"
+#include "VcpkgPaths.h"
+#include "VersionT.h"
+#include "vcpkg_Build.h"
+#include "vcpkg_Dependencies.h"
+#include <array>
+
+namespace vcpkg::Commands::Export
+{
+ void export_integration_files(const fs::path &raw_exported_dir_path, const VcpkgPaths& paths);
+}
diff --git a/toolsrc/include/vcpkg_Commands_Export_IFW.h b/toolsrc/include/vcpkg_Commands_Export_IFW.h
index b25e943eb..881bbaf63 100644
--- a/toolsrc/include/vcpkg_Commands_Export_IFW.h
+++ b/toolsrc/include/vcpkg_Commands_Export_IFW.h
@@ -5,9 +5,12 @@
namespace vcpkg::Commands::Export::IFW
{
- fs::path export_real_package(const fs::path &raw_exported_dir_path, const Dependencies::ExportPlanAction& action, Files::Filesystem& fs);
- void export_unique_packages(const fs::path &raw_exported_dir_path, std::map<std::string, const Dependencies::ExportPlanAction*> unique_packages, Files::Filesystem& fs);
- void export_unique_triplets(const fs::path &raw_exported_dir_path, std::set<std::string> unique_triplets, Files::Filesystem& fs);
- void export_integration(const fs::path &raw_exported_dir_path, Files::Filesystem& fs);
- void export_config(const fs::path &raw_exported_dir_path, const std::string ifw_repository_url, Files::Filesystem& fs);
+ struct Options
+ {
+ Optional<std::string> maybe_repository_url;
+ Optional<std::string> maybe_packages_dir_path;
+ Optional<std::string> maybe_config_file_path;
+ };
+
+ void do_export(const std::vector<Dependencies::ExportPlanAction> &export_plan, const std::string &export_id, const Options &ifw_options, const VcpkgPaths& paths);
}