summaryrefslogtreecommitdiff
path: root/src/lib/cross_linux.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-04-07 01:29:50 +0200
committerCarl Hetherington <cth@carlh.net>2020-04-07 01:29:50 +0200
commitddccef68ae80bac6b4aa8583dd8e0a7c943b535c (patch)
tree754a2a40ed764d2e49bb394e971018f4b9c4f31d /src/lib/cross_linux.cc
parent5e6588090b65217e180a35bac494ede030406858 (diff)
Add DCPOMATIC_DISK define and don't build stuff needing boost dll library if we don't need it.v2.15.49
Diffstat (limited to 'src/lib/cross_linux.cc')
-rw-r--r--src/lib/cross_linux.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc
index 406087917..8c81c5008 100644
--- a/src/lib/cross_linux.cc
+++ b/src/lib/cross_linux.cc
@@ -31,7 +31,9 @@ extern "C" {
}
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
+#ifdef DCPOMATIC_DISK
#include <boost/dll/runtime_symbol_info.hpp>
+#endif
#include <unistd.h>
#include <mntent.h>
#include <sys/types.h>
@@ -140,11 +142,13 @@ openssl_path ()
return "dcpomatic2_openssl";
}
+#ifdef DCPOMATIC_DISK
boost::filesystem::path
disk_writer_path ()
{
return boost::dll::program_location().parent_path() / "dcpomatic2_disk_writer";
}
+#endif
/* Apparently there is no way to create an ofstream using a UTF-8
filename under Windows. We are hence reduced to using fopen