Move export snapshot platform support to app core
This commit is contained in:
@@ -489,6 +489,15 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr bool document_export_snapshot_platform_supported() noexcept
|
||||
{
|
||||
#if __WEB__
|
||||
return false;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr DocumentExportSnapshotRoutePlan plan_document_export_snapshot_route(
|
||||
DocumentExportExecutionKind kind,
|
||||
DocumentCanvasSaveSnapshotReport report,
|
||||
@@ -534,6 +543,18 @@ public:
|
||||
platform_supported);
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr DocumentExportSnapshotRoutePlan plan_document_export_snapshot_route_for_current_platform(
|
||||
DocumentExportExecutionKind kind,
|
||||
DocumentCanvasSaveSnapshotReport report,
|
||||
std::string_view target_path = {}) noexcept
|
||||
{
|
||||
return plan_document_export_snapshot_route_for_target(
|
||||
kind,
|
||||
report,
|
||||
target_path,
|
||||
document_export_snapshot_platform_supported());
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr DocumentExportCollectionTargetPlan plan_document_export_collection_target(
|
||||
DocumentExportCollectionKind kind,
|
||||
bool use_work_directory_collection) noexcept
|
||||
|
||||
Reference in New Issue
Block a user