summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-10-05 00:20:27 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-09 01:21:21 +0200
commit89e39ea9e20bc4f8e88e42a57d4505e1fa69fde5 (patch)
tree9f45fd3a404c484af6b194a2df5b2803f67cbf0c
parente7a04275703b8cd54e1325d42f484ed7d0acab92 (diff)
FIXME: Bump libdcp for new filesystem wrappers.
-rw-r--r--cscript2
-rw-r--r--src/lib/cross_osx.cc5
-rw-r--r--src/lib/cross_windows.cc3
-rw-r--r--src/lib/ext.cc5
-rw-r--r--src/tools/dcpomatic_disk.cc3
5 files changed, 11 insertions, 7 deletions
diff --git a/cscript b/cscript
index 189d363c5..ccfb1d1a8 100644
--- a/cscript
+++ b/cscript
@@ -508,7 +508,7 @@ def dependencies(target, options):
# Use distro-provided FFmpeg on Arch
deps = []
- deps.append(('libdcp', 'v1.8.82'))
+ deps.append(('libdcp', 'd70c44e87632a69a2b8bc90db7ca4b06b7aa611d'))
deps.append(('libsub', 'v1.6.44'))
deps.append(('leqm-nrt', '30dcaea1373ac62fba050e02ce5b0c1085797a23'))
deps.append(('rtaudio', 'f619b76'))
diff --git a/src/lib/cross_osx.cc b/src/lib/cross_osx.cc
index 0f25732f2..5596e6ecb 100644
--- a/src/lib/cross_osx.cc
+++ b/src/lib/cross_osx.cc
@@ -25,6 +25,7 @@
#include "dcpomatic_log.h"
#include "config.h"
#include "exceptions.h"
+#include <dcp/filesystem.h>
#include <dcp/raw_convert.h>
#include <glib.h>
#include <boost/algorithm/string.hpp>
@@ -84,7 +85,7 @@ cpu_info ()
boost::filesystem::path
directory_containing_executable ()
{
- return boost::filesystem::canonical(boost::dll::program_location()).parent_path();
+ return dcp::filesystem::canonical(boost::dll::program_location()).parent_path();
}
@@ -106,7 +107,7 @@ void
run_ffprobe(boost::filesystem::path content, boost::filesystem::path out, bool err, string args)
{
auto path = directory_containing_executable () / "ffprobe";
- if (!boost::filesystem::exists(path)) {
+ if (!dcp::filesystem::exists(path)) {
/* This is a hack but we need ffprobe during tests */
path = "/Users/ci/workspace/bin/ffprobe";
}
diff --git a/src/lib/cross_windows.cc b/src/lib/cross_windows.cc
index 9480f7754..9181b6c8a 100644
--- a/src/lib/cross_windows.cc
+++ b/src/lib/cross_windows.cc
@@ -30,6 +30,7 @@
#include "dcpomatic_assert.h"
#include "util.h"
#include <dcp/file.h>
+#include <dcp/filesystem.h>
#include <dcp/raw_convert.h>
#include <glib.h>
extern "C" {
@@ -166,7 +167,7 @@ run_ffprobe(boost::filesystem::path content, boost::filesystem::path out, bool e
wcscat(command, L" \"");
- MultiByteToWideChar(CP_UTF8, 0, boost::filesystem::canonical(content).make_preferred().string().c_str(), -1, tmp, sizeof(tmp));
+ MultiByteToWideChar(CP_UTF8, 0, dcp::filesystem::canonical(content).make_preferred().string().c_str(), -1, tmp, sizeof(tmp));
wcscat(command, tmp);
wcscat(command, L"\"");
diff --git a/src/lib/ext.cc b/src/lib/ext.cc
index 2ef3df6bb..25946df73 100644
--- a/src/lib/ext.cc
+++ b/src/lib/ext.cc
@@ -28,6 +28,7 @@
#include "ext.h"
#include "nanomsg.h"
#include <dcp/file.h>
+#include <dcp/filesystem.h>
#ifdef DCPOMATIC_LINUX
#include <linux/fs.h>
@@ -83,7 +84,7 @@ count (std::vector<boost::filesystem::path> dirs, uint64_t& total_bytes)
using namespace boost::filesystem;
for (auto dir: dirs) {
- dir = dcp::fix_long_path(dir);
+ dir = dcp::filesystem::fix_long_path(dir);
for (auto path: directory_iterator(dir)) {
if (is_directory(path)) {
count({path}, total_bytes);
@@ -228,7 +229,7 @@ void
copy (boost::filesystem::path from, boost::filesystem::path to, uint64_t& total_remaining, uint64_t total, vector<CopiedFile>& copied_files, Nanomsg* nanomsg)
{
LOG_DISK ("Copy %1 -> %2", from.string(), to.generic_string());
- from = dcp::fix_long_path (from);
+ from = dcp::filesystem::fix_long_path(from);
using namespace boost::filesystem;
diff --git a/src/tools/dcpomatic_disk.cc b/src/tools/dcpomatic_disk.cc
index 28799013f..5941d6d70 100644
--- a/src/tools/dcpomatic_disk.cc
+++ b/src/tools/dcpomatic_disk.cc
@@ -39,6 +39,7 @@
#include "lib/signal_manager.h"
#include "lib/util.h"
#include "lib/version.h"
+#include <dcp/filesystem.h>
#include <dcp/warnings.h>
#include <wx/cmdline.h>
#include <wx/wx.h>
@@ -85,7 +86,7 @@ public:
boost::optional<boost::filesystem::path> get () const
{
auto const dcp = boost::filesystem::path(wx_to_std(GetPath()));
- if (!boost::filesystem::exists(dcp / "ASSETMAP") && !boost::filesystem::exists(dcp / "ASSETMAP.xml")) {
+ if (!dcp::filesystem::exists(dcp / "ASSETMAP") && !dcp::filesystem::exists(dcp / "ASSETMAP.xml")) {
error_dialog (nullptr, _("No ASSETMAP or ASSETMAP.xml found in this folder. Please choose a DCP folder."));
return {};
}